1 |
|
---|
2 | %global gnulib_ver 20140202
|
---|
3 |
|
---|
4 | Summary: A pipeline manipulation library
|
---|
5 | Name: libpipeline
|
---|
6 | Version: 1.4.1
|
---|
7 | Release: 1%{?dist}
|
---|
8 | License: GPLv3+
|
---|
9 | Group: Development/Libraries
|
---|
10 | URL: http://libpipeline.nongnu.org/
|
---|
11 |
|
---|
12 | Vendor: bww bitwise works GmbH
|
---|
13 | %scm_source github https://github.com/bitwiseworks/libpipeline-os2 %{version}-os2
|
---|
14 |
|
---|
15 | BuildRequires: libtool, check-devel
|
---|
16 |
|
---|
17 | # FPC exception for gnulib - copylib - https://fedorahosted.org/fpc/ticket/174
|
---|
18 | #Provides: bundled(gnulib) = %{gnulib_ver}
|
---|
19 |
|
---|
20 | %description
|
---|
21 | libpipeline is a C library for setting up and running pipelines of
|
---|
22 | processes, without needing to involve shell command-line parsing which is
|
---|
23 | often error-prone and insecure. This alleviates programmers of the need to
|
---|
24 | laboriously construct pipelines using lower-level primitives such as fork(2)
|
---|
25 | and execve(2).
|
---|
26 |
|
---|
27 | %package devel
|
---|
28 | Summary: Header files and libraries for pipeline manipulation library
|
---|
29 | Group: Development/Libraries
|
---|
30 | Requires: %{name} = %{version}-%{release}
|
---|
31 | Requires: pkgconfig
|
---|
32 |
|
---|
33 | %description devel
|
---|
34 | libpipeline-devel contains the header files and libraries needed
|
---|
35 | to develop programs that use libpipeline library.
|
---|
36 |
|
---|
37 | %prep
|
---|
38 | %scm_setup
|
---|
39 |
|
---|
40 | # create the changelog
|
---|
41 | # is is a bit a nasty hack, but it's needed for now.
|
---|
42 | # the date will probably not change, but better check makefile.am
|
---|
43 | # the srcdir needs to be adjusted to the current build env
|
---|
44 | %define gen_start_date 2013-11-30 21:08
|
---|
45 | %define srcdir e:/Trees/libpipeline/git
|
---|
46 | build-aux/gitlog-to-changelog --format='%s%n%n%b%n' \
|
---|
47 | --since="%{gen_start_date}" --srcdir=%{srcdir} > cl-t
|
---|
48 | rm -f ChangeLog
|
---|
49 | mv cl-t ChangeLog
|
---|
50 |
|
---|
51 | # Regenerate configure
|
---|
52 | autoreconf -ivf
|
---|
53 |
|
---|
54 | %build
|
---|
55 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
56 | export LIBS="-lcx"
|
---|
57 | export VENDOR="%{vendor}"
|
---|
58 |
|
---|
59 | %{configure}
|
---|
60 | make %{?_smp_mflags}
|
---|
61 |
|
---|
62 | %check
|
---|
63 | #make check
|
---|
64 |
|
---|
65 | %install
|
---|
66 | make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} INSTALL='install -p'
|
---|
67 | rm $RPM_BUILD_ROOT/%{_libdir}/libpipeline.la
|
---|
68 |
|
---|
69 | #%post -p /sbin/ldconfig
|
---|
70 |
|
---|
71 | #%postun -p /sbin/ldconfig
|
---|
72 |
|
---|
73 | %files
|
---|
74 | %{!?_licensedir:%global license %%doc}
|
---|
75 | %license COPYING
|
---|
76 | %doc README ChangeLog NEWS
|
---|
77 | %{_libdir}/*.dll
|
---|
78 |
|
---|
79 | %files devel
|
---|
80 | %{_libdir}/*_dll.a
|
---|
81 | %{_libdir}/pkgconfig/libpipeline.pc
|
---|
82 | %{_includedir}/*.h
|
---|
83 | %{_mandir}/man3/*
|
---|
84 |
|
---|
85 | %changelog
|
---|
86 | * Mon Apr 03 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.4.1-1
|
---|
87 | - first rpm version
|
---|