[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 バインディング |
---|
[8369] | 6 | Version: 3.12.1 |
---|
[7938] | 7 | Release: 1%{?_dist_release} |
---|
| 8 | |
---|
| 9 | Group: Development/Languages |
---|
| 10 | License: LGPL |
---|
| 11 | URL: http://www.pygtk.org/ |
---|
| 12 | |
---|
[8353] | 13 | Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.12/pygobject-%{version}.tar.xz |
---|
[7938] | 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 | |
---|
[8353] | 24 | Obsoletes: %{name}-devel < 3.12.0 |
---|
[7938] | 25 | Obsoletes: %{name}-doc < 3.10.0 |
---|
| 26 | |
---|
| 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
| 29 | Packager: Takemikaduchi |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | pygobject provides a convenient wrapper for the GObject library |
---|
| 33 | for use in Python programs. |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %setup -q -n pygobject-%{version} |
---|
| 38 | |
---|
| 39 | %build |
---|
| 40 | # --disable-docs doesn't work; it builds the docs anyway. |
---|
| 41 | %configure \ |
---|
| 42 | --enable-silent-rules \ |
---|
| 43 | --disable-static \ |
---|
| 44 | --enable-thread |
---|
| 45 | export tagname=CC |
---|
| 46 | make LIBTOOL=/usr/bin/libtool |
---|
| 47 | |
---|
| 48 | %install |
---|
| 49 | rm -rf $RPM_BUILD_ROOT |
---|
| 50 | export tagname=CC |
---|
| 51 | make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install |
---|
| 52 | |
---|
| 53 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f |
---|
| 54 | rm -f examples/Makefile* |
---|
| 55 | |
---|
| 56 | # conflict with pygobject |
---|
| 57 | rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0 |
---|
| 58 | rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject |
---|
| 59 | |
---|
| 60 | # conflict with pygobject3 |
---|
| 61 | rm -f $RPM_BUILD_ROOT%{_includedir}/pygobject-3.0/pygobject.h |
---|
| 62 | rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pygobject-3.0.pc |
---|
| 63 | |
---|
| 64 | %clean |
---|
| 65 | rm -fr $RPM_BUILD_ROOT |
---|
| 66 | |
---|
| 67 | %files |
---|
| 68 | %defattr(644, root, root, 755) |
---|
| 69 | %doc AUTHORS NEWS README ChangeLog |
---|
| 70 | %{python3_sitearch}/pygtkcompat |
---|
| 71 | %{python3_sitearch}/*.egg-info |
---|
| 72 | %{python3_sitearch}/gi |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | %changelog |
---|
[8369] | 76 | * Sat Apr 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1 |
---|
| 77 | - new upstream release |
---|
| 78 | |
---|
[8353] | 79 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1 |
---|
| 80 | - new upstream release |
---|
| 81 | - remove %%{name}-devel subpackage |
---|
| 82 | |
---|
[8011] | 83 | * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1 |
---|
| 84 | - new upstream release |
---|
| 85 | |
---|
[7938] | 86 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1 |
---|
| 87 | - initial build |
---|
| 88 | |
---|