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