%{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} Name: python3-pygobject Summary: Python3 bindings for GObject Introspection Summary(ja): GObject Introspection の Python3 バインディング Version: 3.12.2 Release: 1%{?_dist_release} Group: Development/Languages License: LGPL URL: http://www.pygtk.org/ Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.12/pygobject-%{version}.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: glib2-devel >= 2.26.0 BuildRequires: python3-devel >= 3.3 BuildRequires: libffi-devel BuildRequires: libtool, automake BuildRequires: gobject-introspection-devel >= 0.9.8 BuildRequires: python3-pycairo-devel >= 1.10.0 Requires: python3 >= 3.3 Obsoletes: %{name}-devel < 3.12.0 Obsoletes: %{name}-doc < 3.10.0 Vendor: Project Vine Distribution: Vine Linux Packager: Takemikaduchi %description pygobject provides a convenient wrapper for the GObject library for use in Python programs. %prep %setup -q -n pygobject-%{version} %build # --disable-docs doesn't work; it builds the docs anyway. %configure \ --enable-silent-rules \ --disable-static \ --enable-thread export tagname=CC make LIBTOOL=/usr/bin/libtool %install 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' | xargs rm -f rm -f examples/Makefile* # conflict with pygobject rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0 rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject # conflict with pygobject3 rm -f $RPM_BUILD_ROOT%{_includedir}/pygobject-3.0/pygobject.h rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pygobject-3.0.pc %clean rm -fr $RPM_BUILD_ROOT %files %defattr(644, root, root, 755) %doc AUTHORS NEWS README ChangeLog %{python3_sitearch}/pygtkcompat %{python3_sitearch}/*.egg-info %{python3_sitearch}/gi %changelog * Fri Jun 06 2014 Yoji TOYODA 3.12.2-1 - new upstream release * Sat Apr 19 2014 Yoji TOYODA 3.12.1-1 - new upstream release * Sat Mar 29 2014 Yoji TOYODA 3.12.0-1 - new upstream release - remove %%{name}-devel subpackage * Sun Nov 24 2013 Yoji TOYODA 3.10.2-1 - new upstream release * Sat Oct 26 2013 Yoji TOYODA 3.10.1-1 - initial build