]>
Commit | Line | Data |
---|---|---|
81922d73 AM |
1 | # TODO: package python extension |
2 | %bcond_without tests | |
3 | # | |
a3b9770d | 4 | Summary: Utility for converting text between multiple character sets |
155a77a1 | 5 | Summary(pl.UTF-8): Uniwersalny konwerter między zestawami znaków |
ef1579a6 | 6 | Name: recode |
81922d73 AM |
7 | Version: 3.7.14 |
8 | Release: 1 | |
8597275c | 9 | License: LGPL v2+ (library), GPL v2+ (utility) |
974cb650 | 10 | Group: Applications/Text |
81922d73 AM |
11 | Source0: https://github.com/rrthomas/recode/releases/download/v%{version}/recode-%{version}.tar.gz |
12 | # Source0-md5: d88b41fd27549123a0822e5a3fae98a8 | |
13 | Patch0: %{name}-info.patch | |
14 | Patch1: %{name}-pl.po-update.patch | |
15 | URL: https://github.com/rrthomas/recode | |
2e3d7246 | 16 | BuildRequires: autoconf >= 2.53 |
72fc28d9 | 17 | BuildRequires: automake |
18 | BuildRequires: flex | |
1b855d77 JB |
19 | BuildRequires: libtool |
20 | BuildRequires: texinfo | |
81922d73 AM |
21 | BuildRequires: python3 |
22 | BuildRequires: python3-modules | |
2e3d7246 | 23 | Requires(post,postun): /sbin/ldconfig |
3c2361eb | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ef1579a6 | 25 | |
26 | %description | |
974cb650 | 27 | Free `recode' converts files between various character sets and |
28 | surfaces. It supports more than 200 different character sets and | |
29 | surfaces, including well known ISO-8859, CP-XXXX and Unicode. | |
ef1579a6 | 30 | |
6d4ec1f1 JR |
31 | %description -l pl.UTF-8 |
32 | Program `recode' konwertuje pliki pomiędzy różnymi zestawami znaków i | |
33 | kodowaniami. Obsługuje ponad 200 różnych zestawów znaków oraz sposobów | |
34 | kodowania, włącznie z popularnymi ISO-8859, CP-XXXX oraz Unicode. | |
ef1579a6 | 35 | |
36 | %package devel | |
2e3d7246 | 37 | Summary: Header files and documentations for librecode |
155a77a1 | 38 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do librecode |
8597275c | 39 | License: LGPL v2+ |
a3b9770d | 40 | Group: Development/Libraries |
75c934a2 | 41 | Requires: %{name} = %{version}-%{release} |
ef1579a6 | 42 | |
43 | %description devel | |
2e3d7246 | 44 | Header files and documentations for librecode. |
ef1579a6 | 45 | |
6d4ec1f1 JR |
46 | %description devel -l pl.UTF-8 |
47 | Pliki nagłówkowe i dokumentacja do librecode. | |
a3b9770d | 48 | |
49 | %package static | |
2e3d7246 | 50 | Summary: Static librecode library |
155a77a1 | 51 | Summary(pl.UTF-8): Biblioteka statyczna librecode |
8597275c | 52 | License: LGPL v2+ |
a3b9770d | 53 | Group: Development/Libraries |
75c934a2 | 54 | Requires: %{name}-devel = %{version}-%{release} |
a3b9770d | 55 | |
56 | %description static | |
2e3d7246 | 57 | Static librecode library. |
a3b9770d | 58 | |
6d4ec1f1 | 59 | %description static -l pl.UTF-8 |
a3b9770d | 60 | Biblioteka statyczna librecode. |
ef1579a6 | 61 | |
62 | %prep | |
63 | %setup -q | |
81922d73 AM |
64 | #%patch0 -p1 |
65 | #%patch1 -p1 | |
ef1579a6 | 66 | |
1a958a86 JP |
67 | %{__sed} -i '1 i @documentencoding ISO-8859-1' doc/recode.texi |
68 | ||
ef1579a6 | 69 | %build |
348a264a | 70 | %{__libtoolize} |
8597275c | 71 | %{__aclocal} -I m4 |
bfa25ab2 | 72 | %{__autoconf} |
73 | %{__automake} | |
255d8ae4 | 74 | %configure |
6f9deefe | 75 | %{__make} |
ef1579a6 | 76 | |
81922d73 AM |
77 | %if %{with tests} |
78 | %{__make} check | |
79 | %endif | |
80 | ||
ef1579a6 | 81 | %install |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
75c934a2 | 84 | %{__make} install \ |
85 | DESTDIR=$RPM_BUILD_ROOT | |
ef1579a6 | 86 | |
ef1579a6 | 87 | %find_lang %{name} |
88 | ||
1a9df067 JB |
89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
f66901e8 | 91 | |
1a9df067 JB |
92 | %post |
93 | /sbin/ldconfig | |
74375b44 | 94 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
ef1579a6 | 95 | |
1a9df067 JB |
96 | %postun |
97 | /sbin/ldconfig | |
74375b44 | 98 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
ef1579a6 | 99 | |
ba425757 | 100 | %files -f %{name}.lang |
ef1579a6 | 101 | %defattr(644,root,root,755) |
81922d73 | 102 | %doc AUTHORS NEWS README THANKS TODO |
8597275c JB |
103 | %attr(755,root,root) %{_bindir}/recode |
104 | %attr(755,root,root) %{_libdir}/librecode.so.*.*.* | |
81922d73 | 105 | %attr(755,root,root) %ghost %{_libdir}/librecode.so.3 |
8597275c JB |
106 | %{_infodir}/recode.info* |
107 | %{_mandir}/man1/recode.1* | |
f66901e8 | 108 | |
ef1579a6 | 109 | %files devel |
110 | %defattr(644,root,root,755) | |
8597275c JB |
111 | %attr(755,root,root) %{_libdir}/librecode.so |
112 | %{_libdir}/librecode.la | |
113 | %{_includedir}/recode.h | |
114 | %{_includedir}/recodext.h | |
a3b9770d | 115 | |
116 | %files static | |
974cb650 | 117 | %defattr(644,root,root,755) |
bdec4b7b | 118 | %{_libdir}/librecode.a |