From de58e8075323cd31cab730570135739fb2a6ff28 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 03:55:45 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.4-1mamba;Thu Feb 28 2019] --- README.md | 2 ++ libbytesize.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 libbytesize.spec diff --git a/README.md b/README.md index 88eae5b..b4b60c7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libbytesize +A tiny library providing a C "class" for working with arbitrary big sizes in bytes. + diff --git a/libbytesize.spec b/libbytesize.spec new file mode 100644 index 0000000..2d666ec --- /dev/null +++ b/libbytesize.spec @@ -0,0 +1,77 @@ +Name: libbytesize +Version: 1.4 +Release: 1mamba +Summary: A tiny library providing a C "class" for working with arbitrary big sizes in bytes +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/storaged-project/libbytesize +## GITSOURCE https://github.com/storaged-project/libbytesize.git 1.4 +Source: https://github.com/storaged-project/libbytesize.git/%{version}/libbytesize-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgmp-devel +BuildRequires: libmpfr-devel +BuildRequires: libpcre-devel +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A tiny library providing a C "class" for working with arbitrary big sizes in bytes. + +%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}. + +%debug_package + +%prep +%setup -q + +%build +./autogen.sh +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%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}/libbytesize.so.* +%dir %{python27_sitearch}/bytesize +%{python27_sitearch}/bytesize/* +%dir %{python3_sitearch}/bytesize +%{python3_sitearch}/bytesize/* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/bytesize/bs_size.h +%{_libdir}/libbytesize.la +%{_libdir}/libbytesize.so +%{_libdir}/pkgconfig/bytesize.pc +%dir %{_datadir}/gtk-doc/html/libbytesize +%{_datadir}/gtk-doc/html/libbytesize/* +%doc README.md + +%changelog +* Thu Feb 28 2019 Silvan Calarco 1.4-1mamba +- package created using the webbuild interface