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: c7ca49601dd80d0300bbb80d5121cf75
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
48 Summary(pl): Biblioteka wspó³dzielona Enca
52 This package contains shared Enca library other programs can make use
55 %description libs -l pl
56 Ten pakiet zawiera bibliotekê wspó³dzielon± Enca, która mo¿e byæ
57 wykorzystywana przez inne programy.
60 Summary: Header files for ENCA library
61 Summary(pl): Pliki nag³ówkowe biblioteki ENCA
62 Group: Development/Libraries
63 Requires: %{name}-libs = %{version}-%{release}
66 Header files for ENCA library.
68 %description devel -l pl
69 Pliki nag³ówkowe biblioteki ENCA.
72 Summary: Static ENCA library
73 Summary(pl): Statyczna biblioteka ENCA
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{version}-%{release}
80 %description static -l pl
81 Statyczna biblioteka ENCA.
87 cp -f /usr/share/automake/config.sub .
90 MKTEMP_PROG=/bin/mktemp \
91 --with-html-dir=%{_gtkdocdir}
96 rm -rf $RPM_BUILD_ROOT
99 DESTDIR=$RPM_BUILD_ROOT
101 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
102 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
105 rm -rf $RPM_BUILD_ROOT
107 %post libs -p /sbin/ldconfig
108 %postun libs -p /sbin/ldconfig
111 %defattr(644,root,root,755)
112 %doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
113 %attr(755,root,root) %{_bindir}/*
114 %attr(755,root,root) %{_libexecdir}/enca
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
122 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/lib*.so
127 %{_pkgconfigdir}/*.pc
128 %{_gtkdocdir}/libenca
131 %defattr(644,root,root,755)