Browse Source

update: pygobject, pycairo, pygtk2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1881 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 13 years ago
parent
commit
d2a365ddcc
3 changed files with 43 additions and 26 deletions
  1. 16 12
      p/pycairo/pycairo-vl.spec
  2. 18 6
      p/pygobject/pygobject-vl.spec
  3. 9 8
      p/pygtk2/pygtk2-vl.spec

+ 16 - 12
p/pycairo/pycairo-vl.spec

@@ -1,21 +1,22 @@
 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
+Name: pycairo
 Summary: Python bindings for the cairo library
 Summary(ja): cairo ライブラリの Python バインディング
-Name: pycairo
-Version: 1.8.6
-Release: 2%{?_dist_release}
-License: LGPL
+Version: 1.8.10
+Release: 1%{?_dist_release}
+
 Group: Development/Languages
+License: LGPLv2
 URL: http://cairographics.org/pycairo
 
-Source: http://cairographics.org/releases/pycairo-%{version}.tar.gz
+Source: http://cairographics.org/releases/py2cairo-%{version}.tar.gz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-Requires: cairo >= 1.2.6
-BuildRequires: cairo-devel 
+BuildRequires: cairo-devel >= 1.8.10
+BuildRequires: python-devel >= 2.6
 BuildRequires: pkgconfig
-BuildRequires: python-devel
+Requires: cairo >= 1.8.10
 
 %description
 Python bindings for the cairo library.
@@ -25,7 +26,6 @@ Summary: Libraries and headers for pycairo
 Group: Development/Libraries
 Requires: %{name} = %{version}-%{release}
 Requires: cairo-devel
-Requires: pkgconfig
 Requires: python-devel
 
 %description devel
@@ -33,10 +33,10 @@ This package contains files required to build wrappers for cairo add-on
 libraries so that they interoperate with pycairo.
 
 %prep
-%setup -q
+%setup -q 
 
 %build
-%configure
+%configure --disable-static
 %__make %{?_smp_mflags}
 
 %install
@@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc AUTHORS ChangeLog COPYING* INSTALL NEWS README
+%doc AUTHORS COPYING* INSTALL NEWS README
 %{python_sitearch}/cairo/
 
 %files devel
@@ -58,6 +58,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/pycairo.pc
 
 %changelog
+* Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bg.wakwak.com> 1.8.10-1
+- new upstream release
+- built wirh rpm-4.8.1
+
 * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.8.6-2
 - rebuilt with gcc-4.4.3-3 on ppc
 

+ 18 - 6
p/pygobject/pygobject-vl.spec

@@ -1,12 +1,13 @@
 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
+Name: pygobject
 Summary: Python bindings for GObject
 Summary(ja): GObject の Python バインディング
-Name: pygobject
-Version: 2.21.1
+Version: 2.21.5
 Release: 1%{?_dist_release}
-License: LGPL
+
 Group: Development/Languages
+License: LGPL
 URL: http://www.pygtk.org/
 
 Source: pygobject-%{version}.tar.bz2
@@ -40,7 +41,7 @@ pygobject-based libraries such as pygtk2.
 
 %package doc
 Summary: Documentation files for pygobject
-Group: Development/Documentation
+Group: Documentation
 
 %description doc
 This package contains documentation files for pygobject.
@@ -50,7 +51,12 @@ This package contains documentation files for pygobject.
 
 %build
 # --disable-docs doesn't work; it builds the docs anyway.
-%configure --enable-thread --disable-docs
+%configure \
+    --enable-silent-rules \
+    --disable-static \
+    --enable-thread \
+    --disable-introspection \
+    --disable-docs
 export tagname=CC
 make LIBTOOL=/usr/bin/libtool
 
@@ -89,6 +95,7 @@ rm -fr $RPM_BUILD_ROOT
 %dir %{_includedir}/pygtk-2.0
 %{_datadir}/pygobject/2.0/codegen
 %{_datadir}/pygobject/2.0/defs
+%{_datadir}/pygobject/xsl
 %{_includedir}/pygtk-2.0/pyglib.h
 %{_includedir}/pygtk-2.0/pygobject.h
 %{_libdir}/libpyglib-2.0-python.so
@@ -97,9 +104,14 @@ rm -fr $RPM_BUILD_ROOT
 %files doc
 %defattr(644, root, root, 755)
 %{_datadir}/gtk-doc/html/pygobject
-%{_datadir}/pygobject/xsl
 
 %changelog
+* Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.21.5-1
+- new upstream release
+- added --disable-intropection option (it needs gobject-introspection >= 0.9)
+- moved xsl files to devel package
+- built with rpm-4.8.1
+
 * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.21.1-1
 - new upstream release
 

+ 9 - 8
p/pygtk2/pygtk2-vl.spec

@@ -6,18 +6,15 @@
 Summary: Python bindings for the GTK+ widget set.
 Summary(ja): GTK+ ウィジットセットの Python 実装
 Name: pygtk2
-Version: 2.17.0
+Version: 2.21.0
 Release: 1%{?_dist_release}
-License: LGPL (version 2.1)
+
 Group: Development/Languages
-Source: ftp://ftp.gnome.org/pub/GNOME/sources/pygtk/2.17/pygtk-%{version}.tar.bz2
+License: LGPLv2
+Source: ftp://ftp.gnome.org/pub/GNOME/sources/pygtk/2.21/pygtk-%{version}.tar.bz2
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
-Requires: pygobject
-Requires: pycairo
-Requires: python-numeric
-
 Buildrequires: python-devel >= 2.5
 Buildrequires: libglade2-devel >= 2.5.0
 BuildRequires: gtk2-devel >= 2.16.0
@@ -28,6 +25,10 @@ BuildRequires: docbook-style-xsl
 BuildRequires: libxslt
 Buildrequires: automake >= 1.6.3-5
 
+Requires: pygobject
+Requires: pycairo
+Requires: python-numeric
+
 Obsoletes: pygtk
 
 %description
@@ -85,7 +86,7 @@ make LIBTOOL=/usr/bin/libtool
 rm -rf $RPM_BUILD_ROOT
 export tagname=CC
 make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
-find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' -exec rm {} \;
+find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
 
 %clean
 rm -rf $RPM_BUILD_ROOT