diff --git a/.gitignore b/.gitignore index e69de29..66a77e7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pcl-1.12.tar.gz diff --git a/pcllib.spec b/pcllib.spec new file mode 100644 index 0000000..a8c82f3 --- /dev/null +++ b/pcllib.spec @@ -0,0 +1,64 @@ +Name: pcllib +Version: 1.12 +Release: 1%{?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 Nov 10 2013 Nikos Mavrogiannopoulos - 1.12-1 +- Initial version of the package diff --git a/sources b/sources index e69de29..b40906c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +816d394743d8ab1b3e20af1efebb093d pcl-1.12.tar.gz