libbytesize/libbytesize.spec

112 lines
3.3 KiB
RPMSpec

Name: libbytesize
Version: 2.9
Release: 2mamba
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 <silvan.calarco@mambasoft.it>
URL: https://github.com/storaged-project/libbytesize
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: libpcre2-devel
BuildRequires: libpython311-devel
## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.11
%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
./autogen.sh
%build
%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)
%{_bindir}/bscalc
%dir %{_includedir}/bytesize
%{_includedir}/bytesize/bs_size.h
%{_libdir}/libbytesize.so
%{_libdir}/pkgconfig/bytesize.pc
%dir %{_datadir}/gtk-doc/html/libbytesize
%{_datadir}/gtk-doc/html/libbytesize/*
%{_mandir}/man1/bscalc.1*
%doc README.md
%changelog
* Mon Oct 16 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9-2mamba
- rebuilt with python3 == 3.11
* Fri Jul 07 2023 Automatic Build System <autodist@mambasoft.it> 2.9-1mamba
- automatic version update by autodist
* Sat Mar 25 2023 Automatic Build System <autodist@mambasoft.it> 2.8-1mamba
- automatic version update by autodist
* Thu May 26 2022 Automatic Build System <autodist@mambasoft.it> 2.7-1mamba
- automatic version update by autodist
* Wed Jul 07 2021 Automatic Build System <autodist@mambasoft.it> 2.6-1mamba
- automatic version update by autodist
* Sat Feb 06 2021 Automatic Build System <autodist@mambasoft.it> 2.5-1mamba
- automatic version update by autodist
* Sat Aug 08 2020 Automatic Build System <autodist@mambasoft.it> 2.4-1mamba
- automatic version update by autodist
* Sat Jun 06 2020 Automatic Build System <autodist@mambasoft.it> 2.3-1mamba
- automatic version update by autodist
* Mon Feb 17 2020 Automatic Build System <autodist@mambasoft.it> 2.2-1mamba
- automatic version update by autodist
* Wed Aug 14 2019 Automatic Build System <autodist@mambasoft.it> 2.1-1mamba
- automatic version update by autodist
* Wed Jun 12 2019 Automatic Build System <autodist@mambasoft.it> 2.0-1mamba
- automatic version update by autodist
* Thu Feb 28 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4-1mamba
- package created using the webbuild interface