libbytesize/libbytesize.spec

88 lines
2.4 KiB
RPMSpec

Name: libbytesize
Version: 2.1
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 <silvan.calarco@mambasoft.it>
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)
%{_bindir}/bscalc
%dir %{_includedir}/bytesize
%{_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/*
%{_mandir}/man1/bscalc.1*
%doc README.md
%changelog
* 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