9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-common-devel
|
|
3 |
#
|
|
4 |
# includes module(s): pkgconfig, intltool, gtk-doc, gnome-common
|
|
5 |
#
|
11576
|
6 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: laca
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
%use gcommon = gnome-common.spec
|
|
14 |
%use gettext = gettext.spec
|
|
15 |
%use intltool = intltool.spec
|
|
16 |
%use gtkdoc = gtk-doc.spec
|
|
17 |
|
11576
|
18 |
%define pkgconfig_version 0.23
|
9397
|
19 |
%define pkgconfig_tarball_dir pkg-config-%{pkgconfig_version}
|
|
20 |
|
|
21 |
Name: SUNWgnome-common-devel
|
|
22 |
Summary: GNOME common development tools
|
|
23 |
Version: %{default_pkg_version}
|
|
24 |
Source: http://pkgconfig.freedesktop.org/releases/pkg-config-%{pkgconfig_version}.tar.gz
|
|
25 |
Source1: %{name}-manpages-0.1.tar.gz
|
|
26 |
# date:2004-06-06 owner:laca type:bug bugster:4809315
|
|
27 |
# upstreamable
|
|
28 |
Patch1: pkgconfig-01-suppress_gnome-config_error_msg.diff
|
|
29 |
SUNW_BaseDir: %{_basedir}
|
|
30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
31 |
|
|
32 |
%include default-depend.inc
|
|
33 |
Requires: SUNWperl584usr
|
|
34 |
Requires: SUNWperl584core
|
|
35 |
Requires: SUNWlibpopt
|
|
36 |
Requires: SUNWperl-xml-parser
|
|
37 |
Requires: SUNWopenjade
|
|
38 |
Requires: SUNWgnome-xml-root
|
|
39 |
Requires: SUNWlxsl
|
|
40 |
Requires: SUNWlibpopt-devel
|
|
41 |
|
|
42 |
%prep
|
|
43 |
%setup -q -c -n SUNWgnome-common-devel-%{version}
|
|
44 |
cd %{pkgconfig_tarball_dir}
|
|
45 |
%patch1 -p1
|
|
46 |
cd %{_builddir}
|
|
47 |
%gcommon.prep -d %name-%version
|
|
48 |
%gettext.prep -d %name-%version
|
|
49 |
%intltool.prep -d %name-%version
|
|
50 |
%gtkdoc.prep -d %name-%version
|
|
51 |
cd %{_builddir}/%name-%version
|
|
52 |
gzcat %SOURCE1 | tar xf -
|
|
53 |
|
|
54 |
%build
|
|
55 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
56 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
57 |
CPUS=1
|
|
58 |
fi
|
|
59 |
cd %{pkgconfig_tarball_dir}
|
|
60 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
61 |
./configure --prefix=%{_prefix} --mandir=%{_mandir}
|
|
62 |
make -j$CPUS
|
|
63 |
rm -rf $RPM_BUILD_ROOT
|
|
64 |
# pkg-config is needed by gnome-common
|
|
65 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
66 |
PATH=$RPM_BUILD_ROOT/%{_bindir}:$PATH
|
|
67 |
export PERL=/usr/perl5/bin/perl
|
|
68 |
export LDFLAGS="%_ldflags"
|
|
69 |
|
|
70 |
cd %{_builddir}
|
|
71 |
|
|
72 |
%gcommon.build -d %name-%version
|
|
73 |
%if %cc_is_gcc
|
|
74 |
%else
|
|
75 |
export CXX="${CXX} -norunpath"
|
|
76 |
%endif
|
|
77 |
export CXXFLAGS="%{cxx_optflags}"
|
|
78 |
%gettext.build -d %name-%version
|
|
79 |
export INTLTOOL_XGETTEXT="%{_libdir}/intltool/gettext-tools/xgettext"
|
|
80 |
export INTLTOOL_MSGMERGE="%{_libdir}/intltool/gettext-tools/msgmerge"
|
|
81 |
%intltool.build -d %name-%version
|
|
82 |
export ACLOCAL_FLAGS="-I %{_builddir}/%name-%version/%{pkgconfig_tarball_dir}"
|
|
83 |
%gtkdoc.build -d %name-%version
|
|
84 |
|
|
85 |
%install
|
|
86 |
# Don't "rm -rf $RPM_BUILD_ROOT" here as pkg-config module already installed.
|
|
87 |
|
|
88 |
cd %{_builddir}
|
|
89 |
%gcommon.install -d %name-%version
|
|
90 |
%gettext.install -d %name-%version
|
|
91 |
%intltool.install -d %name-%version
|
|
92 |
%gtkdoc.install -d %name-%version
|
|
93 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
94 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
95 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
96 |
|
|
97 |
# Normally we build this package before we build scrollkeeper, but
|
|
98 |
# remove any scrollkeeper files if user happens to rebuild this
|
|
99 |
# package after scrollkeeper is already on the system.
|
|
100 |
#
|
|
101 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/var
|
|
102 |
|
|
103 |
# Remove /usr/share/info/dir, it's a generated file and shared by multiple
|
|
104 |
# packages
|
9405
|
105 |
rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
|
9397
|
106 |
|
|
107 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
108 |
|
|
109 |
%clean
|
|
110 |
rm -rf $RPM_BUILD_ROOT
|
|
111 |
|
|
112 |
%files
|
|
113 |
%defattr (-, root, bin)
|
|
114 |
%{_bindir}/*
|
|
115 |
%{_libdir}/*
|
|
116 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
117 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
118 |
%{_datadir}/aclocal/*
|
|
119 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
120 |
%{_datadir}/doc/*
|
|
121 |
%{_datadir}/gnome-common
|
|
122 |
%{_datadir}/gtk-doc
|
|
123 |
%{_datadir}/info
|
|
124 |
%{_datadir}/omf/gtk-doc/gtk-doc-manual-C.omf
|
|
125 |
%{_datadir}/sgml
|
|
126 |
%{_datadir}/intltool
|
|
127 |
%{_datadir}/pkgconfig
|
|
128 |
%{_mandir}/*/*
|
|
129 |
|
|
130 |
%changelog
|
11576
|
131 |
* Mon Jan 31 2008 - [email protected]
|
|
132 |
- Bump pkg-config to 0.23.
|
11312
|
133 |
* Mon Dec 10 2007 - [email protected]
|
|
134 |
- Bump pkg-config to 0.22.
|
9397
|
135 |
* Fri Feb 16 2007 - [email protected]
|
|
136 |
- Update %files because gtk-doc xml files moved from %{_datadir}/gnome/help to
|
|
137 |
%{_datadir}/doc with the bumping of gtk-doc to 1.8.
|
|
138 |
* Thu Jan 11 2007 - [email protected]
|
|
139 |
- Bump pkg-config to 0.21. Remove upstream patch, pkgconfig-01-wall.diff.
|
|
140 |
Rename rest.
|
|
141 |
* Fri Sep 15 2006 - [email protected]
|
|
142 |
- Install gtk-doc documentation and call pkg-config configure script with
|
|
143 |
--mandir set properly.
|
|
144 |
* Fri Sep 01 2006 - [email protected]
|
|
145 |
- New Manpage tarball
|
|
146 |
* Sat Aug 12 2006 - [email protected]
|
|
147 |
- set PERL to /usr/perl5/bin/perl as per CR6454456
|
|
148 |
* Fri Jun 23 2006 - [email protected]
|
|
149 |
- removed man page intltool-unicodify
|
|
150 |
* Sun Jun 11 2006 - [email protected]
|
|
151 |
- change group from other to bin/sys
|
|
152 |
* Wed May 10 2006 - [email protected]
|
|
153 |
- merge -share pkg(s) into the base pkg(s)
|
|
154 |
* Tue May 02 2006 - [email protected]
|
|
155 |
- Remove gnome and omf dirs from share package as they are no longer installed.
|
|
156 |
- Remove 'rm -rf $RPM_BUILD_ROOT' as pkg-config already installed.
|
|
157 |
* Tue Apr 11 2006 - [email protected]
|
|
158 |
- Set ACLOCAL_FLAGS for gtk-doc to find a pkgconfig macro. Move pkgconfig dir.
|
|
159 |
* Sun Feb 19 2006 - [email protected]
|
|
160 |
- Update Build/Requires after running check-deps.pl script.
|
|
161 |
* Thu Jan 19 2006 - [email protected]
|
|
162 |
- Bump pkg-config to 0.20.0, remove upstream patch (01-pkg.m4), add new patch
|
|
163 |
(01-wall, bug #4888).
|
|
164 |
* Tue Sep 13 2005 - [email protected]
|
|
165 |
- Bump version to 2.12.
|
|
166 |
* Thu Sep 08 2005 - [email protected]
|
|
167 |
- Verified builds fine on Solaris, bump to 2.11.
|
|
168 |
* Fri Sep 02 2005 - [email protected]
|
|
169 |
- remove unpackaged files; fix to build with new pkgbuild
|
|
170 |
* Wed Jul 07 2005 - [email protected]
|
|
171 |
- backport pkg.m4 fix from 0.17.2
|
|
172 |
* Wed Jul 06 2005 - [email protected]
|
|
173 |
- downgrade pkgconfig to 0.16.0
|
|
174 |
* Thu Oct 21 2004 - [email protected]
|
|
175 |
- set PERL, fixes 5100958
|
|
176 |
* Sat Oct 02 2004 - [email protected]
|
|
177 |
- added %pkgbuild_postprocess
|
|
178 |
* Mon Aug 23 2004 - [email protected]
|
|
179 |
- s/SUNWpl5u/SUNWperl584usr/
|
|
180 |
* Sat Jun 26 2004 [email protected]
|
|
181 |
- Changed install location to /usr/...
|
|
182 |
* Thu May 27 2004 - [email protected]
|
|
183 |
- added %_libdir/pkgconfig
|
|
184 |
* Wed May 19 2004 - [email protected]
|
|
185 |
- Added missing man pages.
|
|
186 |
* Wed Mar 24 2004 - [email protected]
|
|
187 |
- Added SGML man page integration
|
|
188 |
* Mon Mar 02 2004 - [email protected]
|
|
189 |
- add dependency on SUNWlxsl (libxslt)
|
|
190 |
* Mon Jan 26 2004 - [email protected]
|
|
191 |
- initial version added to CVS
|