]> git.pld-linux.org Git - packages/enca.git/blob - enca.spec
- it is possible to build it without recode support (just 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:  automake
16 %{?with_recode:BuildRequires:   recode-devel}
17 Requires:       /bin/mktemp
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Enca is an Extremely Naive Charset Analyser. It detects character set
22 and encoding of text files and can also convert them to other
23 encodings using either a built-in converter or external libraries and
24 tools like libiconv, librecode, or cstocs.
25
26 Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
27 Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, and
28 Ukrainian and some multibyte encodings (mostly variants of Unicode)
29 independently on the language.
30
31 This package also contains shared Enca library other programs can make
32 use of.
33
34 %description -l pl
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,
39 librecode czy cstocs.
40
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.
45
46 Ten pakiet zawiera tak¿e bibliotekê wspó³dzielon± Enca, która mo¿e byæ
47 wykorzystywana przez inne programy.
48
49 %package devel
50 Summary:        Header files for ENCA library
51 Summary(pl):    Pliki nag³ówkowe biblioteki ENCA
52 Group:          Development/Libraries
53 Requires:       %{name} = %{version}-%{release}
54
55 %description devel
56 Header files for ENCA library.
57
58 %description devel -l pl
59 Pliki nag³ówkowe biblioteki ENCA.
60
61 %package static
62 Summary:        Static ENCA library
63 Summary(pl):    Statyczna biblioteka ENCA
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66
67 %description static
68 Static ENCA library.
69
70 %description static -l pl
71 Statyczna biblioteka ENCA.
72
73 %prep
74 %setup -q
75
76 %build
77 cp -f /usr/share/automake/config.sub .
78 %configure \
79         MKTEMP_PROG=/bin/mktemp \
80         --with-html-dir=%{_gtkdocdir}
81
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
91 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
100 %defattr(644,root,root,755)
101 %doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
104 %attr(755,root,root) %{_libdir}/enca
105 %{_mandir}/man1/*
106
107 %files devel
108 %defattr(644,root,root,755)
109 %doc README.devel
110 %attr(755,root,root) %{_libdir}/lib*.so
111 %{_libdir}/lib*.la
112 %{_includedir}/*.h
113 %{_pkgconfigdir}/*.pc
114 %{_gtkdocdir}/libenca
115
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/lib*.a
This page took 0.889378 seconds and 3 git commands to generate.