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