]> git.pld-linux.org Git - packages/recode.git/blob - recode.spec
c0bf9f949c3b67ab350d729ff3f7560fcb8e9afe
[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:        8
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 Patch11:        %{name}-format.patch
23 URL:            http://recode.progiciels-bpi.ca/
24 BuildRequires:  autoconf >= 2.53
25 BuildRequires:  automake
26 BuildRequires:  flex
27 BuildRequires:  libtool
28 BuildRequires:  texinfo
29 Requires(post,postun):  /sbin/ldconfig
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 Free `recode' converts files between various character sets and
34 surfaces. It supports more than 200 different character sets and
35 surfaces, including well known ISO-8859, CP-XXXX and Unicode.
36
37 %description -l pl.UTF-8
38 Program `recode' konwertuje pliki pomiędzy różnymi zestawami znaków i
39 kodowaniami. Obsługuje ponad 200 różnych zestawów znaków oraz sposobów
40 kodowania, włącznie z popularnymi ISO-8859, CP-XXXX oraz Unicode.
41
42 %package devel
43 Summary:        Header files and documentations for librecode
44 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja do librecode
45 License:        LGPL v2+
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48
49 %description devel
50 Header files and documentations for librecode.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe i dokumentacja do librecode.
54
55 %package static
56 Summary:        Static librecode library
57 Summary(pl.UTF-8):      Biblioteka statyczna librecode
58 License:        LGPL v2+
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{version}-%{release}
61
62 %description static
63 Static librecode library.
64
65 %description static -l pl.UTF-8
66 Biblioteka statyczna librecode.
67
68 %prep
69 %setup -q
70 %patch0 -p1
71 %patch1 -p1
72 %patch2 -p1
73 %patch3 -p1
74 %patch4 -p1
75 %patch5 -p1
76 %patch6 -p1
77 %patch7 -p1
78 %patch8 -p1
79 %patch9 -p1
80 %patch10 -p1
81 %patch11 -p1
82
83 # duplicate of m4/*.m4 files
84 %{__rm} acinclude.m4
85
86 %build
87 %{__libtoolize}
88 %{__aclocal} -I m4
89 %{__autoconf}
90 %{__automake}
91 %configure
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 %find_lang %{name}
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post
106 /sbin/ldconfig
107 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
108
109 %postun
110 /sbin/ldconfig
111 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
112
113 %files -f %{name}.lang
114 %defattr(644,root,root,755)
115 %doc AUTHORS NEWS BACKLOG README THANKS TODO
116 %attr(755,root,root) %{_bindir}/recode
117 %attr(755,root,root) %{_libdir}/librecode.so.*.*.*
118 %attr(755,root,root) %ghost %{_libdir}/librecode.so.0
119 %{_infodir}/recode.info*
120 %{_mandir}/man1/recode.1*
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/librecode.so
125 %{_libdir}/librecode.la
126 %{_includedir}/recode.h
127 %{_includedir}/recodext.h
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/librecode.a
This page took 0.077541 seconds and 2 git commands to generate.