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