[9520] | 1 | %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} |
---|
| 2 | |
---|
[4713] | 3 | Name: pygobject3 |
---|
| 4 | Summary: Python bindings for GObject Introspection |
---|
| 5 | Summary(ja): GObject Introspection の Python バインディング |
---|
[10716] | 6 | Version: 3.20.1 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
[4713] | 8 | |
---|
| 9 | Group: Development/Languages |
---|
| 10 | License: LGPL |
---|
| 11 | URL: http://www.pygtk.org/ |
---|
| 12 | |
---|
[10716] | 13 | Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.20/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 | |
---|
[7938] | 23 | Obsoletes: %{name}-doc < 3.10.0 |
---|
| 24 | |
---|
[4713] | 25 | Vendor: Project Vine |
---|
| 26 | Distribution: Vine Linux |
---|
| 27 | Packager: Takemikaduchi |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | pygobject provides a convenient wrapper for the GObject library |
---|
| 31 | for use in Python programs. |
---|
| 32 | |
---|
| 33 | %package devel |
---|
| 34 | Summary: Development files for building add-on libraries |
---|
| 35 | Group: Development/Libraries |
---|
| 36 | Requires: %{name} = %{version}-%{release} |
---|
| 37 | Requires: glib2-devel |
---|
| 38 | Requires: libffi-devel |
---|
| 39 | Requires: pkgconfig |
---|
| 40 | |
---|
| 41 | %description devel |
---|
| 42 | This package contains files required to build wrappers for |
---|
| 43 | pygobject-based libraries such as pygtk2. |
---|
| 44 | |
---|
[9520] | 45 | %package -n python3-pygobject |
---|
| 46 | Summary: Python3 bindings for GObject Introspection |
---|
| 47 | Summary(ja): GObject Introspection の Python3 バインディング |
---|
| 48 | BuildRequires: python3-pycairo-devel >= 1.10.0 |
---|
| 49 | Requires: python3 >= 3.3 |
---|
| 50 | Obsoletes: python3-pygobject < 3.16.1 |
---|
[4713] | 51 | |
---|
[9520] | 52 | %description -n python3-pygobject |
---|
| 53 | python3-pygobject provides a convenient wrapper for the GObject library |
---|
| 54 | for use in Python3 programs. |
---|
| 55 | |
---|
[4713] | 56 | %prep |
---|
| 57 | %setup -q -n pygobject-%{version} |
---|
| 58 | |
---|
[9520] | 59 | # python3 |
---|
| 60 | rm -rf ../python3 |
---|
| 61 | cp -a . ../python3 |
---|
| 62 | |
---|
[4713] | 63 | %build |
---|
| 64 | # --disable-docs doesn't work; it builds the docs anyway. |
---|
| 65 | %configure \ |
---|
[9520] | 66 | --with-python=python2 \ |
---|
[4713] | 67 | --enable-silent-rules \ |
---|
| 68 | --disable-static \ |
---|
[4812] | 69 | --enable-thread |
---|
[4713] | 70 | export tagname=CC |
---|
| 71 | make LIBTOOL=/usr/bin/libtool |
---|
| 72 | |
---|
[9520] | 73 | # python3 |
---|
| 74 | pushd ../python3 |
---|
| 75 | %configure \ |
---|
| 76 | --with-python=python3 \ |
---|
| 77 | --enable-silent-rules \ |
---|
| 78 | --disable-static \ |
---|
| 79 | --enable-thread |
---|
| 80 | export tagname=CC |
---|
| 81 | make LIBTOOL=/usr/bin/libtool |
---|
| 82 | popd |
---|
| 83 | |
---|
[4713] | 84 | %install |
---|
| 85 | rm -rf $RPM_BUILD_ROOT |
---|
| 86 | export tagname=CC |
---|
[9520] | 87 | |
---|
| 88 | # python3 |
---|
| 89 | pushd ../python3 |
---|
[4713] | 90 | make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install |
---|
[6951] | 91 | |
---|
[4713] | 92 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f |
---|
| 93 | rm -f examples/Makefile* |
---|
[9520] | 94 | popd |
---|
| 95 | rm -rf ../python3 |
---|
[4713] | 96 | |
---|
[9520] | 97 | # python2 |
---|
| 98 | make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install |
---|
| 99 | |
---|
| 100 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f |
---|
| 101 | rm -f examples/Makefile* |
---|
| 102 | |
---|
[4713] | 103 | # conflict with pygobject |
---|
| 104 | rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0 |
---|
| 105 | rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject |
---|
| 106 | |
---|
[9520] | 107 | |
---|
[4713] | 108 | %clean |
---|
| 109 | rm -fr $RPM_BUILD_ROOT |
---|
| 110 | |
---|
| 111 | %files |
---|
[9803] | 112 | %defattr(-,root,root,-) |
---|
[4713] | 113 | %doc AUTHORS NEWS README ChangeLog |
---|
| 114 | %doc examples |
---|
[7633] | 115 | %{_libdir}/python2.7/site-packages/pygtkcompat |
---|
[6951] | 116 | %{python_sitearch}/*.egg-info |
---|
[4713] | 117 | %{python_sitearch}/gi |
---|
| 118 | |
---|
| 119 | %files devel |
---|
[9803] | 120 | %defattr(-,root,root,-) |
---|
[4713] | 121 | %{_includedir}/pygobject-3.0/pygobject.h |
---|
| 122 | %{_libdir}/pkgconfig/pygobject-3.0.pc |
---|
| 123 | |
---|
[9520] | 124 | %files -n python3-pygobject |
---|
[9803] | 125 | %defattr(-,root,root,-) |
---|
[9520] | 126 | %doc AUTHORS NEWS README ChangeLog |
---|
| 127 | %{python3_sitearch}/pygtkcompat |
---|
| 128 | %{python3_sitearch}/*.egg-info |
---|
| 129 | %{python3_sitearch}/gi |
---|
[4713] | 130 | |
---|
[9520] | 131 | |
---|
[4713] | 132 | %changelog |
---|
[10716] | 133 | * Fri Jul 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.20.1-1 |
---|
| 134 | - new upstream release |
---|
[10405] | 135 | |
---|
[9803] | 136 | * Thu Nov 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-2 |
---|
| 137 | - fix spec file |
---|
| 138 | |
---|
[9791] | 139 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-1 |
---|
| 140 | - new upstream release |
---|
| 141 | |
---|
[9632] | 142 | * Sun Jun 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.2-1 |
---|
| 143 | - new upstream release |
---|
| 144 | |
---|
[9520] | 145 | * Sun Apr 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.1-1 |
---|
| 146 | - new upstream release |
---|
| 147 | - create python3-pygobject subpackage |
---|
| 148 | |
---|
[9478] | 149 | * Mon Mar 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1 |
---|
| 150 | - new upstream release |
---|
| 151 | |
---|
[9073] | 152 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.14.0-1 |
---|
| 153 | - new upstream release |
---|
| 154 | |
---|
[8535] | 155 | * Fri Jun 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.2-1 |
---|
| 156 | - new upstream release |
---|
| 157 | |
---|
[8369] | 158 | * Sat Apr 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1 |
---|
| 159 | - new upstream release |
---|
| 160 | |
---|
[8353] | 161 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1 |
---|
| 162 | - new upstream release |
---|
| 163 | |
---|
[8011] | 164 | * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1 |
---|
| 165 | - new upstream release |
---|
| 166 | |
---|
[7938] | 167 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1 |
---|
| 168 | - new upstream release |
---|
| 169 | - remove doc subpackage |
---|
| 170 | |
---|
[7756] | 171 | * Mon Jul 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.3-1 |
---|
| 172 | - new upstream release |
---|
| 173 | |
---|
[7681] | 174 | * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1 |
---|
| 175 | - new upstream release |
---|
| 176 | |
---|
[7633] | 177 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1 |
---|
| 178 | - new upstream release |
---|
| 179 | |
---|
[7681] | 180 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1 |
---|
| 181 | - new upstream release |
---|
| 182 | |
---|
[7119] | 183 | * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.2-1 |
---|
| 184 | - new upstream release |
---|
| 185 | |
---|
[6951] | 186 | * Thu Oct 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.1.1-1 |
---|
| 187 | - new upstream release |
---|
| 188 | |
---|
[6890] | 189 | * Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.0-1 |
---|
| 190 | - new upstream release |
---|
| 191 | |
---|
[6201] | 192 | * Sun May 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.2-1 |
---|
| 193 | - new upstream release |
---|
| 194 | |
---|
[6011] | 195 | * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1 |
---|
| 196 | - new upstream release |
---|
| 197 | |
---|
[5701] | 198 | * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-2 |
---|
| 199 | - rebuild with python-2.7.2 |
---|
| 200 | |
---|
[5651] | 201 | * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-1 |
---|
| 202 | - new upstream release |
---|
| 203 | |
---|
[5094] | 204 | * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1 |
---|
| 205 | - new upstream release |
---|
| 206 | |
---|
[4872] | 207 | * Thu Oct 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1 |
---|
| 208 | - new upstream release |
---|
| 209 | |
---|
[4812] | 210 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1 |
---|
| 211 | - new upstream release |
---|
| 212 | |
---|
[4713] | 213 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.90.3-1 |
---|
| 214 | - initial build for Vine Linux |
---|
| 215 | |
---|