[12376] | 1 | %bcond_without python2 |
---|
| 2 | %bcond_without python3 |
---|
[9520] | 3 | |
---|
[4713] | 4 | Name: pygobject3 |
---|
| 5 | Summary: Python bindings for GObject Introspection |
---|
| 6 | Summary(ja): GObject Introspection の Python バインディング |
---|
[12469] | 7 | Version: 3.36.1 |
---|
[10716] | 8 | Release: 1%{?_dist_release} |
---|
[12469] | 9 | Group: programming |
---|
[12376] | 10 | Vendor: Project Vine |
---|
| 11 | Distribution: Vine Linux |
---|
| 12 | |
---|
[4713] | 13 | License: LGPL |
---|
[12376] | 14 | URL: https://pypi.org/project/PyGObject/ |
---|
| 15 | %global shortver %(echo "%{version}" | sed -e 's/\.[0-9]*$//') |
---|
| 16 | Source: https://ftp.gnome.org/pub/GNOME/sources/pygobject/%{shortver}/pygobject-%{version}.tar.xz |
---|
[4713] | 17 | |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 19 | BuildRequires: glib2-devel >= 2.26.0 |
---|
| 20 | BuildRequires: python-devel >= 2.6 |
---|
| 21 | BuildRequires: libffi-devel |
---|
| 22 | BuildRequires: libtool, automake |
---|
| 23 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
---|
[12469] | 24 | BuildRequires: python-rpm-macros |
---|
[12376] | 25 | %if %{with python2} |
---|
| 26 | BuildRequires: python-devel >= 2.6 |
---|
| 27 | BuildRequires: python-setuptools |
---|
[12469] | 28 | BuildRequires: python2-rpm-macros |
---|
| 29 | BuildRequires: python2-pycairo-devel >= 1.8.10 |
---|
[12376] | 30 | %endif |
---|
[4713] | 31 | |
---|
[7938] | 32 | Obsoletes: %{name}-doc < 3.10.0 |
---|
| 33 | |
---|
[4713] | 34 | %description |
---|
| 35 | pygobject provides a convenient wrapper for the GObject library |
---|
| 36 | for use in Python programs. |
---|
| 37 | |
---|
[12376] | 38 | |
---|
[4713] | 39 | %package devel |
---|
| 40 | Summary: Development files for building add-on libraries |
---|
[12469] | 41 | Group: programming |
---|
[12376] | 42 | Provides: python3-pygobject-devel = %{version}-%{release} |
---|
[4713] | 43 | Requires: %{name} = %{version}-%{release} |
---|
| 44 | Requires: glib2-devel |
---|
| 45 | Requires: libffi-devel |
---|
| 46 | Requires: pkgconfig |
---|
| 47 | |
---|
| 48 | %description devel |
---|
| 49 | This package contains files required to build wrappers for |
---|
| 50 | pygobject-based libraries such as pygtk2. |
---|
| 51 | |
---|
[12376] | 52 | |
---|
| 53 | %if %{with python3} |
---|
[9520] | 54 | %package -n python3-pygobject |
---|
| 55 | Summary: Python3 bindings for GObject Introspection |
---|
| 56 | Summary(ja): GObject Introspection の Python3 バインディング |
---|
[12469] | 57 | Group: programming |
---|
[12376] | 58 | BuildRequires: python3-devel |
---|
| 59 | BuildRequires: python3-setuptools |
---|
| 60 | BuildRequires: python3-rpm-macros |
---|
| 61 | BuildRequires: python3-pycairo-devel |
---|
[9520] | 62 | Obsoletes: python3-pygobject < 3.16.1 |
---|
[4713] | 63 | |
---|
[9520] | 64 | %description -n python3-pygobject |
---|
| 65 | python3-pygobject provides a convenient wrapper for the GObject library |
---|
| 66 | for use in Python3 programs. |
---|
[12376] | 67 | %endif |
---|
[9520] | 68 | |
---|
[12469] | 69 | |
---|
[4713] | 70 | %prep |
---|
| 71 | %setup -q -n pygobject-%{version} |
---|
| 72 | |
---|
[9520] | 73 | |
---|
[4713] | 74 | %build |
---|
[12376] | 75 | %if %{with python2} |
---|
| 76 | %py_build |
---|
| 77 | %endif |
---|
| 78 | %if %{with python3} |
---|
| 79 | %py3_build |
---|
| 80 | %endif |
---|
[4713] | 81 | |
---|
[9520] | 82 | |
---|
[4713] | 83 | %install |
---|
| 84 | rm -rf $RPM_BUILD_ROOT |
---|
[12376] | 85 | %if %{with python2} |
---|
| 86 | %py_install |
---|
| 87 | %endif |
---|
| 88 | %if %{with python3} |
---|
| 89 | %py3_install |
---|
| 90 | %endif |
---|
[9520] | 91 | |
---|
[6951] | 92 | |
---|
[4713] | 93 | %clean |
---|
| 94 | rm -fr $RPM_BUILD_ROOT |
---|
| 95 | |
---|
[12376] | 96 | %if %{with python2} |
---|
[4713] | 97 | %files |
---|
[9803] | 98 | %defattr(-,root,root,-) |
---|
[12469] | 99 | %license COPYING |
---|
| 100 | %doc NEWS README* |
---|
[4713] | 101 | %doc examples |
---|
[7633] | 102 | %{_libdir}/python2.7/site-packages/pygtkcompat |
---|
[6951] | 103 | %{python_sitearch}/*.egg-info |
---|
[4713] | 104 | %{python_sitearch}/gi |
---|
[12376] | 105 | %endif |
---|
[4713] | 106 | |
---|
| 107 | %files devel |
---|
[9803] | 108 | %defattr(-,root,root,-) |
---|
[4713] | 109 | %{_includedir}/pygobject-3.0/pygobject.h |
---|
| 110 | %{_libdir}/pkgconfig/pygobject-3.0.pc |
---|
| 111 | |
---|
[12376] | 112 | %if %{with python3} |
---|
[9520] | 113 | %files -n python3-pygobject |
---|
[9803] | 114 | %defattr(-,root,root,-) |
---|
[12469] | 115 | %license COPYING |
---|
| 116 | %doc NEWS README* |
---|
[9520] | 117 | %{python3_sitearch}/pygtkcompat |
---|
| 118 | %{python3_sitearch}/*.egg-info |
---|
| 119 | %{python3_sitearch}/gi |
---|
[12376] | 120 | %endif |
---|
[4713] | 121 | |
---|
[9520] | 122 | |
---|
[4713] | 123 | %changelog |
---|
[12469] | 124 | * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.36.1-1 |
---|
| 125 | - new upstream release. |
---|
| 126 | |
---|
[12376] | 127 | * Thu Apr 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.34.0-1 |
---|
| 128 | - new upstream release. |
---|
| 129 | |
---|
[10716] | 130 | * Fri Jul 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.20.1-1 |
---|
| 131 | - new upstream release |
---|
[10405] | 132 | |
---|
[9803] | 133 | * Thu Nov 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-2 |
---|
| 134 | - fix spec file |
---|
| 135 | |
---|
[9791] | 136 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.2-1 |
---|
| 137 | - new upstream release |
---|
| 138 | |
---|
[9632] | 139 | * Sun Jun 28 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.2-1 |
---|
| 140 | - new upstream release |
---|
| 141 | |
---|
[9520] | 142 | * Sun Apr 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.1-1 |
---|
| 143 | - new upstream release |
---|
| 144 | - create python3-pygobject subpackage |
---|
| 145 | |
---|
[9478] | 146 | * Mon Mar 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1 |
---|
| 147 | - new upstream release |
---|
| 148 | |
---|
[9073] | 149 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.14.0-1 |
---|
| 150 | - new upstream release |
---|
| 151 | |
---|
[8535] | 152 | * Fri Jun 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.2-1 |
---|
| 153 | - new upstream release |
---|
| 154 | |
---|
[8369] | 155 | * Sat Apr 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1 |
---|
| 156 | - new upstream release |
---|
| 157 | |
---|
[8353] | 158 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1 |
---|
| 159 | - new upstream release |
---|
| 160 | |
---|
[8011] | 161 | * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1 |
---|
| 162 | - new upstream release |
---|
| 163 | |
---|
[7938] | 164 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1 |
---|
| 165 | - new upstream release |
---|
| 166 | - remove doc subpackage |
---|
| 167 | |
---|
[7756] | 168 | * Mon Jul 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.3-1 |
---|
| 169 | - new upstream release |
---|
| 170 | |
---|
[7681] | 171 | * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1 |
---|
| 172 | - new upstream release |
---|
| 173 | |
---|
[7633] | 174 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1 |
---|
| 175 | - new upstream release |
---|
| 176 | |
---|
[7681] | 177 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1 |
---|
| 178 | - new upstream release |
---|
| 179 | |
---|
[7119] | 180 | * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.2-1 |
---|
| 181 | - new upstream release |
---|
| 182 | |
---|
[6951] | 183 | * Thu Oct 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.1.1-1 |
---|
| 184 | - new upstream release |
---|
| 185 | |
---|
[6890] | 186 | * Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.0-1 |
---|
| 187 | - new upstream release |
---|
| 188 | |
---|
[6201] | 189 | * Sun May 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.2-1 |
---|
| 190 | - new upstream release |
---|
| 191 | |
---|
[6011] | 192 | * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1 |
---|
| 193 | - new upstream release |
---|
| 194 | |
---|
[5701] | 195 | * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-2 |
---|
| 196 | - rebuild with python-2.7.2 |
---|
| 197 | |
---|
[5651] | 198 | * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-1 |
---|
| 199 | - new upstream release |
---|
| 200 | |
---|
[5094] | 201 | * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1 |
---|
| 202 | - new upstream release |
---|
| 203 | |
---|
[4872] | 204 | * Thu Oct 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1 |
---|
| 205 | - new upstream release |
---|
| 206 | |
---|
[4812] | 207 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1 |
---|
| 208 | - new upstream release |
---|
| 209 | |
---|
[4713] | 210 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.90.3-1 |
---|
| 211 | - initial build for Vine Linux |
---|
| 212 | |
---|