source: spec/trunk/SPECS/libiconv.spec@ 1567

Last change on this file since 1567 was 1528, checked in by Silvan Scherrer, 7 years ago

flush more local changes, all minor which don't qualify for a new rpm

File size: 2.8 KB
Line 
1# for now we don't provide a devel, because it clashes with out libc
2# when we resolve the libc issue this we will build the devel as well
3%global build_devel 0
4
5Summary: Character set conversion library
6Name: libiconv
7Version: 1.15
8Release: 1%{?dist}
9License: LGPL v2+
10Group: Libraries
11URL: https://www.gnu.org/software/libiconv/
12Vendor: bww bitwise works GmbH
13%scm_source github https://github.com/bitwiseworks/%{name}-os2 %{version}-os2
14#%scm_source git file://e:/Trees/libiconv/git master-os2
15
16BuildRequires: autoconf >= 2.60
17BuildRequires: automake
18BuildRequires: libtool
19
20# for the password stuff, as a private repo
21BuildRequires: os2-rpm-build >= 1-4
22
23%description
24This library provides an iconv() implementation, for use on systems
25which don't have one, or whose implementation cannot convert from/to
26Unicode.
27
28%if %{build_devel}
29%package devel
30Summary: libiconv header files
31Group: Development/Libraries
32Requires: %{name} = %{version}-%{release}
33
34%description devel
35This package contains libiconv header files.
36
37%package static
38Summary: libiconv static library
39Group: Development/Libraries
40Requires: %{name}-devel = %{version}-%{release}
41
42%description static
43This package contains static libiconv library.
44%endif
45
46
47%package utils
48Summary: iconv utility
49License: GPL v3+
50Group: Applications/Text
51Requires: %{name} = %{version}-%{release}
52
53%description utils
54iconv utility.
55
56
57%debug_package
58
59
60%prep
61%scm_setup
62
63rm -f po/stamp-po
64autoreconf -fvi
65
66%build
67
68export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
69export LIBS="-lcx"
70export VENDOR="%{vendor}"
71
72%configure
73
74%{__make}
75
76%install
77%{__make} install DESTDIR=$RPM_BUILD_ROOT
78
79# remove not installed files
80find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
81rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
82
83# if no devel, we need to remove them
84%if !%{build_devel}
85rm -f $RPM_BUILD_ROOT/%{_libdir}/*_dll.a
86rm -f $RPM_BUILD_ROOT/%{_includedir}/*.h
87rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/iconv*.3*
88rm -f $RPM_BUILD_ROOT/%{_docdir}/iconv*.html
89rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.a
90%endif
91
92
93%find_lang %{name}
94
95
96#post -p /sbin/ldconfig
97#postun -p /sbin/ldconfig
98
99%files -f %{name}.lang
100%defattr(644,root,root,755)
101%doc AUTHORS ChangeLog COPYING COPYING.LIB DEPENDENCIES DESIGN HACKING INSTALL.generic NEWS NOTES README README.djgpp README.windows THANKS
102%attr(755,root,root) %{_libdir}/*.dll
103
104%if %{build_devel}
105%files devel
106%defattr(644,root,root,755)
107%attr(755,root,root) %{_libdir}/*_dll.a
108%{_includedir}/iconv.h
109%{_includedir}/libcharset.h
110%{_includedir}/localcharset.h
111%{_mandir}/man3/iconv*.3*
112%{_docdir}/iconv*.html
113
114%files static
115%defattr(644,root,root,755)
116%{_libdir}/charset.a
117%endif
118
119%files utils
120%defattr(644,root,root,755)
121%attr(755,root,root) %{_bindir}/iconv.exe
122%{_mandir}/man1/iconv.1*
123
124%changelog
125* Fri Nov 09 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 1.15-1
126- first rpm version
Note: See TracBrowser for help on using the repository browser.