source: spec/trunk/SPECS/libpipeline.spec@ 1566

Last change on this file since 1566 was 1090, checked in by Silvan Scherrer, 8 years ago

spec: libpipeline: Release version 1.4.1-1.

File size: 2.2 KB
Line 
1
2%global gnulib_ver 20140202
3
4Summary: A pipeline manipulation library
5Name: libpipeline
6Version: 1.4.1
7Release: 1%{?dist}
8License: GPLv3+
9Group: Development/Libraries
10URL: http://libpipeline.nongnu.org/
11
12Vendor: bww bitwise works GmbH
13%scm_source github https://github.com/bitwiseworks/libpipeline-os2 %{version}-os2
14
15BuildRequires: 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
21libpipeline is a C library for setting up and running pipelines of
22processes, without needing to involve shell command-line parsing which is
23often error-prone and insecure. This alleviates programmers of the need to
24laboriously construct pipelines using lower-level primitives such as fork(2)
25and execve(2).
26
27%package devel
28Summary: Header files and libraries for pipeline manipulation library
29Group: Development/Libraries
30Requires: %{name} = %{version}-%{release}
31Requires: pkgconfig
32
33%description devel
34libpipeline-devel contains the header files and libraries needed
35to 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
46build-aux/gitlog-to-changelog --format='%s%n%n%b%n' \
47 --since="%{gen_start_date}" --srcdir=%{srcdir} > cl-t
48rm -f ChangeLog
49mv cl-t ChangeLog
50
51# Regenerate configure
52autoreconf -ivf
53
54%build
55export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
56export LIBS="-lcx"
57export VENDOR="%{vendor}"
58
59%{configure}
60make %{?_smp_mflags}
61
62%check
63#make check
64
65%install
66make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} INSTALL='install -p'
67rm $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
Note: See TracBrowser for help on using the repository browser.