From c7979b747326428f8aa62d881c92090f4e031223 Mon Sep 17 00:00:00 2001 From: TizenOpenSource Date: Thu, 21 Dec 2023 16:22:34 +0900 Subject: [PATCH] Bump to 1.5.7 Signed-off-by: TizenOpenSource --- .gitignore | 34 -------------------- packaging/disable_man_page.patch | 13 ++++++++ packaging/libpipeline.changes | 3 ++ packaging/libpipeline.manifest | 5 +++ packaging/libpipeline.spec | 68 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 89 insertions(+), 34 deletions(-) delete mode 100644 .gitignore create mode 100644 packaging/disable_man_page.patch create mode 100644 packaging/libpipeline.changes create mode 100644 packaging/libpipeline.manifest create mode 100644 packaging/libpipeline.spec diff --git a/.gitignore b/.gitignore deleted file mode 100644 index abecb76..0000000 --- a/.gitignore +++ /dev/null @@ -1,34 +0,0 @@ -**/*.a -**/*.la -**/*.lo -**/*.o -**/*.so -**/*~ -**/.deps -**/.libs -**/Makefile -**/Makefile.in -/INSTALL -/aclocal.m4 -/autom4te.cache -/build-aux -/config.h -/config.h.in -/config.log -/config.status -/config.status.lineno -/configure -/gl -/gnulib -/libtool -/stamp-h* -lib/libpipeline.pc -tests/*.log -tests/*.trs -tests/argstr -tests/basic -tests/exec -tests/inspect -tests/pump -tests/read -tests/redirect diff --git a/packaging/disable_man_page.patch b/packaging/disable_man_page.patch new file mode 100644 index 0000000..a163a6e --- /dev/null +++ b/packaging/disable_man_page.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am +index 4a917b3..4090d7c 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -19,7 +19,7 @@ + ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 + ## USA + +-SUBDIRS = gl/lib lib man ++SUBDIRS = gl/lib lib + if RUN_TESTS + SUBDIRS += tests + endif diff --git a/packaging/libpipeline.changes b/packaging/libpipeline.changes new file mode 100644 index 0000000..33d2f66 --- /dev/null +++ b/packaging/libpipeline.changes @@ -0,0 +1,3 @@ +* Tue Feb 19 2013 Anas Nashif upstream/1.2.2@d0492cc +- Initial packaging + diff --git a/packaging/libpipeline.manifest b/packaging/libpipeline.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/libpipeline.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/libpipeline.spec b/packaging/libpipeline.spec new file mode 100644 index 0000000..760421a --- /dev/null +++ b/packaging/libpipeline.spec @@ -0,0 +1,68 @@ +Name: libpipeline +Version: 1.5.7 +Release: 0 +License: GPL-3.0+ +Summary: A pipeline manipulation library +Url: http://www.nongnu.org/libpipeline/ +Group: System/Libraries +Source: %{name}-%{version}.tar.gz +Source1001: libpipeline.manifest +Source1002: disable_man_page.patch +BuildRequires: automake +BuildRequires: autoconf + +%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: A pipeline manipulation library +Group: Development/Libraries +Requires: %{name} = %{version} +Provides: pkgconfig(%{name}) = %{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 -q +cp %{SOURCE1001} . +%{__patch} -p1 < %{SOURCE1002} + +%build +autoreconf -fi +%configure \ + --enable-shared \ + --enable-threads=posix \ + --disable-rpath \ + --enable-socketpair-pipe \ + --with-pic=yes \ + --with-gnu-ld +make %{?_smp_mflags} + +%install +%make_install + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%license COPYING +%defattr(-,root,root,0755) +%{_libdir}/libpipeline.so.* + +%files devel +%manifest %{name}.manifest +%license COPYING +%defattr(-,root,root,0755) +%{_libdir}/libpipeline.so +%{_libdir}/pkgconfig/libpipeline.pc +%{_includedir}/pipeline.h -- 2.7.4