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: automake
16 %{?with_recode:BuildRequires: recode-devel}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Enca is an Extremely Naive Charset Analyser. It detects character set
22 and encoding of text files and can also convert them to other
23 encodings using either a built-in converter or external libraries and
24 tools like libiconv, librecode, or cstocs.
26 Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
27 Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, and
28 Ukrainian and some multibyte encodings (mostly variants of Unicode)
29 independently on the language.
31 This package also contains shared Enca library other programs can make
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.
46 Ten pakiet zawiera tak¿e bibliotekê wspó³dzielon± Enca, która mo¿e byæ
47 wykorzystywana przez inne programy.
50 Summary: Header files for ENCA library
51 Summary(pl): Pliki nag³ówkowe biblioteki ENCA
52 Group: Development/Libraries
53 Requires: %{name} = %{version}-%{release}
56 Header files for ENCA library.
58 %description devel -l pl
59 Pliki nag³ówkowe biblioteki ENCA.
62 Summary: Static ENCA library
63 Summary(pl): Statyczna biblioteka ENCA
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}-%{release}
70 %description static -l pl
71 Statyczna biblioteka ENCA.
77 cp -f /usr/share/automake/config.sub .
79 MKTEMP_PROG=/bin/mktemp \
80 --with-html-dir=%{_gtkdocdir}
85 rm -rf $RPM_BUILD_ROOT
88 DESTDIR=$RPM_BUILD_ROOT
90 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
91 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
104 %attr(755,root,root) %{_libdir}/enca
108 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/lib*.so
113 %{_pkgconfigdir}/*.pc
114 %{_gtkdocdir}/libenca
117 %defattr(644,root,root,755)