]> git.pld-linux.org Git - packages/recode.git/blob - recode.spec
- added bool patch to fix recode headers usage with recent gcc (include <stdbool.h>)
[packages/recode.git] / recode.spec
1 Summary:        Utility for converting text between multiple character sets
2 Summary(pl.UTF-8):      Uniwersalny konwerter między zestawami znaków
3 Name:           recode
4 Version:        3.6
5 Release:        7
6 License:        LGPL v2+ (library), GPL v2+ (utility)
7 Group:          Applications/Text
8 # for future releases (3.7/4.0) see https://github.com/pinard/Recode/
9 Source0:        %{name}-%{version}.tar.gz
10 # Source0-md5:  be3f40ad2e93dae5cd5f628264bf1877
11 Patch0:         %{name}-info.patch
12 Patch1:         %{name}-use_malloc_realloc.patch
13 Patch2:         %{name}-am.patch
14 Patch3:         %{name}-hash-nameconflict.patch
15 Patch4:         %{name}-ac25x.patch
16 Patch5:         %{name}-el.po-no0xD2.patch
17 Patch6:         %{name}-pl.po-update.patch
18 Patch7:         %{name}-debian-11.patch
19 Patch8:         %{name}-gcc4_3.patch
20 Patch9:         %{name}-bool.patch
21 Patch10:        %{name}-ac.patch
22 URL:            http://recode.progiciels-bpi.ca/
23 BuildRequires:  autoconf >= 2.53
24 BuildRequires:  automake
25 BuildRequires:  flex
26 BuildRequires:  libtool
27 BuildRequires:  texinfo
28 Requires(post,postun):  /sbin/ldconfig
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 Free `recode' converts files between various character sets and
33 surfaces. It supports more than 200 different character sets and
34 surfaces, including well known ISO-8859, CP-XXXX and Unicode.
35
36 %description -l pl.UTF-8
37 Program `recode' konwertuje pliki pomiędzy różnymi zestawami znaków i
38 kodowaniami. Obsługuje ponad 200 różnych zestawów znaków oraz sposobów
39 kodowania, włącznie z popularnymi ISO-8859, CP-XXXX oraz Unicode.
40
41 %package devel
42 Summary:        Header files and documentations for librecode
43 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja do librecode
44 License:        LGPL v2+
45 Group:          Development/Libraries
46 Requires:       %{name} = %{version}-%{release}
47
48 %description devel
49 Header files and documentations for librecode.
50
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe i dokumentacja do librecode.
53
54 %package static
55 Summary:        Static librecode library
56 Summary(pl.UTF-8):      Biblioteka statyczna librecode
57 License:        LGPL v2+
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static librecode library.
63
64 %description static -l pl.UTF-8
65 Biblioteka statyczna librecode.
66
67 %prep
68 %setup -q
69 %patch0 -p1
70 %patch1 -p1
71 %patch2 -p1
72 %patch3 -p1
73 %patch4 -p1
74 %patch5 -p1
75 %patch6 -p1
76 %patch7 -p1
77 %patch8 -p1
78 %patch9 -p1
79 %patch10 -p1
80
81 # duplicate of m4/*.m4 files
82 %{__rm} acinclude.m4
83
84 %build
85 %{__libtoolize}
86 %{__aclocal} -I m4
87 %{__autoconf}
88 %{__automake}
89 %configure
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 %find_lang %{name}
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post
104 /sbin/ldconfig
105 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
106
107 %postun
108 /sbin/ldconfig
109 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
110
111 %files -f %{name}.lang
112 %defattr(644,root,root,755)
113 %doc AUTHORS NEWS BACKLOG README THANKS TODO
114 %attr(755,root,root) %{_bindir}/recode
115 %attr(755,root,root) %{_libdir}/librecode.so.*.*.*
116 %attr(755,root,root) %ghost %{_libdir}/librecode.so.0
117 %{_infodir}/recode.info*
118 %{_mandir}/man1/recode.1*
119
120 %files devel
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/librecode.so
123 %{_libdir}/librecode.la
124 %{_includedir}/recode.h
125 %{_includedir}/recodext.h
126
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/librecode.a
This page took 0.034391 seconds and 3 git commands to generate.