74 lines
2.1 KiB
RPMSpec
74 lines
2.1 KiB
RPMSpec
%define srcdirver %(echo %version | sed "s|[a-z]$||")
|
|
Name: libatomic_ops
|
|
Epoch: 1
|
|
Version: 7.2e
|
|
Release: 1mamba
|
|
Summary: Atomic memory update operations
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Fabio Giani <fabio.giani@gmail.com>
|
|
URL: http://www.hpl.hp.com/research/linux/atomic_ops/
|
|
Source: http://www.hpl.hp.com/research/linux/atomic_ops/download/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
|
|
%{_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}/COPYING
|
|
%{_datadir}/%{name}/*.txt
|
|
%doc AUTHORS ChangeLog INSTALL NEWS
|
|
|
|
%changelog
|
|
* 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
|