| 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 |
|
|---|
| 5 | Summary: Character set conversion library
|
|---|
| 6 | Name: libiconv
|
|---|
| 7 | Version: 1.15
|
|---|
| 8 | Release: 1%{?dist}
|
|---|
| 9 | License: LGPL v2+
|
|---|
| 10 | Group: Libraries
|
|---|
| 11 | URL: https://www.gnu.org/software/libiconv/
|
|---|
| 12 | Vendor: 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 |
|
|---|
| 16 | BuildRequires: autoconf >= 2.60
|
|---|
| 17 | BuildRequires: automake
|
|---|
| 18 | BuildRequires: libtool
|
|---|
| 19 |
|
|---|
| 20 | # for the password stuff, as a private repo
|
|---|
| 21 | BuildRequires: os2-rpm-build >= 1-4
|
|---|
| 22 |
|
|---|
| 23 | %description
|
|---|
| 24 | This library provides an iconv() implementation, for use on systems
|
|---|
| 25 | which don't have one, or whose implementation cannot convert from/to
|
|---|
| 26 | Unicode.
|
|---|
| 27 |
|
|---|
| 28 | %if %{build_devel}
|
|---|
| 29 | %package devel
|
|---|
| 30 | Summary: libiconv header files
|
|---|
| 31 | Group: Development/Libraries
|
|---|
| 32 | Requires: %{name} = %{version}-%{release}
|
|---|
| 33 |
|
|---|
| 34 | %description devel
|
|---|
| 35 | This package contains libiconv header files.
|
|---|
| 36 |
|
|---|
| 37 | %package static
|
|---|
| 38 | Summary: libiconv static library
|
|---|
| 39 | Group: Development/Libraries
|
|---|
| 40 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 41 |
|
|---|
| 42 | %description static
|
|---|
| 43 | This package contains static libiconv library.
|
|---|
| 44 | %endif
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | %package utils
|
|---|
| 48 | Summary: iconv utility
|
|---|
| 49 | License: GPL v3+
|
|---|
| 50 | Group: Applications/Text
|
|---|
| 51 | Requires: %{name} = %{version}-%{release}
|
|---|
| 52 |
|
|---|
| 53 | %description utils
|
|---|
| 54 | iconv utility.
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 | %debug_package
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 | %prep
|
|---|
| 61 | %scm_setup
|
|---|
| 62 |
|
|---|
| 63 | rm -f po/stamp-po
|
|---|
| 64 | autoreconf -fvi
|
|---|
| 65 |
|
|---|
| 66 | %build
|
|---|
| 67 |
|
|---|
| 68 | export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 69 | export LIBS="-lcx"
|
|---|
| 70 | export VENDOR="%{vendor}"
|
|---|
| 71 |
|
|---|
| 72 | %configure
|
|---|
| 73 |
|
|---|
| 74 | %{__make}
|
|---|
| 75 |
|
|---|
| 76 | %install
|
|---|
| 77 | %{__make} install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 78 |
|
|---|
| 79 | # remove not installed files
|
|---|
| 80 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|---|
| 81 | rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
|
|---|
| 82 |
|
|---|
| 83 | # if no devel, we need to remove them
|
|---|
| 84 | %if !%{build_devel}
|
|---|
| 85 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*_dll.a
|
|---|
| 86 | rm -f $RPM_BUILD_ROOT/%{_includedir}/*.h
|
|---|
| 87 | rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/iconv*.3*
|
|---|
| 88 | rm -f $RPM_BUILD_ROOT/%{_docdir}/iconv*.html
|
|---|
| 89 | rm -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
|
|---|