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