10617
|
1 |
#
|
17471
|
2 |
# Copyright 2010 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 |
|
17852
|
10 |
%define OSR LFI#105446 (gnome Exec. summary):n/a
|
16429
|
11 |
|
10617
|
12 |
Name: pygtksourceview
|
|
13 |
Summary: Python bindings for GtkSourceView 2
|
17842
|
14 |
License: LGPLv2
|
|
15 |
Vendor: Gnome Community
|
17884
|
16 |
Version: 2.10.1
|
17848
|
17 |
Source: http://ftp.gnome.org/pub/GNOME/sources/pygtksourceview/2.10/pygtksourceview-%{version}.tar.bz2
|
10667
|
18 |
#owner:dcarbery date:2007-10-17 bugzilla:487525 type:bug
|
16626
|
19 |
Patch1: pygtksourceview-01-configure.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 |
|
|
35 |
%build
|
|
36 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
37 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
38 |
CPUS=1
|
|
39 |
fi
|
|
40 |
|
|
41 |
export CFLAGS="%optflags"
|
|
42 |
export LDFLAGS="%_ldflags"
|
|
43 |
|
15415
|
44 |
libtoolize --force --copy
|
16614
|
45 |
aclocal $ACLOCAL_FLAGS
|
10667
|
46 |
autoconf
|
10617
|
47 |
./configure --prefix=%{_prefix} \
|
|
48 |
%{gtk_doc_option} \
|
|
49 |
--sysconfdir=%{_sysconfdir}
|
|
50 |
make -j$CPUS
|
|
51 |
|
|
52 |
%install
|
|
53 |
make install DESTDIR=$RPM_BUILD_ROOT \
|
|
54 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
55 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
56 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
57 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
58 |
|
|
59 |
%clean
|
|
60 |
rm -rf $RPM_BUILD_ROOT
|
|
61 |
|
|
62 |
%files
|
|
63 |
%defattr (-, root, bin)
|
|
64 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
65 |
%{_libdir}/python?.?/vendor-packages
|
|
66 |
|
|
67 |
%files devel
|
|
68 |
%defattr (-, root, bin)
|
|
69 |
%dir %attr (0755, root, bin) %dir %{_libdir}
|
|
70 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
71 |
%{_libdir}/pkgconfig/*
|
|
72 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
73 |
%{_datadir}/pygtk
|
|
74 |
%{_datadir}/gtk-doc
|
|
75 |
|
|
76 |
%changelog
|
17884
|
77 |
* Tue Apr 20 2010 - [email protected]
|
|
78 |
- Bump to 2.10.1.
|
17848
|
79 |
* Fri Apr 16 2010 - [email protected]
|
|
80 |
- Bump to 2.10.0.
|
17617
|
81 |
* Mon Mar 1 2010 - [email protected]
|
|
82 |
- Bump to 2.9.2.
|
17471
|
83 |
* Thu Jan 28 2010 - [email protected]
|
|
84 |
- Bump to 2.9.1.
|
16624
|
85 |
* Wed Sep 23 2009 - [email protected]
|
|
86 |
- Clean up patches.
|
16614
|
87 |
* Tue Sep 22 2009 - [email protected]
|
|
88 |
- Bump to 2.8.0.
|
16392
|
89 |
* Thu Aug 27 2009 - [email protected]
|
|
90 |
- Bump to 2.7.0.
|
15501
|
91 |
* Thu Mar 26 2009 - [email protected]
|
|
92 |
- Bump to 2.6.0
|
15393
|
93 |
* Fri Mar 13 2009 - [email protected]
|
|
94 |
- Bump to 2.5.0
|
15415
|
95 |
- Run libtoolize to ensure configured correctly for (Open)Solaris.
|
14644
|
96 |
* Mon Nov 24 2008 - [email protected]
|
|
97 |
- use %{python_version} macro to select with version of Python to build which
|
13823
|
98 |
* Mon Sep 29 2008 - [email protected]
|
|
99 |
- Bump to 2.4.0.
|
13099
|
100 |
* Mon Aug 11 2008 - [email protected]
|
|
101 |
- Bump to 2.3.0.
|
11830
|
102 |
* Mon Mar 10 2008 - [email protected]
|
|
103 |
- Bump to 2.2.0.
|
11586
|
104 |
* Mon Feb 04 2008 - [email protected]
|
|
105 |
- Bump to 2.1.1.
|
11501
|
106 |
* Tue Jan 22 2008 - [email protected]
|
|
107 |
- Bump to 2.1.0.
|
10667
|
108 |
* Wed Oct 17 2007 - [email protected]
|
|
109 |
- Call autoconf because configure.ac is being patched.
|
10617
|
110 |
* Sun Oct 07 2007 - [email protected]
|
|
111 |
- Add patches, 01-skip-codegen-test and 02-pygobject-xsl-dir, to get the module
|
|
112 |
to build within the JDS environment where pygobject and pygtk are not yet
|
|
113 |
installed.
|
|
114 |
* Tue Sep 04 2007 - [email protected]
|
|
115 |
- Initial spec
|