3 %bcond_without recode # build without recode support
5 Summary: Extremely Naive Charset Analyser
6 Summary(pl.UTF-8): Skrajnie naiwny analizator zestawów znaków
12 Source0: http://trific.ath.cx/Ftp/enca/%{name}-%{version}.tar.bz2
13 # Source0-md5: b3581e28d68d452286fb0bfe58bed3b3
14 Patch0: %{name}-libdir.patch
15 URL: http://trific.ath.cx/software/enca/
16 BuildRequires: autoconf
17 BuildRequires: automake
19 %{?with_recode:BuildRequires: recode-devel}
21 Requires: %{name}-libs = %{version}-%{release}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Enca is an Extremely Naive Charset Analyser. It detects character set
26 and encoding of text files and can also convert them to other
27 encodings using either a built-in converter or external libraries and
28 tools like libiconv, librecode, or cstocs.
30 Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
31 Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, and
32 Ukrainian and some multibyte encodings (mostly variants of Unicode)
33 independently on the language.
35 %description -l pl.UTF-8
36 Enca to Extremely Naive Charset Analyser (skrajnie naiwny analizator
37 zestawów znaków). Wykrywa zestaw znaków i kodowanie plików tekstowych,
38 może także konwertować do innych kodowań przy użyciu wbudowanego
39 konwertera lub zewnętrznych bibliotek i narzędzi takich jak libiconv,
42 Aktualnie obsługiwane są znaki białoruskie, bułgarskie, chorwackie,
43 czeskie, estońskie, litewskie, łotewskie, polskie, rosyjskie,
44 słowackie, słoweńskie i ukraińskie oraz niektóre kodowania
45 wielobajtowe (głównie warianty unikodu) niezależnie od języka.
48 Summary: Shared Enca library
49 Summary(pl.UTF-8): Biblioteka współdzielona Enca
53 This package contains shared Enca library other programs can make use
56 %description libs -l pl.UTF-8
57 Ten pakiet zawiera bibliotekę współdzieloną Enca, która może być
58 wykorzystywana przez inne programy.
61 Summary: Header files for ENCA library
62 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ENCA
63 Group: Development/Libraries
64 Requires: %{name}-libs = %{version}-%{release}
67 Header files for ENCA library.
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe biblioteki ENCA.
73 Summary: Static ENCA library
74 Summary(pl.UTF-8): Statyczna biblioteka ENCA
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{version}-%{release}
81 %description static -l pl.UTF-8
82 Statyczna biblioteka ENCA.
89 cp -f /usr/share/automake/config.sub .
92 MKTEMP_PROG=/bin/mktemp \
93 --with-html-dir=%{_gtkdocdir}
98 rm -rf $RPM_BUILD_ROOT
101 DESTDIR=$RPM_BUILD_ROOT
103 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
104 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
107 rm -rf $RPM_BUILD_ROOT
109 %post libs -p /sbin/ldconfig
110 %postun libs -p /sbin/ldconfig
113 %defattr(644,root,root,755)
114 %doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
115 %attr(755,root,root) %{_bindir}/*
116 %attr(755,root,root) %{_libexecdir}/enca
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
124 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/lib*.so
129 %{_pkgconfigdir}/*.pc
130 %{_gtkdocdir}/libenca
133 %defattr(644,root,root,755)