[4713] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | |
---|
| 3 | Name: pygobject3 |
---|
| 4 | Summary: Python bindings for GObject Introspection |
---|
| 5 | Summary(ja): GObject Introspection の Python バインディング |
---|
[5651] | 6 | Version: 3.0.4 |
---|
[4713] | 7 | Release: 1%{?_dist_release} |
---|
| 8 | |
---|
| 9 | Group: Development/Languages |
---|
| 10 | License: LGPL |
---|
| 11 | URL: http://www.pygtk.org/ |
---|
| 12 | |
---|
[4812] | 13 | Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.0/pygobject-%{version}.tar.xz |
---|
[4713] | 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: glib2-devel >= 2.26.0 |
---|
| 17 | BuildRequires: python-devel >= 2.6 |
---|
| 18 | BuildRequires: libffi-devel |
---|
| 19 | BuildRequires: libtool, automake |
---|
| 20 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
---|
| 21 | BuildRequires: pycairo-devel >= 1.8.10 |
---|
| 22 | |
---|
| 23 | Vendor: Project Vine |
---|
| 24 | Distribution: Vine Linux |
---|
| 25 | Packager: Takemikaduchi |
---|
| 26 | |
---|
| 27 | %description |
---|
| 28 | pygobject provides a convenient wrapper for the GObject library |
---|
| 29 | for use in Python programs. |
---|
| 30 | |
---|
| 31 | %package devel |
---|
| 32 | Summary: Development files for building add-on libraries |
---|
| 33 | Group: Development/Libraries |
---|
| 34 | Requires: %{name} = %{version}-%{release} |
---|
| 35 | #Requires: pygobject-doc = %{version}-%{release} |
---|
| 36 | Requires: glib2-devel |
---|
| 37 | Requires: libffi-devel |
---|
| 38 | Requires: pkgconfig |
---|
| 39 | |
---|
| 40 | %description devel |
---|
| 41 | This package contains files required to build wrappers for |
---|
| 42 | pygobject-based libraries such as pygtk2. |
---|
| 43 | |
---|
| 44 | %package doc |
---|
| 45 | Summary: Documentation files for pygobject |
---|
| 46 | Group: Documentation |
---|
| 47 | BuildArch: noarch |
---|
| 48 | |
---|
| 49 | %description doc |
---|
| 50 | This package contains documentation files for pygobject. |
---|
| 51 | |
---|
| 52 | %prep |
---|
| 53 | %setup -q -n pygobject-%{version} |
---|
| 54 | |
---|
| 55 | %build |
---|
| 56 | # --disable-docs doesn't work; it builds the docs anyway. |
---|
| 57 | %configure \ |
---|
| 58 | --enable-silent-rules \ |
---|
| 59 | --disable-static \ |
---|
[4812] | 60 | --enable-thread |
---|
[4713] | 61 | export tagname=CC |
---|
| 62 | make LIBTOOL=/usr/bin/libtool |
---|
| 63 | |
---|
| 64 | %install |
---|
| 65 | rm -rf $RPM_BUILD_ROOT |
---|
| 66 | export tagname=CC |
---|
| 67 | make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install |
---|
| 68 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f |
---|
| 69 | |
---|
| 70 | rm -f examples/Makefile* |
---|
| 71 | |
---|
| 72 | # conflict with pygobject |
---|
| 73 | rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0 |
---|
| 74 | rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject |
---|
| 75 | |
---|
| 76 | %clean |
---|
| 77 | rm -fr $RPM_BUILD_ROOT |
---|
| 78 | |
---|
| 79 | %files |
---|
| 80 | %defattr(644, root, root, 755) |
---|
| 81 | %doc AUTHORS NEWS README ChangeLog |
---|
| 82 | %doc examples |
---|
| 83 | %{_libdir}/libpyglib-gi-2.0-python.so.* |
---|
| 84 | %{python_sitearch}/gi |
---|
| 85 | |
---|
| 86 | %files devel |
---|
| 87 | %defattr(644, root, root, 755) |
---|
| 88 | %{_includedir}/pygobject-3.0/pygobject.h |
---|
| 89 | %{_libdir}/libpyglib-gi-2.0-python.so |
---|
| 90 | %{_libdir}/pkgconfig/pygobject-3.0.pc |
---|
| 91 | |
---|
| 92 | %files doc |
---|
| 93 | %defattr(644, root, root, 755) |
---|
| 94 | |
---|
| 95 | %changelog |
---|
[5651] | 96 | * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-1 |
---|
| 97 | - new upstream release |
---|
| 98 | |
---|
[5094] | 99 | * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1 |
---|
| 100 | - new upstream release |
---|
| 101 | |
---|
[4872] | 102 | * Thu Oct 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1 |
---|
| 103 | - new upstream release |
---|
| 104 | |
---|
[4812] | 105 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1 |
---|
| 106 | - new upstream release |
---|
| 107 | |
---|
[4713] | 108 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.90.3-1 |
---|
| 109 | - initial build for Vine Linux |
---|
| 110 | |
---|