| 1 |
Name: ck |
| 2 |
Version: @VERSION@ |
| 3 |
Release: 1%{?dist} |
| 4 |
Group: Development/Libraries |
| 5 |
Summary: Concurrency Kit |
| 6 |
License: Simplified BSD License |
| 7 |
URL: http://concurrencykit.org |
| 8 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
| 9 |
|
| 10 |
Source: http://concurrencykit.org/releases/ck-%{version}.tar.gz |
| 11 |
|
| 12 |
%description |
| 13 |
Concurrency Kit provides a plethora of concurrency primitives, safe memory |
| 14 |
reclamation mechanisms and lock-less and lock-free data structures designed to |
| 15 |
aid in the design and implementation of high performance concurrent systems. It |
| 16 |
is designed to minimize dependencies on operating system-specific interfaces |
| 17 |
and most of the interface relies only on a strict subset of the standard |
| 18 |
library and more popular compiler extensions. |
| 19 |
|
| 20 |
%package devel |
| 21 |
Group: Development/Libraries |
| 22 |
Summary: Header files and libraries for CK development |
| 23 |
Requires: %{name} = %{version}-%{release} |
| 24 |
|
| 25 |
%description devel |
| 26 |
Concurrency Kit provides a plethora of concurrency primitives, safe memory |
| 27 |
reclamation mechanisms and lock-less and lock-free data structures designed to |
| 28 |
aid in the design and implementation of high performance concurrent systems. It |
| 29 |
is designed to minimize dependencies on operating system-specific interfaces |
| 30 |
and most of the interface relies only on a strict subset of the standard |
| 31 |
library and more popular compiler extensions. |
| 32 |
|
| 33 |
This package provides the libraries, include files, and other |
| 34 |
resources needed for developing Concurrency Kit applications. |
| 35 |
|
| 36 |
%prep |
| 37 |
%setup -q |
| 38 |
|
| 39 |
%build |
| 40 |
CFLAGS=$RPM_OPT_FLAGS ./configure \ |
| 41 |
--libdir=%{_libdir} \ |
| 42 |
--includedir=%{_includedir}/%{name} \ |
| 43 |
--mandir=%{_mandir} \ |
| 44 |
--prefix=%{_prefix} |
| 45 |
make %{?_smp_mflags} |
| 46 |
|
| 47 |
%install |
| 48 |
rm -rf $RPM_BUILD_ROOT |
| 49 |
make DESTDIR=$RPM_BUILD_ROOT install |
| 50 |
|
| 51 |
%clean |
| 52 |
rm -rf $RPM_BUILD_ROOT |
| 53 |
|
| 54 |
%files |
| 55 |
%defattr(-,root,root,-) |
| 56 |
%{_libdir}/libck.so.@VERSION@ |
| 57 |
%{_libdir}/libck.so.@VERSION_MAJOR@ |
| 58 |
|
| 59 |
%files devel |
| 60 |
%defattr(-,root,root) |
| 61 |
%{_libdir}/libck.so |
| 62 |
%{_includedir}/%{name}/*.h |
| 63 |
%{_includedir}/%{name}/*/*.h |
| 64 |
%{_includedir}/%{name}/*/*/*.h |
| 65 |
%{_libdir}/libck.a |
| 66 |
%{_libdir}/pkgconfig/%{name}.pc |
| 67 |
%{_mandir}/man3/*.3.gz |
| 68 |
|
| 69 |
%post |
| 70 |
/sbin/ldconfig |
| 71 |
|
| 72 |
%postun |
| 73 |
/sbin/ldconfig |
| 74 |
|