Name: pcllib
Version: 1.12
Release: 3%{?dist}
Summary: Portable Coroutine Library (PCL)
License: GPLv2+
URL: http://xmailserver.org/libpcl.html
Source0: http://xmailserver.org/pcl-1.12.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
The Portable Co-routine Library (PCL) implements the low level
functionality for co-routines in C. Co-routines are a very simple
cooperative multitasking environment where the switch from one task
to another is done explicitly by a function call. Co-routines are a
lot faster and require much less OS resources than processes or
threads.
%package devel
Summary: Development headers and libraries for pcllib
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development headers and libraries for Portable Co-routine Library (PCL).
%prep
%setup -q -n pcl-%{version}
# Note that --disable static is not given because make check requires the static libs
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
rm -f %{buildroot}/%{_libdir}/*.la
rm -f %{buildroot}/%{_libdir}/*.a
%check
make check %{?_smp_mflags}
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libpcl.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/libpcl.so
%{_mandir}/man3/*
%changelog
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Nov 10 2013 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.12-1
- Initial version of the package