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