]> git.pld-linux.org Git - packages/enca.git/blob - enca.spec
- regenerate ac; BR: iconv
[packages/enca.git] / enca.spec
1 #
2 # Conditional build:
3 %bcond_without  recode  # build without recode support
4 #
5 Summary:        Extremely Naive Charset Analyser
6 Summary(pl):    Skrajnie naiwny analizator zestawów znaków
7 Name:           enca
8 Version:        1.7
9 Release:        1
10 License:        GPL v2
11 Group:          Libraries
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
17 BuildRequires:  iconv
18 %{?with_recode:BuildRequires:   recode-devel}
19 Requires:       /bin/mktemp
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
27
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.
32
33 This package also contains shared Enca library other programs can make
34 use of.
35
36 %description -l pl
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,
41 librecode czy cstocs.
42
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.
47
48 Ten pakiet zawiera tak¿e bibliotekê wspó³dzielon± Enca, która mo¿e byæ
49 wykorzystywana przez inne programy.
50
51 %package devel
52 Summary:        Header files for ENCA library
53 Summary(pl):    Pliki nag³ówkowe biblioteki ENCA
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56
57 %description devel
58 Header files for ENCA library.
59
60 %description devel -l pl
61 Pliki nag³ówkowe biblioteki ENCA.
62
63 %package static
64 Summary:        Static ENCA library
65 Summary(pl):    Statyczna biblioteka ENCA
66 Group:          Development/Libraries
67 Requires:       %{name}-devel = %{version}-%{release}
68
69 %description static
70 Static ENCA library.
71
72 %description static -l pl
73 Statyczna biblioteka ENCA.
74
75 %prep
76 %setup -q
77
78 %build
79 cp -f /usr/share/automake/config.sub .
80 %{__autoconf}
81 %configure \
82         MKTEMP_PROG=/bin/mktemp \
83         --with-html-dir=%{_gtkdocdir}
84
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
94 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
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
108 %{_mandir}/man1/*
109
110 %files devel
111 %defattr(644,root,root,755)
112 %doc README.devel
113 %attr(755,root,root) %{_libdir}/lib*.so
114 %{_libdir}/lib*.la
115 %{_includedir}/*.h
116 %{_pkgconfigdir}/*.pc
117 %{_gtkdocdir}/libenca
118
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/lib*.a
This page took 0.056121 seconds and 3 git commands to generate.