]> git.pld-linux.org Git - packages/enca.git/blame - enca.spec
noarch apidocs
[packages/enca.git] / enca.spec
CommitLineData
2b80baee 1#
903fee6f 2# Conditional build:
a8f0a392 3%bcond_without apidocs # disable gtk-doc
903fee6f 4%bcond_without recode # build without recode support
ebd14a94 5
c5a29f4c 6Summary: Extremely Naive Charset Analyser
1b834328 7Summary(pl.UTF-8): Skrajnie naiwny analizator zestawów znaków
c5a29f4c 8Name: enca
10698582 9Version: 1.15
ebd14a94 10Release: 2
c5a29f4c
JB
11License: GPL v2
12Group: Libraries
eb19b03a 13Source0: http://dl.cihar.com/enca/%{name}-%{version}.tar.bz2
10698582 14# Source0-md5: fef132969d26e649719eae08297a4a52
282d380f 15Patch0: %{name}-libdir.patch
eb19b03a
JB
16URL: http://cihar.com/software/enca/
17BuildRequires: autoconf >= 2.52
18BuildRequires: automake >= 1:1.8
ebd14a94 19%{?with_apidocs:BuildRequires: gtk-doc >= 1.0}
e685884d 20BuildRequires: iconv
903fee6f 21%{?with_recode:BuildRequires: recode-devel}
1229a396 22Requires: %{name}-libs = %{version}-%{release}
ebd14a94 23Requires: /bin/mktemp
c5a29f4c
JB
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27Enca is an Extremely Naive Charset Analyser. It detects character set
28and encoding of text files and can also convert them to other
29encodings using either a built-in converter or external libraries and
30tools like libiconv, librecode, or cstocs.
31
32Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
33Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, and
34Ukrainian and some multibyte encodings (mostly variants of Unicode)
35independently on the language.
36
f7439809 37%description -l pl.UTF-8
c5a29f4c 38Enca to Extremely Naive Charset Analyser (skrajnie naiwny analizator
f7439809
JR
39zestawów znaków). Wykrywa zestaw znaków i kodowanie plików tekstowych,
40może także konwertować do innych kodowań przy użyciu wbudowanego
41konwertera lub zewnętrznych bibliotek i narzędzi takich jak libiconv,
c5a29f4c
JB
42librecode czy cstocs.
43
f7439809
JR
44Aktualnie obsługiwane są znaki białoruskie, bułgarskie, chorwackie,
45czeskie, estońskie, litewskie, łotewskie, polskie, rosyjskie,
46słowackie, słoweńskie i ukraińskie oraz niektóre kodowania
47wielobajtowe (głównie warianty unikodu) niezależnie od języka.
c5a29f4c 48
1229a396
ER
49%package libs
50Summary: Shared Enca library
1b834328 51Summary(pl.UTF-8): Biblioteka współdzielona Enca
1229a396
ER
52Group: Libraries
53
54%description libs
55This package contains shared Enca library other programs can make use
56of.
57
f7439809
JR
58%description libs -l pl.UTF-8
59Ten pakiet zawiera bibliotekę współdzieloną Enca, która może być
c5a29f4c
JB
60wykorzystywana przez inne programy.
61
62%package devel
63Summary: Header files for ENCA library
1b834328 64Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ENCA
c5a29f4c 65Group: Development/Libraries
b0601e99 66Requires: %{name}-libs = %{version}-%{release}
c5a29f4c
JB
67
68%description devel
69Header files for ENCA library.
70
f7439809
JR
71%description devel -l pl.UTF-8
72Pliki nagłówkowe biblioteki ENCA.
c5a29f4c
JB
73
74%package static
75Summary: Static ENCA library
1b834328 76Summary(pl.UTF-8): Statyczna biblioteka ENCA
c5a29f4c 77Group: Development/Libraries
e0f2de6f 78Requires: %{name}-devel = %{version}-%{release}
c5a29f4c
JB
79
80%description static
81Static ENCA library.
82
f7439809 83%description static -l pl.UTF-8
c5a29f4c
JB
84Statyczna biblioteka ENCA.
85
a8f0a392
MB
86%package apidocs
87Summary: ENCA library API documentation
88Summary(pl.UTF-8): Dokumentacja API biblioteki ENCA
89Group: Documentation
90Requires: gtk-doc-common
ebd14a94
ER
91%if "%{_rpmversion}" >= "5"
92BuildArch: noarch
93%endif
a8f0a392
MB
94
95%description apidocs
96ENCA library API documentation.
97
98%description apidocs -l pl.UTF-8
99Dokumentacja API biblioteki ENCA.
100
c5a29f4c
JB
101%prep
102%setup -q
282d380f 103%patch0 -p1
c5a29f4c
JB
104
105%build
9636619a 106cp -f /usr/share/automake/config.sub .
e685884d 107%{__autoconf}
c5a29f4c
JB
108%configure \
109 MKTEMP_PROG=/bin/mktemp \
a8f0a392 110 --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
c5a29f4c
JB
111 --with-html-dir=%{_gtkdocdir}
112
113%{__make}
114
115%install
116rm -rf $RPM_BUILD_ROOT
117
118%{__make} install \
119 DESTDIR=$RPM_BUILD_ROOT
120
eb19b03a 121%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
c5a29f4c
JB
122echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
123
a8f0a392
MB
124%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
125
c5a29f4c
JB
126%clean
127rm -rf $RPM_BUILD_ROOT
128
d0537325
ER
129%post libs -p /sbin/ldconfig
130%postun libs -p /sbin/ldconfig
c5a29f4c
JB
131
132%files
133%defattr(644,root,root,755)
134%doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
eb19b03a
JB
135%attr(755,root,root) %{_bindir}/enca
136%attr(755,root,root) %{_bindir}/enconv
467ec642 137%attr(755,root,root) %{_libexecdir}/enca
eb19b03a
JB
138%{_mandir}/man1/enca.1*
139%{_mandir}/man1/enconv.1*
c5a29f4c 140
d0537325
ER
141%files libs
142%defattr(644,root,root,755)
eb19b03a
JB
143%attr(755,root,root) %{_libdir}/libenca.so.*.*.*
144%attr(755,root,root) %ghost %{_libdir}/libenca.so.0
d0537325 145
c5a29f4c
JB
146%files devel
147%defattr(644,root,root,755)
148%doc README.devel
eb19b03a
JB
149%attr(755,root,root) %{_libdir}/libenca.so
150%{_libdir}/libenca.la
151%{_includedir}/enca.h
152%{_pkgconfigdir}/enca.pc
c5a29f4c
JB
153
154%files static
155%defattr(644,root,root,755)
eb19b03a 156%{_libdir}/libenca.a
a8f0a392
MB
157
158%if %{with apidocs}
159%files apidocs
160%defattr(644,root,root,755)
161%{_gtkdocdir}/libenca
162%endif
This page took 0.112617 seconds and 4 git commands to generate.