10617
|
1 |
#
|
16614
|
2 |
# Copyright 2009 Sun Microsystems, Inc.
|
10617
|
3 |
# This file and all modifications and additions to the pristine
|
|
4 |
# package are under the same license as the package itself.
|
14644
|
5 |
#
|
10617
|
6 |
|
|
7 |
%include Solaris.inc
|
14644
|
8 |
%{?!python_version:%define python_version 2.4}
|
10617
|
9 |
|
16429
|
10 |
%define OSR gnome.org:0
|
|
11 |
|
10617
|
12 |
Name: pygtksourceview
|
|
13 |
Summary: Python bindings for GtkSourceView 2
|
16614
|
14 |
Version: 2.8.0
|
|
15 |
Source: http://ftp.gnome.org/pub/GNOME/sources/pygtksourceview/2.8/pygtksourceview-%{version}.tar.bz2
|
10667
|
16 |
#owner:dcarbery date:2007-10-17 bugzilla:487525 type:bug
|
16624
|
17 |
Patch1: pygtksourceview-01-pygobject-xsl-dir.diff
|
10617
|
18 |
URL: http://www.gnome.org
|
|
19 |
SUNW_BaseDir: %{_basedir}
|
|
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
21 |
%include default-depend.inc
|
|
22 |
|
|
23 |
%package devel
|
|
24 |
Summary: %{summary} - development files
|
|
25 |
SUNW_BaseDir: %{_basedir}
|
|
26 |
%include default-depend.inc
|
|
27 |
Requires: %name
|
|
28 |
|
|
29 |
%prep
|
|
30 |
%setup -q -n pygtksourceview-%version
|
|
31 |
%patch1 -p1
|
|
32 |
|
|
33 |
%build
|
|
34 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
35 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
36 |
CPUS=1
|
|
37 |
fi
|
|
38 |
|
|
39 |
export CFLAGS="%optflags"
|
|
40 |
export LDFLAGS="%_ldflags"
|
|
41 |
|
15415
|
42 |
libtoolize --force --copy
|
16614
|
43 |
aclocal $ACLOCAL_FLAGS
|
10667
|
44 |
autoconf
|
10617
|
45 |
./configure --prefix=%{_prefix} \
|
|
46 |
%{gtk_doc_option} \
|
|
47 |
--sysconfdir=%{_sysconfdir}
|
|
48 |
make -j$CPUS
|
|
49 |
|
|
50 |
%install
|
|
51 |
make install DESTDIR=$RPM_BUILD_ROOT \
|
|
52 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
53 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
54 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
55 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
56 |
|
|
57 |
%clean
|
|
58 |
rm -rf $RPM_BUILD_ROOT
|
|
59 |
|
|
60 |
%files
|
|
61 |
%defattr (-, root, bin)
|
|
62 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
63 |
%{_libdir}/python?.?/vendor-packages
|
|
64 |
|
|
65 |
%files devel
|
|
66 |
%defattr (-, root, bin)
|
|
67 |
%dir %attr (0755, root, bin) %dir %{_libdir}
|
|
68 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
69 |
%{_libdir}/pkgconfig/*
|
|
70 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
71 |
%{_datadir}/pygtk
|
|
72 |
%{_datadir}/gtk-doc
|
|
73 |
|
|
74 |
%changelog
|
16624
|
75 |
* Wed Sep 23 2009 - [email protected]
|
|
76 |
- Clean up patches.
|
16614
|
77 |
* Tue Sep 22 2009 - [email protected]
|
|
78 |
- Bump to 2.8.0.
|
16392
|
79 |
* Thu Aug 27 2009 - [email protected]
|
|
80 |
- Bump to 2.7.0.
|
15501
|
81 |
* Thu Mar 26 2009 - [email protected]
|
|
82 |
- Bump to 2.6.0
|
15393
|
83 |
* Fri Mar 13 2009 - [email protected]
|
|
84 |
- Bump to 2.5.0
|
15415
|
85 |
- Run libtoolize to ensure configured correctly for (Open)Solaris.
|
14644
|
86 |
* Mon Nov 24 2008 - [email protected]
|
|
87 |
- use %{python_version} macro to select with version of Python to build which
|
13823
|
88 |
* Mon Sep 29 2008 - [email protected]
|
|
89 |
- Bump to 2.4.0.
|
13099
|
90 |
* Mon Aug 11 2008 - [email protected]
|
|
91 |
- Bump to 2.3.0.
|
11830
|
92 |
* Mon Mar 10 2008 - [email protected]
|
|
93 |
- Bump to 2.2.0.
|
11586
|
94 |
* Mon Feb 04 2008 - [email protected]
|
|
95 |
- Bump to 2.1.1.
|
11501
|
96 |
* Tue Jan 22 2008 - [email protected]
|
|
97 |
- Bump to 2.1.0.
|
10667
|
98 |
* Wed Oct 17 2007 - [email protected]
|
|
99 |
- Call autoconf because configure.ac is being patched.
|
10617
|
100 |
* Sun Oct 07 2007 - [email protected]
|
|
101 |
- Add patches, 01-skip-codegen-test and 02-pygobject-xsl-dir, to get the module
|
|
102 |
to build within the JDS environment where pygobject and pygtk are not yet
|
|
103 |
installed.
|
|
104 |
* Tue Sep 04 2007 - [email protected]
|
|
105 |
- Initial spec
|