3 %bcond_without recode # build without recode support
5 Summary: Extremely Naive Charset Analyser
6 Summary(pl): Skrajnie naiwny analizator zestawów znaków
12 Source0: http://trific.ath.cx/Ftp/enca/%{name}-%{version}.tar.bz2
13 # Source0-md5: 01dd5dbd4154c85cbf4a42d3580c517f
14 URL: http://trific.ath.cx/software/enca/
15 BuildRequires: autoconf
16 BuildRequires: automake
18 %{?with_recode:BuildRequires: recode-devel}
20 Requires: %{name}-libs = %{version}-%{release}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Enca is an Extremely Naive Charset Analyser. It detects character set
25 and encoding of text files and can also convert them to other
26 encodings using either a built-in converter or external libraries and
27 tools like libiconv, librecode, or cstocs.
29 Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
30 Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, and
31 Ukrainian and some multibyte encodings (mostly variants of Unicode)
32 independently on the language.
35 Enca to Extremely Naive Charset Analyser (skrajnie naiwny analizator
36 zestawów znaków). Wykrywa zestaw znaków i kodowanie plików tekstowych,
37 mo¿e tak¿e konwertowaæ do innych kodowañ przy u¿yciu wbudowanego
38 konwertera lub zewnêtrznych bibliotek i narzêdzi takich jak libiconv,
41 Aktualnie obs³ugiwane s± znaki bia³oruskie, bu³garskie, chorwackie,
42 czeskie, estoñskie, litewskie, ³otewskie, polskie, rosyjskie,
43 s³owackie, s³oweñskie i ukraiñskie oraz niektóre kodowania
44 wielobajtowe (g³ównie warianty unikodu) niezale¿nie od jêzyka.
47 Summary: Shared Enca library
51 This package contains shared Enca library other programs can make use
54 %description libs -l pl
55 Ten pakiet zawiera tak¿e bibliotekê wspó³dzielon± Enca, która mo¿e byæ
56 wykorzystywana przez inne programy.
59 Summary: Header files for ENCA library
60 Summary(pl): Pliki nag³ówkowe biblioteki ENCA
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
65 Header files for ENCA library.
67 %description devel -l pl
68 Pliki nag³ówkowe biblioteki ENCA.
71 Summary: Static ENCA library
72 Summary(pl): Statyczna biblioteka ENCA
73 Group: Development/Libraries
74 Requires: %{name}-devel = %{version}-%{release}
79 %description static -l pl
80 Statyczna biblioteka ENCA.
86 cp -f /usr/share/automake/config.sub .
89 MKTEMP_PROG=/bin/mktemp \
90 --with-html-dir=%{_gtkdocdir}
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
100 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
101 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
112 %attr(755,root,root) %{_bindir}/*
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
114 %attr(755,root,root) %{_libexecdir}/enca
118 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/lib*.so
123 %{_pkgconfigdir}/*.pc
124 %{_gtkdocdir}/libenca
127 %defattr(644,root,root,755)