|
@@ -1,7 +1,9 @@
|
|
|
|
+%{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
+
|
|
Name: pygobject3
|
|
Name: pygobject3
|
|
Summary: Python bindings for GObject Introspection
|
|
Summary: Python bindings for GObject Introspection
|
|
Summary(ja): GObject Introspection の Python バインディング
|
|
Summary(ja): GObject Introspection の Python バインディング
|
|
-Version: 3.16.0
|
|
+Version: 3.16.1
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: Development/Languages
|
|
Group: Development/Languages
|
|
@@ -40,22 +42,59 @@ Requires: pkgconfig
|
|
This package contains files required to build wrappers for
|
|
This package contains files required to build wrappers for
|
|
pygobject-based libraries such as pygtk2.
|
|
pygobject-based libraries such as pygtk2.
|
|
|
|
|
|
|
|
+%package -n python3-pygobject
|
|
|
|
+Summary: Python3 bindings for GObject Introspection
|
|
|
|
+Summary(ja): GObject Introspection の Python3 バインディング
|
|
|
|
+BuildRequires: python3-pycairo-devel >= 1.10.0
|
|
|
|
+Requires: python3 >= 3.3
|
|
|
|
+Obsoletes: python3-pygobject < 3.16.1
|
|
|
|
+
|
|
|
|
+%description -n python3-pygobject
|
|
|
|
+python3-pygobject provides a convenient wrapper for the GObject library
|
|
|
|
+for use in Python3 programs.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n pygobject-%{version}
|
|
%setup -q -n pygobject-%{version}
|
|
|
|
|
|
|
|
+# python3
|
|
|
|
+rm -rf ../python3
|
|
|
|
+cp -a . ../python3
|
|
|
|
+
|
|
%build
|
|
%build
|
|
# --disable-docs doesn't work; it builds the docs anyway.
|
|
# --disable-docs doesn't work; it builds the docs anyway.
|
|
%configure \
|
|
%configure \
|
|
|
|
+ --with-python=python2 \
|
|
--enable-silent-rules \
|
|
--enable-silent-rules \
|
|
--disable-static \
|
|
--disable-static \
|
|
--enable-thread
|
|
--enable-thread
|
|
export tagname=CC
|
|
export tagname=CC
|
|
make LIBTOOL=/usr/bin/libtool
|
|
make LIBTOOL=/usr/bin/libtool
|
|
|
|
|
|
|
|
+# python3
|
|
|
|
+pushd ../python3
|
|
|
|
+%configure \
|
|
|
|
+ --with-python=python3 \
|
|
|
|
+ --enable-silent-rules \
|
|
|
|
+ --disable-static \
|
|
|
|
+ --enable-thread
|
|
|
|
+export tagname=CC
|
|
|
|
+make LIBTOOL=/usr/bin/libtool
|
|
|
|
+popd
|
|
|
|
+
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
export tagname=CC
|
|
export tagname=CC
|
|
|
|
+
|
|
|
|
+# python3
|
|
|
|
+pushd ../python3
|
|
|
|
+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*
|
|
|
|
+popd
|
|
|
|
+rm -rf ../python3
|
|
|
|
+
|
|
|
|
+# python2
|
|
make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
|
|
make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
|
|
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
|
|
@@ -65,6 +104,7 @@ rm -f examples/Makefile*
|
|
rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0
|
|
rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject
|
|
|
|
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
rm -fr $RPM_BUILD_ROOT
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
|
|
@@ -81,8 +121,19 @@ rm -fr $RPM_BUILD_ROOT
|
|
%{_includedir}/pygobject-3.0/pygobject.h
|
|
%{_includedir}/pygobject-3.0/pygobject.h
|
|
%{_libdir}/pkgconfig/pygobject-3.0.pc
|
|
%{_libdir}/pkgconfig/pygobject-3.0.pc
|
|
|
|
|
|
|
|
+%files -n python3-pygobject
|
|
|
|
+%defattr(644, root, root, 755)
|
|
|
|
+%doc AUTHORS NEWS README ChangeLog
|
|
|
|
+%{python3_sitearch}/pygtkcompat
|
|
|
|
+%{python3_sitearch}/*.egg-info
|
|
|
|
+%{python3_sitearch}/gi
|
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Apr 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.1-1
|
|
|
|
+- new upstream release
|
|
|
|
+- create python3-pygobject subpackage
|
|
|
|
+
|
|
* Mon Mar 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1
|
|
* Mon Mar 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|