12819
|
1 |
#
|
|
2 |
# spec file for package pkg-config
|
|
3 |
#
|
18023
|
4 |
# Copyright (c) 2010 Sun Microsystems, Inc.
|
12819
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner laca
|
12819
|
9 |
#
|
16426
|
10 |
|
17893
|
11 |
%define OSR delivered in s10:n/a
|
16426
|
12 |
|
12819
|
13 |
Name: pkg-config
|
18052
|
14 |
License: GPLv2
|
12819
|
15 |
Group: System/Libraries
|
18072
|
16 |
Version: 0.23
|
12819
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
17865
|
19 |
Vendor: Gnome Community
|
12819
|
20 |
Summary: Helper tool used when compiling applications and libraries.
|
|
21 |
Source: http://pkgconfig.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
|
22 |
# date:2004-06-06 owner:laca type:bug bugster:4809315
|
|
23 |
# upstreamable
|
|
24 |
Patch1: pkgconfig-01-suppress_gnome-config_error_msg.diff
|
|
25 |
URL: http://pkgconfig.freedesktop.org
|
|
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
27 |
Docdir: %{_defaultdocdir}/%{name}
|
|
28 |
Autoreqprov: on
|
|
29 |
|
|
30 |
%description
|
|
31 |
pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line
|
|
32 |
|
|
33 |
%prep
|
|
34 |
%setup -q
|
|
35 |
%patch1 -p1
|
|
36 |
|
|
37 |
%build
|
|
38 |
%ifos linux
|
|
39 |
if [ -x /usr/bin/getconf ]; then
|
|
40 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
41 |
fi
|
|
42 |
%else
|
|
43 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
44 |
%endif
|
|
45 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
46 |
CPUS=1
|
|
47 |
fi
|
|
48 |
|
|
49 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
50 |
./configure --prefix=%{_prefix} --mandir=%{_mandir}
|
|
51 |
make -j$CPUS
|
|
52 |
|
|
53 |
%install
|
|
54 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
55 |
|
|
56 |
%clean
|
|
57 |
rm -rf $RPM_BUILD_ROOT
|
|
58 |
|
|
59 |
%files
|
|
60 |
|
|
61 |
%changelog
|
18072
|
62 |
* Thu Jun 03 2010 - [email protected]
|
|
63 |
- Rolled back to 0.23. Because 0.25 escapes characters '$', '(' and ')', and
|
|
64 |
returns the string like this "\$\(top_builddir\)/../...", which could not be
|
|
65 |
substituted correctly in Makefile and cause many gnome modules build failed.
|
18052
|
66 |
* Fri May 28 2010 - [email protected]
|
|
67 |
- Bump to 0.25. I previously unbumped back to 0.23 because 0.24 had a COPYING
|
|
68 |
file that said GPLv3. However, this was an error and has been corrected in
|
|
69 |
0.25. So now it is okay to bump.
|
18023
|
70 |
* Mon May 24 2010 - [email protected]
|
|
71 |
- Bump to 0.24.
|
12819
|
72 |
* Tue Jul 15 2008 - [email protected]
|
|
73 |
- Separate out from SUNWgnome-common-devel.spec.
|