2012-10-01 16:07:28 +02:00
|
|
|
#
|
2013-04-15 16:51:11 +02:00
|
|
|
# spec file for package libpipeline
|
|
|
|
#
|
2014-03-19 10:05:57 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-10-01 16:07:28 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-04-15 16:51:11 +02:00
|
|
|
|
2012-10-01 16:07:28 +02:00
|
|
|
Name: libpipeline
|
|
|
|
%define lname libpipeline1
|
2014-03-19 10:05:57 +01:00
|
|
|
Version: 1.2.6
|
2012-10-01 16:07:28 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A pipeline manipulation library
|
|
|
|
License: GPL-3.0+
|
2013-04-15 16:51:11 +02:00
|
|
|
Group: System/Libraries
|
2012-10-01 16:07:28 +02:00
|
|
|
Url: http://www.nongnu.org/libpipeline/
|
2013-04-15 16:51:11 +02:00
|
|
|
Source: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
2012-10-01 16:07:28 +02:00
|
|
|
|
|
|
|
%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 -n %lname
|
|
|
|
Summary: A pipeline manipulation library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
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: A pipeline manipulation library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: pkgconfig(%name) = %{version}
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
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).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
2013-06-22 23:48:09 +02:00
|
|
|
export CFLAGS="%optflags $(getconf LFS_CFLAGS)"
|
2012-10-01 16:07:28 +02:00
|
|
|
%configure \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-threads=posix \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-socketpair-pipe \
|
|
|
|
--with-pic=yes \
|
|
|
|
--with-gnu-ld
|
2013-06-22 23:48:09 +02:00
|
|
|
make %{?jobs:-j%jobs} V=1
|
2012-10-01 16:07:28 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall DESTDIR=%{buildroot}
|
|
|
|
rm -vf %{buildroot}%{_libdir}/libpipeline.la
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%{_libdir}/libpipeline.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%doc ChangeLog README COPYING
|
|
|
|
%{_libdir}/libpipeline.so
|
|
|
|
%{_libdir}/pkgconfig/libpipeline.pc
|
|
|
|
%{_includedir}/pipeline.h
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
%changelog
|