]> git.pld-linux.org Git - SPECS.git/blob - libiconv.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libiconv.spec
1 # NOTE: don't send this (glibc based) build to builders
2 Summary:        Character set conversion library
3 Summary(pl.UTF-8):      Biblioteka konwersji zestawów znaków
4 Name:           libiconv
5 Version:        1.16
6 Release:        0.1
7 License:        LGPL v3+
8 Group:          Libraries
9 Source0:        https://ftp.gnu.org/gnu/libiconv/%{name}-%{version}.tar.gz
10 # Source0-md5:  7d2a800b952942bb2880efb00cfd524c
11 URL:            http://www.gnu.org/software/libiconv/
12 BuildRequires:  autoconf >= 2.60
13 BuildRequires:  automake
14 BuildRequires:  libtool >= 2:2.0
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 This library provides an iconv() implementation, for use on systems
19 which don't have one, or whose implementation cannot convert from/to
20 Unicode.
21
22 %description -l pl.UTF-8
23 Ta biblioteka dostarcza implementację iconv() do używania z systemami,
24 które takiej funkcji nie posiadają, lub na których implementacja nie
25 potrafi konwertować z/do Unikodu.
26
27 %package devel
28 Summary:        libiconv header files
29 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libiconv
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}-%{release}
32 %if "%{_includedir}" == "/usr/include"
33 Conflicts:      glibc-devel
34 %endif
35
36 %description devel
37 This package contains libiconv header files.
38
39 %description devel -l pl.UTF-8
40 Pakiet ten zawiera pliki nagłówkowe biblioteki libiconv.
41
42 %package static
43 Summary:        libiconv static library
44 Summary(pl.UTF-8):      Statyczna biblioteka libiconv
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 This package contains static libiconv library.
50
51 %description static -l pl.UTF-8
52 Pakiet ten zawiera statyczną bibliotekę libiconv.
53
54 %package utils
55 Summary:        iconv utility
56 Summary(pl.UTF-8):      Narzędzie iconv
57 License:        GPL v3+
58 Group:          Applications/Text
59 Requires:       %{name} = %{version}-%{release}
60 %if "%{_bindir}" == "/usr/bin"
61 Conflicts:      glibc-misc
62 %endif
63
64 %description utils
65 iconv utility.
66
67 %description utils -l pl.UTF-8
68 Narzędzie iconv.
69
70 %prep
71 %setup -q
72
73 %{__rm} po/stamp-po
74
75 # struggling to get it regenerated, but i fail, these still remain:
76 #-rw-r--r-- 1 glen users 281073 24. sept   2010 ./libcharset/m4/libtool.m4
77 #-rw-r--r-- 1 glen users 281073 24. sept   2010 ./m4/libtool.m4
78 %{__rm} libcharset/m4/{libtool,lt*}.m4
79 %{__rm} m4/{libtool,lt*}.m4
80
81 %build
82 cp -f /usr/share/automake/config.sub build-aux
83 cp -f /usr/share/automake/config.sub libcharset/build-aux
84 cd libcharset
85 %{__libtoolize}
86 %{__aclocal} -I m4
87 %{__autoconf}
88 %{__autoheader}
89 cd ..
90 %{__libtoolize}
91 %{__aclocal} -I m4 -I srcm4
92 %{__autoconf}
93 %{__autoheader}
94 %{__automake}
95 %configure
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 %{__rm} $RPM_BUILD_ROOT%{_docdir}/*.html
104
105 %find_lang %{name}
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files -f %{name}.lang
114 %defattr(644,root,root,755)
115 %doc AUTHORS ChangeLog DESIGN NEWS NOTES README THANKS
116 %attr(755,root,root) %{_libdir}/libcharset.so.*.*.*
117 %attr(755,root,root) %ghost %{_libdir}/libcharset.so.1
118 %attr(755,root,root) %{_libdir}/libiconv.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libiconv.so.2
120
121 %files devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libcharset.so
124 %attr(755,root,root) %{_libdir}/libiconv.so
125 %{_libdir}/libcharset.la
126 %{_libdir}/libiconv.la
127 %{_includedir}/iconv.h
128 %{_includedir}/libcharset.h
129 %{_includedir}/localcharset.h
130 %{_mandir}/man3/iconv*.3*
131
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/libcharset.a
135
136 %files utils
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_bindir}/iconv
139 %{_mandir}/man1/iconv.1*
This page took 0.646281 seconds and 3 git commands to generate.