96 lines
2.5 KiB
RPMSpec
96 lines
2.5 KiB
RPMSpec
Name: libiconv
|
|
Version: 1.18
|
|
Release: 1mamba
|
|
Summary: GNU charset conversion library
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.gnu.org/software/libiconv/
|
|
Source: https://ftp.gnu.org/pub/gnu/libiconv/libiconv-%{version}.tar.gz
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
GNU charset conversion library.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
#Requires: pkg-config
|
|
|
|
%description devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
%package tools
|
|
Group: System/Tools
|
|
Summary: Utility applications for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description tools
|
|
This package contains utility applications for %{name}.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure \
|
|
--enable-extra-encodings
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
# move references from iconv to libiconv
|
|
mv -v %{buildroot}%{_includedir}/{iconv.h,libiconv.h}
|
|
mv -v %{buildroot}%{_bindir}/{iconv,libiconv}
|
|
mv -v %{buildroot}%{_mandir}/man1/{,lib}iconv.1
|
|
mv -v %{buildroot}%{_mandir}/man3/{,libiconv_}iconv.3
|
|
mv -v %{buildroot}%{_mandir}/man3/{,libiconv_}iconvctl.3
|
|
mv -v %{buildroot}%{_mandir}/man3/{,libiconv_}iconv_open.3
|
|
mv -v %{buildroot}%{_mandir}/man3/{,libiconv_}iconv_close.3
|
|
mv -v %{buildroot}%{_mandir}/man3/{,libiconv_}iconv_open_into.3
|
|
|
|
%find_lang %{name} || touch %{name}.lang
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libcharset.so.*
|
|
%{_libdir}/libiconv.so.*
|
|
%doc AUTHORS COPYING COPYING.LIB THANKS
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/libiconv.h
|
|
%{_includedir}/libcharset.h
|
|
%{_includedir}/localcharset.h
|
|
%{_libdir}/libcharset.a
|
|
%{_libdir}/libcharset.so
|
|
%{_libdir}/libiconv.so
|
|
%{_docdir}/*.html
|
|
%{_mandir}/man3/libiconv*.3*
|
|
%doc ChangeLog NEWS README
|
|
|
|
%files tools
|
|
%defattr(-,root,root)
|
|
%{_bindir}/libiconv
|
|
%{_mandir}/man1/libiconv.1*
|
|
|
|
%changelog
|
|
* Mon Dec 16 2024 Automatic Build System <autodist@openmamba.org> 1.18-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Dec 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.17-1mamba
|
|
- package created using the webbuild interface
|