From 51ff161bca9ffecc1415c999f562be827c20fa18 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:37:17 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.17-1mamba;Mon Dec 26 2022] --- README.md | 2 ++ libiconv.spec | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 libiconv.spec diff --git a/README.md b/README.md index 4440af7..3166a8e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libiconv +GNU charset conversion library. + diff --git a/libiconv.spec b/libiconv.spec new file mode 100644 index 0000000..afebe3b --- /dev/null +++ b/libiconv.spec @@ -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 +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 1.17-1mamba +- package created using the webbuild interface