source: spec/trunk/SPECS/pkgconfig.spec@ 1569

Last change on this file since 1569 was 920, checked in by Silvan Scherrer, 9 years ago

spec: pkgconfig: Release version 0.29.1-4.

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1#define svn_url e:/trees/pkgconfig/trunk
2%define svn_url http://svn.netlabs.org/repos/ports/pkgconfig/trunk
3%define svn_rev 1873
4
5Summary: A tool for determining compilation options
6Name: pkgconfig
7Version: 0.29.1
8Release: 4%{?dist}
9Epoch: 1
10License: GPLv2+
11URL: http://pkgconfig.freedesktop.org
12Group: Development/Tools
13Vendor: bww bitwise works GmbH
14Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
15
16BuildRequires: autoconf, automake, libtool
17BuildRequires: glib2-devel
18
19Provides: pkgconfig(pkg-config) = %{version}
20
21%description
22The pkgconfig tool determines compilation options. For each required
23library, it reads the configuration file and outputs the necessary
24compiler and linker flags.
25
26%prep
27%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
28%setup -q
29%else
30%setup -n "%{name}-%{version}" -Tc
31svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
32rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
33(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
34%endif
35
36%build
37autoreconf -fi
38export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
39%configure \
40 --disable-shared \
41 --with-installed-glib \
42 "--with-pc-path=%{_libdir}/pkgconfig;%{_datadir}/pkgconfig" \
43 --with-system-include-path=%{_includedir} \
44 --with-system-library-path=%{_libdir} \
45 --enable-host-tool=no
46
47make
48
49%install
50make install DESTDIR=$RPM_BUILD_ROOT
51mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
52mkdir -p $RPM_BUILD_ROOT%{_datadir}/pkgconfig
53
54# we include this below, already
55rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/pkg-config
56
57%files
58%doc AUTHORS README NEWS COPYING pkg-config-guide.html
59%{_mandir}/*/*
60%{_bindir}/*
61%{_libdir}/pkgconfig
62%{_datadir}/pkgconfig
63%{_datadir}/aclocal/*
64
65%changelog
66
67
68%changelog
69* Fri Dec 09 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.29.1-4
70- set stdout to unbuffered
71
72* Sat Jun 18 2016 yd <yd@os2power.com> 0.29.1-3
73- rebuild for glib2 2.33.
74
75* Mon May 2 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.29.1-2
76- ignore /@unixroot/usr/lib as system library path
77
78* Fri Apr 29 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.29.1-1
79- updated to version 0.29.1
80
81* Sat Aug 27 2011 yd <yd@os2power.com> 0.25-4
82- Initial version
Note: See TracBrowser for help on using the repository browser.