userspace-rcu/userspace-rcu.spec

84 lines
2.0 KiB
RPMSpec

Name: userspace-rcu
Version: 0.12.1
Release: 1mamba
Summary: A userspace RCU (read-copy-update) library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://liburcu.org/
Source: https://lttng.org/files/urcu/userspace-rcu-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A userspace RCU (read-copy-update) library.
%package -n liburcu
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n liburcu
This package contains shared libraries for %{name}.
%package -n liburcu-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: liburcu = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n liburcu-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n liburcu -p /sbin/ldconfig
%postun -n liburcu -p /sbin/ldconfig
%files -n liburcu
%defattr(-,root,root)
%{_libdir}/liburcu.so.*
%{_libdir}/liburcu-*.so.*
%doc LICENSE
%files -n liburcu-devel
%defattr(-,root,root)
%{_includedir}/urcu-*.h
%{_includedir}/urcu.h
%dir %{_includedir}/urcu
%{_includedir}/urcu/*
%{_libdir}/liburcu-*.a
%{_libdir}/liburcu-*.la
%{_libdir}/liburcu-*.so
%{_libdir}/liburcu.a
%{_libdir}/liburcu.la
%{_libdir}/liburcu.so
%{_libdir}/pkgconfig/liburcu.pc
%{_libdir}/pkgconfig/liburcu-*.pc
%dir %{_datadir}/doc/userspace-rcu
%{_datadir}/doc/userspace-rcu/*
%doc ChangeLog README.md
%changelog
* Sun Jun 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12.1-1mamba
- package created using the webbuild interface