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