Репозитории ALT
S: | 1.19-alt2 |
5.1: | 1.11-alt1 |
4.1: | 1.9-alt2.0 |
4.0: | 1.9-alt2.0 |
3.0: | 1.7-alt1 |
+backports: | 1.9-alt0.M30.1 |
Другие репозитории
Upstream: | 1.9 |
Группа :: Работа с текстами
Пакет: enca
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_disable static
Name: enca
Version: 1.11
Release: alt1
Summary: A program that guesses encoding of text files
License: GPL
Group: Text tools
#URL: http://trific.ath.cx/software/enca
Url: http://gitorious.org/enca
Source: http://dl.cihar.com/enca/%name-%version.tar
Packager: Michael Shigorin <mike at altlinux.org>
PreReq: sed, lib%name = %version-%release
BuildPreReq: bzip2-devel
# Optional requires for external convertors:
# recode recode-devel
# perl-Encode perl-Unicode-Map perl-Unicode-Map8
%add_findreq_skiplist %_libexecdir/%name/
# Automatically added by buildreq on Sat Jan 12 2008
BuildRequires: gcc-c++
#gtk-doc
Summary(ru_RU.KOI8-R): Программа, "угадывающая" кодировку текстовых файлов
Summary(uk_UA.KOI8-U): Програма, що "вгаду╓" кодування текстових файл╕в
%description
Enca (Extremely Naive Charset Analyser) is a simple utility guessing
encoding of text files and optionally converting them to some other
encoding using either a built-in convertor, a system conversion library
or an external conversion program.
Currently, it has support for Belarussian, Czech, Polish, Russian,
Slovak, Ukrainian, Bulgarian, Croatian, Estonian, Hungarian, Latvian,
Lithuanian, Slovene and some multibyte encodings (mostly variants of
Unicode) independent on language.
Install Enca if you need to cope with text files of dubious origin
and unknown encoding and convert them to some reasonable encoding.
%description -l ru_RU.KOI8-R
Enca (Extremely Naive Charset Analyser) - простая утилита, которая
позволяет "угадывать" кодировку текстового файла и, возможно,
конвертировать его в другую известную.
Сейчас поддерживаются белорусский, чешский, польский, русский,
словацкий, украинский, болгарский, хорватский, эстонский, венгерский,
латвийский, литовский, словацкий языки и несколько мультибайтных
кодировок вне зависимости от языка.
%description -l uk_UA.KOI8-U
Enca (Extremely Naive Charset Analyser) - проста утил╕та, що нада╓
можлив╕сть "вгадувати" кодування тектового файлу та, можливо,
конвертувати його у ╕нше в╕доме.
На цей час п╕дтримуються б╕лоруська, чеська, польська, рос╕йська,
словацька, укра╖нська, болгарська, хорватська, естонська, угорська,
латв╕йська, литовська, словацька мови та дек╕лька мультибайтових
кодувань незалежно в╕д мови.
%package -n lib%name
Summary: Shared Enca library
Group: System/Libraries
%description -n lib%name
This package contains shared Enca library which other programs may use.
%package -n lib%name-devel
Summary: Header files and libraries for Enca development
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package contains the development library and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.
Install this package if you are going to create applications using the
Enca library.
%if_enabled static
%package -n lib%name-devel-static
Summary: Static libraries for Enca development
Group: Development/C
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
This package contains the static library for building statically linked
programs using the Extremely Naive Charset Analyser library.
%endif
%prep
%setup
%build
%configure %{subst_enable static} --without-librecode
%make_build
%install
%makeinstall HTML_DIR=%buildroot%_docdir/%name-%version/html
%files
%_bindir/enca
%_bindir/enconv
%_libexecdir/%name/
%doc %_man1dir/*
%doc AUTHORS COPYING ChangeLog ChangeLog.prelib NEWS README THANKS TODO
%files -n lib%name
%_libdir/libenca.so.*
%files -n lib%name-devel
%_includedir/enca.h
%_libdir/libenca.so
%_pkgconfigdir/enca.pc
%doc README.devel INSTALL devel-docs/html
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
Name: enca
Version: 1.11
Release: alt1
Summary: A program that guesses encoding of text files
License: GPL
Group: Text tools
#URL: http://trific.ath.cx/software/enca
Url: http://gitorious.org/enca
Source: http://dl.cihar.com/enca/%name-%version.tar
Packager: Michael Shigorin <mike at altlinux.org>
PreReq: sed, lib%name = %version-%release
BuildPreReq: bzip2-devel
# Optional requires for external convertors:
# recode recode-devel
# perl-Encode perl-Unicode-Map perl-Unicode-Map8
%add_findreq_skiplist %_libexecdir/%name/
# Automatically added by buildreq on Sat Jan 12 2008
BuildRequires: gcc-c++
#gtk-doc
Summary(ru_RU.KOI8-R): Программа, "угадывающая" кодировку текстовых файлов
Summary(uk_UA.KOI8-U): Програма, що "вгаду╓" кодування текстових файл╕в
%description
Enca (Extremely Naive Charset Analyser) is a simple utility guessing
encoding of text files and optionally converting them to some other
encoding using either a built-in convertor, a system conversion library
or an external conversion program.
Currently, it has support for Belarussian, Czech, Polish, Russian,
Slovak, Ukrainian, Bulgarian, Croatian, Estonian, Hungarian, Latvian,
Lithuanian, Slovene and some multibyte encodings (mostly variants of
Unicode) independent on language.
Install Enca if you need to cope with text files of dubious origin
and unknown encoding and convert them to some reasonable encoding.
%description -l ru_RU.KOI8-R
Enca (Extremely Naive Charset Analyser) - простая утилита, которая
позволяет "угадывать" кодировку текстового файла и, возможно,
конвертировать его в другую известную.
Сейчас поддерживаются белорусский, чешский, польский, русский,
словацкий, украинский, болгарский, хорватский, эстонский, венгерский,
латвийский, литовский, словацкий языки и несколько мультибайтных
кодировок вне зависимости от языка.
%description -l uk_UA.KOI8-U
Enca (Extremely Naive Charset Analyser) - проста утил╕та, що нада╓
можлив╕сть "вгадувати" кодування тектового файлу та, можливо,
конвертувати його у ╕нше в╕доме.
На цей час п╕дтримуються б╕лоруська, чеська, польська, рос╕йська,
словацька, укра╖нська, болгарська, хорватська, естонська, угорська,
латв╕йська, литовська, словацька мови та дек╕лька мультибайтових
кодувань незалежно в╕д мови.
%package -n lib%name
Summary: Shared Enca library
Group: System/Libraries
%description -n lib%name
This package contains shared Enca library which other programs may use.
%package -n lib%name-devel
Summary: Header files and libraries for Enca development
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package contains the development library and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.
Install this package if you are going to create applications using the
Enca library.
%if_enabled static
%package -n lib%name-devel-static
Summary: Static libraries for Enca development
Group: Development/C
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
This package contains the static library for building statically linked
programs using the Extremely Naive Charset Analyser library.
%endif
%prep
%setup
%build
%configure %{subst_enable static} --without-librecode
%make_build
%install
%makeinstall HTML_DIR=%buildroot%_docdir/%name-%version/html
%files
%_bindir/enca
%_bindir/enconv
%_libexecdir/%name/
%doc %_man1dir/*
%doc AUTHORS COPYING ChangeLog ChangeLog.prelib NEWS README THANKS TODO
%files -n lib%name
%_libdir/libenca.so.*
%files -n lib%name-devel
%_includedir/enca.h
%_libdir/libenca.so
%_pkgconfigdir/enca.pc
%doc README.devel INSTALL devel-docs/html
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь