libatomic_ops/libatomic_ops.spec

86 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

%define srcdirver %(echo %version | sed "s|[a-z]$||")
Name: libatomic_ops
Epoch: 1
Version: 7.4.6
Release: 1mamba
Summary: Atomic memory update operations
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Fabio Giani <fabio.giani@gmail.com>
URL: https://github.com/ivmai/libatomic_ops/
Source: http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: pkg-config
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package is empty, since the library is statically linked.
See libatomic_ops-devel.
%package devel
Group: Development/Libraries
Summary: Atomic memory update operations library
%description devel
Provides implementations for atomic memory update operations on a number of architectures.
This allows direct use of these in reasonably portable code.
Unlike earlier similar packages, this one explicitly considers memory barrier semantics, and allows the construction of code that involves minimum overhead across a variety of architectures.
This package contains static libraries and header files need for development.
%prep
%setup -q -n %{name}-%{srcdirver}
chmod a-x src/*.h
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files devel
%defattr(-,root,root)
%{_libdir}/%{name}*.a
%{_libdir}/libatomic_ops.la
%{_libdir}/libatomic_ops_gpl.la
%{_includedir}/*.h
%dir %{_includedir}/atomic_ops
%{_includedir}/atomic_ops/*.h
%dir %{_includedir}/atomic_ops/sysdeps
%{_includedir}/atomic_ops/sysdeps/*
%{_libdir}/pkgconfig/atomic_ops.pc
#%dir %{_datadir}/%{name}
#%{_datadir}/%{name}/*
%dir %{_datadir}/doc/libatomic_ops
%{_datadir}/doc/libatomic_ops/*
%doc AUTHORS ChangeLog
%changelog
* Tue Aug 08 2017 Automatic Build System <autodist@mambasoft.it> 7.4.6-1mamba
- automatic version update by autodist
* Mon Jun 13 2016 Automatic Build System <autodist@mambasoft.it> 7.4.4-1mamba
- automatic version update by autodist
* Tue Jun 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7.4.2-1mamba
- update to 7.4.2
* Sat Jan 25 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7.2e-1mamba
- update to 7.2e
* Fri Aug 10 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 7.2-1mamba
- update to 7.2
* Sat Mar 01 2008 Fabio Giani <fabio.giani@gmail.com> 1.2-1mamba
- package created by autospec