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