package created using the webbuild interface [release 1.17-1mamba;Mon Dec 26 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 04:37:17 +01:00
parent 8ef61eef29
commit 51ff161bca
2 changed files with 96 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libiconv # libiconv
GNU charset conversion library.

94
libiconv.spec Normal file
View File

@ -0,0 +1,94 @@
Name: libiconv
Version: 1.17
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}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%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 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.17-1mamba
- package created using the webbuild interface