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