]> git.pld-linux.org Git - packages/enca.git/blob - enca.spec
42319f3e28bf6f5f7ec54cb1a25304abe067d136
[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.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 Requires:       %{name}-libs = %{version}-%{release}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
28
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.
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 %package libs
47 Summary:        Shared Enca library
48 Group:          Libraries
49
50 %description libs
51 This package contains shared Enca library other programs can make use
52 of.
53
54 %description libs -l pl
55 Ten pakiet zawiera tak¿e bibliotekê wspó³dzielon± Enca, która mo¿e byæ
56 wykorzystywana przez inne programy.
57
58 %package devel
59 Summary:        Header files for ENCA library
60 Summary(pl):    Pliki nag³ówkowe biblioteki ENCA
61 Group:          Development/Libraries
62 Requires:       %{name} = %{version}-%{release}
63
64 %description devel
65 Header files for ENCA library.
66
67 %description devel -l pl
68 Pliki nag³ówkowe biblioteki ENCA.
69
70 %package static
71 Summary:        Static ENCA library
72 Summary(pl):    Statyczna biblioteka ENCA
73 Group:          Development/Libraries
74 Requires:       %{name}-devel = %{version}-%{release}
75
76 %description static
77 Static ENCA library.
78
79 %description static -l pl
80 Statyczna biblioteka ENCA.
81
82 %prep
83 %setup -q
84
85 %build
86 cp -f /usr/share/automake/config.sub .
87 %{__autoconf}
88 %configure \
89         MKTEMP_PROG=/bin/mktemp \
90         --with-html-dir=%{_gtkdocdir}
91
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
101 echo '.so enca.1' > $RPM_BUILD_ROOT%{_mandir}/man1/enconv.1
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog FAQ NEWS README THANKS TODO
112 %attr(755,root,root) %{_bindir}/*
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
114 %attr(755,root,root) %{_libexecdir}/enca
115 %{_mandir}/man1/*
116
117 %files devel
118 %defattr(644,root,root,755)
119 %doc README.devel
120 %attr(755,root,root) %{_libdir}/lib*.so
121 %{_libdir}/lib*.la
122 %{_includedir}/*.h
123 %{_pkgconfigdir}/*.pc
124 %{_gtkdocdir}/libenca
125
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/lib*.a
This page took 0.244667 seconds and 2 git commands to generate.