]>
Commit | Line | Data |
---|---|---|
a3b9770d | 1 | Summary: Utility for converting text between multiple character sets |
155a77a1 | 2 | Summary(pl.UTF-8): Uniwersalny konwerter między zestawami znaków |
ef1579a6 | 3 | Name: recode |
c4b576de | 4 | Version: 3.6 |
8597275c JB |
5 | Release: 7 |
6 | License: LGPL v2+ (library), GPL v2+ (utility) | |
974cb650 | 7 | Group: Applications/Text |
8597275c JB |
8 | # for future releases (3.7/4.0) see https://github.com/pinard/Recode/ |
9 | Source0: %{name}-%{version}.tar.gz | |
dc4b36c9 | 10 | # Source0-md5: be3f40ad2e93dae5cd5f628264bf1877 |
72fc28d9 | 11 | Patch0: %{name}-info.patch |
12 | Patch1: %{name}-use_malloc_realloc.patch | |
5b4a1f52 JB |
13 | Patch2: %{name}-am.patch |
14 | Patch3: %{name}-hash-nameconflict.patch | |
2e3d7246 | 15 | Patch4: %{name}-ac25x.patch |
c4b576de JB |
16 | Patch5: %{name}-el.po-no0xD2.patch |
17 | Patch6: %{name}-pl.po-update.patch | |
4bb8e5ba | 18 | Patch7: %{name}-debian-11.patch |
cf0b7574 | 19 | Patch8: %{name}-gcc4_3.patch |
8597275c JB |
20 | Patch9: %{name}-bool.patch |
21 | Patch10: %{name}-ac.patch | |
22 | URL: http://recode.progiciels-bpi.ca/ | |
2e3d7246 | 23 | BuildRequires: autoconf >= 2.53 |
72fc28d9 | 24 | BuildRequires: automake |
25 | BuildRequires: flex | |
1b855d77 JB |
26 | BuildRequires: libtool |
27 | BuildRequires: texinfo | |
2e3d7246 | 28 | Requires(post,postun): /sbin/ldconfig |
3c2361eb | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ef1579a6 | 30 | |
31 | %description | |
974cb650 | 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. | |
ef1579a6 | 35 | |
6d4ec1f1 JR |
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. | |
ef1579a6 | 40 | |
41 | %package devel | |
2e3d7246 | 42 | Summary: Header files and documentations for librecode |
155a77a1 | 43 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do librecode |
8597275c | 44 | License: LGPL v2+ |
a3b9770d | 45 | Group: Development/Libraries |
75c934a2 | 46 | Requires: %{name} = %{version}-%{release} |
ef1579a6 | 47 | |
48 | %description devel | |
2e3d7246 | 49 | Header files and documentations for librecode. |
ef1579a6 | 50 | |
6d4ec1f1 JR |
51 | %description devel -l pl.UTF-8 |
52 | Pliki nagłówkowe i dokumentacja do librecode. | |
a3b9770d | 53 | |
54 | %package static | |
2e3d7246 | 55 | Summary: Static librecode library |
155a77a1 | 56 | Summary(pl.UTF-8): Biblioteka statyczna librecode |
8597275c | 57 | License: LGPL v2+ |
a3b9770d | 58 | Group: Development/Libraries |
75c934a2 | 59 | Requires: %{name}-devel = %{version}-%{release} |
a3b9770d | 60 | |
61 | %description static | |
2e3d7246 | 62 | Static librecode library. |
a3b9770d | 63 | |
6d4ec1f1 | 64 | %description static -l pl.UTF-8 |
a3b9770d | 65 | Biblioteka statyczna librecode. |
ef1579a6 | 66 | |
67 | %prep | |
68 | %setup -q | |
f66901e8 | 69 | %patch0 -p1 |
72fc28d9 | 70 | %patch1 -p1 |
5b4a1f52 JB |
71 | %patch2 -p1 |
72 | %patch3 -p1 | |
2e3d7246 | 73 | %patch4 -p1 |
c4b576de JB |
74 | %patch5 -p1 |
75 | %patch6 -p1 | |
4bb8e5ba | 76 | %patch7 -p1 |
cf0b7574 | 77 | %patch8 -p1 |
8597275c JB |
78 | %patch9 -p1 |
79 | %patch10 -p1 | |
80 | ||
81 | # duplicate of m4/*.m4 files | |
82 | %{__rm} acinclude.m4 | |
ef1579a6 | 83 | |
84 | %build | |
348a264a | 85 | %{__libtoolize} |
8597275c | 86 | %{__aclocal} -I m4 |
bfa25ab2 | 87 | %{__autoconf} |
88 | %{__automake} | |
255d8ae4 | 89 | %configure |
6f9deefe | 90 | %{__make} |
ef1579a6 | 91 | |
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
75c934a2 | 95 | %{__make} install \ |
96 | DESTDIR=$RPM_BUILD_ROOT | |
ef1579a6 | 97 | |
ef1579a6 | 98 | %find_lang %{name} |
99 | ||
1a9df067 JB |
100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
f66901e8 | 102 | |
1a9df067 JB |
103 | %post |
104 | /sbin/ldconfig | |
74375b44 | 105 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
ef1579a6 | 106 | |
1a9df067 JB |
107 | %postun |
108 | /sbin/ldconfig | |
74375b44 | 109 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
ef1579a6 | 110 | |
ba425757 | 111 | %files -f %{name}.lang |
ef1579a6 | 112 | %defattr(644,root,root,755) |
2e3d7246 | 113 | %doc AUTHORS NEWS BACKLOG README THANKS TODO |
8597275c JB |
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* | |
f66901e8 | 119 | |
ef1579a6 | 120 | %files devel |
121 | %defattr(644,root,root,755) | |
8597275c JB |
122 | %attr(755,root,root) %{_libdir}/librecode.so |
123 | %{_libdir}/librecode.la | |
124 | %{_includedir}/recode.h | |
125 | %{_includedir}/recodext.h | |
a3b9770d | 126 | |
127 | %files static | |
974cb650 | 128 | %defattr(644,root,root,755) |
bdec4b7b | 129 | %{_libdir}/librecode.a |