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 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Enca is an Extremely Naive Charset Analyser. It detects character set
24 and encoding of text files and can also convert them to other
25 encodings using either a built-in converter or external libraries and
26 tools like libiconv, librecode, or cstocs.
28 Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
29 Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, and
30 Ukrainian and some multibyte encodings (mostly variants of Unicode)
31 independently on the language.
33 This package also contains shared Enca library other programs can make
37 Enca to Extremely Naive Charset Analyser (skrajnie naiwny analizator
38 zestawów znaków). Wykrywa zestaw znaków i kodowanie plików tekstowych,
39 mo¿e tak¿e konwertowaæ do innych kodowañ przy u¿yciu wbudowanego
40 konwertera lub zewnêtrznych bibliotek i narzêdzi takich jak libiconv,
43 Aktualnie obs³ugiwane s± znaki bia³oruskie, bu³garskie, chorwackie,
44 czeskie, estoñskie, litewskie, ³otewskie, polskie, rosyjskie,
45 s³owackie, s³oweñskie i ukraiñskie oraz niektóre kodowania
46 wielobajtowe (g³ównie warianty unikodu) niezale¿nie od jêzyka.
48 Ten pakiet zawiera tak¿e bibliotekê wspó³dzielon± Enca, która mo¿e byæ
49 wykorzystywana przez inne programy.
52 Summary: Header files for ENCA library
53 Summary(pl): Pliki nag³ówkowe biblioteki ENCA
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Header files for ENCA library.
60 %description devel -l pl
61 Pliki nag³ówkowe biblioteki ENCA.
64 Summary: Static ENCA library
65 Summary(pl): Statyczna biblioteka ENCA
66 Group: Development/Libraries
67 Requires: %{name}-devel = %{version}-%{release}
72 %description static -l pl
73 Statyczna biblioteka ENCA.
79 cp -f /usr/share/automake/config.sub .
82 MKTEMP_PROG=/bin/mktemp \
83 --with-html-dir=%{_gtkdocdir}
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT
93 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
94 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
104 %doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
105 %attr(755,root,root) %{_bindir}/*
106 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
107 %attr(755,root,root) %{_libdir}/enca
111 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/lib*.so
116 %{_pkgconfigdir}/*.pc
117 %{_gtkdocdir}/libenca
120 %defattr(644,root,root,755)