]> git.pld-linux.org Git - packages/recode.git/blame - recode.spec
Up to 3.7.14
[packages/recode.git] / recode.spec
CommitLineData
81922d73
AM
1# TODO: package python extension
2%bcond_without tests
3#
a3b9770d 4Summary: Utility for converting text between multiple character sets
155a77a1 5Summary(pl.UTF-8): Uniwersalny konwerter między zestawami znaków
ef1579a6 6Name: recode
81922d73
AM
7Version: 3.7.14
8Release: 1
8597275c 9License: LGPL v2+ (library), GPL v2+ (utility)
974cb650 10Group: Applications/Text
81922d73
AM
11Source0: https://github.com/rrthomas/recode/releases/download/v%{version}/recode-%{version}.tar.gz
12# Source0-md5: d88b41fd27549123a0822e5a3fae98a8
13Patch0: %{name}-info.patch
14Patch1: %{name}-pl.po-update.patch
15URL: https://github.com/rrthomas/recode
2e3d7246 16BuildRequires: autoconf >= 2.53
72fc28d9 17BuildRequires: automake
18BuildRequires: flex
1b855d77
JB
19BuildRequires: libtool
20BuildRequires: texinfo
81922d73
AM
21BuildRequires: python3
22BuildRequires: python3-modules
2e3d7246 23Requires(post,postun): /sbin/ldconfig
3c2361eb 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ef1579a6 25
26%description
974cb650 27Free `recode' converts files between various character sets and
28surfaces. It supports more than 200 different character sets and
29surfaces, including well known ISO-8859, CP-XXXX and Unicode.
ef1579a6 30
6d4ec1f1
JR
31%description -l pl.UTF-8
32Program `recode' konwertuje pliki pomiędzy różnymi zestawami znaków i
33kodowaniami. Obsługuje ponad 200 różnych zestawów znaków oraz sposobów
34kodowania, włącznie z popularnymi ISO-8859, CP-XXXX oraz Unicode.
ef1579a6 35
36%package devel
2e3d7246 37Summary: Header files and documentations for librecode
155a77a1 38Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do librecode
8597275c 39License: LGPL v2+
a3b9770d 40Group: Development/Libraries
75c934a2 41Requires: %{name} = %{version}-%{release}
ef1579a6 42
43%description devel
2e3d7246 44Header files and documentations for librecode.
ef1579a6 45
6d4ec1f1
JR
46%description devel -l pl.UTF-8
47Pliki nagłówkowe i dokumentacja do librecode.
a3b9770d 48
49%package static
2e3d7246 50Summary: Static librecode library
155a77a1 51Summary(pl.UTF-8): Biblioteka statyczna librecode
8597275c 52License: LGPL v2+
a3b9770d 53Group: Development/Libraries
75c934a2 54Requires: %{name}-devel = %{version}-%{release}
a3b9770d 55
56%description static
2e3d7246 57Static librecode library.
a3b9770d 58
6d4ec1f1 59%description static -l pl.UTF-8
a3b9770d 60Biblioteka 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
82rm -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
90rm -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
This page took 0.074436 seconds and 4 git commands to generate.