diff --git a/.gitignore b/.gitignore index e69de29..44eaa0f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libpipeline-1.2.0.tar.gz diff --git a/libpipeline.spec b/libpipeline.spec new file mode 100644 index 0000000..cbed53d --- /dev/null +++ b/libpipeline.spec @@ -0,0 +1,66 @@ +Summary: A pipeline manipulation library +Name: libpipeline +Version: 1.2.0 +Release: 1%{?dist} +License: GPLv3+ +Group: Development/Libraries +URL: http://libpipeline.nongnu.org/ +Source0: http://download.savannah.gnu.org/releases/libpipeline/%{name}-%{version}.tar.gz +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: libtool +Provides: bundled(gnulib) + +%description +libpipeline is a C library for setting up and running pipelines of +processes, without needing to involve shell command-line parsing which is +often error-prone and insecure. This alleviates programmers of the need to +laboriously construct pipelines using lower-level primitives such as fork(2) +and execve(2). + +%package devel +Summary: Header files and libraries for pipeline manipulation library +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +libpipeline-devel contains the header files and libraries needed +to develop programs that use libpipeline library. + +%prep +%setup -q + +%build +./configure --libdir=%{_libdir} +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} \ + INSTALL='install -p' +rm $RPM_BUILD_ROOT/%{_libdir}/libpipeline.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/ldconfig +exit 0 + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING README ChangeLog NEWS +%{_libdir}/libpipeline.so.* + +%files devel +%defattr(-,root,root,-) +%{_libdir}/libpipeline.so +%{_includedir}/*.h +%{_mandir}/man3/* +%{_libdir}/pkgconfig/libpipeline.pc + +%changelog +* Tue Apr 19 2011 Ivana Hutarova Varekova - 1.2.0-1 +- initial build diff --git a/sources b/sources index e69de29..34e93d3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +dd3a987a0d2b594716baee2f73d61ae3 libpipeline-1.2.0.tar.gz