| 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
|---|
| 2 | |
|---|
| 3 | Name: pygobject |
|---|
| 4 | Summary: Python bindings for GObject |
|---|
| 5 | Summary(ja): GObject の Python バインディング |
|---|
| 6 | Version: 2.28.6 |
|---|
| 7 | Release: 4%{?_dist_release} |
|---|
| 8 | |
|---|
| 9 | Group: Development/Languages |
|---|
| 10 | License: LGPL |
|---|
| 11 | URL: http://www.pygtk.org/ |
|---|
| 12 | |
|---|
| 13 | Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-%{version}.tar.xz |
|---|
| 14 | Patch0: 00git_cairo_init.patch |
|---|
| 15 | Patch1: 00git_enum_properties.patch |
|---|
| 16 | Patch2: 00git_fix_qdata_warning.patch |
|---|
| 17 | Patch3: 00git_gio_flag_type.patch |
|---|
| 18 | Patch4: 00git_gio_test.patch |
|---|
| 19 | Patch5: 00git_messagebox_type.patch |
|---|
| 20 | Patch6: 00git_python3-maketrans.patch |
|---|
| 21 | Patch7: 00git_python3_build.patch |
|---|
| 22 | Patch8: 00git_test_case_hang.patch |
|---|
| 23 | Patch9: 00git_textiter_crash.patch |
|---|
| 24 | Patch10: 20_deprecated_spam.patch |
|---|
| 25 | |
|---|
| 26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 27 | BuildRequires: glib2-devel >= 2.26.0 |
|---|
| 28 | BuildRequires: python-devel >= 2.6 |
|---|
| 29 | BuildRequires: libffi-devel |
|---|
| 30 | BuildRequires: libtool, automake |
|---|
| 31 | BuildRequires: pycairo-devel >= 1.8.10 |
|---|
| 32 | |
|---|
| 33 | Vendor: Project Vine |
|---|
| 34 | Distribution: Vine Linux |
|---|
| 35 | Packager: daisuke |
|---|
| 36 | |
|---|
| 37 | %description |
|---|
| 38 | pygobject provides a convenient wrapper for the GObject library |
|---|
| 39 | for use in Python programs. |
|---|
| 40 | |
|---|
| 41 | %package devel |
|---|
| 42 | Summary: Development files for building add-on libraries |
|---|
| 43 | Group: Development/Libraries |
|---|
| 44 | Requires: pygobject = %{version}-%{release} |
|---|
| 45 | #Requires: pygobject-doc = %{version}-%{release} |
|---|
| 46 | Requires: glib2-devel |
|---|
| 47 | Requires: libffi-devel |
|---|
| 48 | Requires: pkgconfig |
|---|
| 49 | |
|---|
| 50 | %description devel |
|---|
| 51 | This package contains files required to build wrappers for |
|---|
| 52 | pygobject-based libraries such as pygtk2. |
|---|
| 53 | |
|---|
| 54 | %package doc |
|---|
| 55 | Summary: Documentation files for pygobject |
|---|
| 56 | Group: Documentation |
|---|
| 57 | |
|---|
| 58 | %description doc |
|---|
| 59 | This package contains documentation files for pygobject. |
|---|
| 60 | |
|---|
| 61 | %prep |
|---|
| 62 | %setup -q |
|---|
| 63 | %patch0 -p1 |
|---|
| 64 | %patch1 -p1 |
|---|
| 65 | %patch2 -p1 |
|---|
| 66 | %patch3 -p1 |
|---|
| 67 | %patch4 -p1 |
|---|
| 68 | %patch5 -p1 |
|---|
| 69 | %patch6 -p1 |
|---|
| 70 | %patch7 -p1 |
|---|
| 71 | %patch8 -p1 |
|---|
| 72 | %patch9 -p1 |
|---|
| 73 | %patch10 -p1 |
|---|
| 74 | |
|---|
| 75 | %build |
|---|
| 76 | # --disable-docs doesn't work; it builds the docs anyway. |
|---|
| 77 | %configure \ |
|---|
| 78 | --enable-silent-rules \ |
|---|
| 79 | --disable-static \ |
|---|
| 80 | --enable-thread \ |
|---|
| 81 | --disable-introspection \ |
|---|
| 82 | --disable-docs |
|---|
| 83 | export tagname=CC |
|---|
| 84 | make LIBTOOL=/usr/bin/libtool |
|---|
| 85 | |
|---|
| 86 | %install |
|---|
| 87 | rm -rf $RPM_BUILD_ROOT |
|---|
| 88 | export tagname=CC |
|---|
| 89 | make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 90 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f |
|---|
| 91 | |
|---|
| 92 | rm -f examples/Makefile* |
|---|
| 93 | |
|---|
| 94 | %clean |
|---|
| 95 | rm -fr $RPM_BUILD_ROOT |
|---|
| 96 | |
|---|
| 97 | %files |
|---|
| 98 | %defattr(644, root, root, 755) |
|---|
| 99 | %doc AUTHORS NEWS README ChangeLog |
|---|
| 100 | %doc examples |
|---|
| 101 | |
|---|
| 102 | %{_libdir}/libpyglib-2.0-python.so.* |
|---|
| 103 | %dir %{python_sitearch}/gtk-2.0 |
|---|
| 104 | %{python_sitearch}/gtk-2.0/dsextras.* |
|---|
| 105 | %{python_sitearch}/pygtk.* |
|---|
| 106 | |
|---|
| 107 | %defattr(755, root, root, 755) |
|---|
| 108 | %{python_sitearch}/gtk-2.0/gio |
|---|
| 109 | %{python_sitearch}/glib |
|---|
| 110 | %{python_sitearch}/gobject |
|---|
| 111 | |
|---|
| 112 | %files devel |
|---|
| 113 | %defattr(755, root, root, 755) |
|---|
| 114 | %{_bindir}/pygobject-codegen-2.0 |
|---|
| 115 | %defattr(644, root, root, 755) |
|---|
| 116 | %dir %{_datadir}/pygobject |
|---|
| 117 | %dir %{_datadir}/pygobject/2.0 |
|---|
| 118 | %dir %{_includedir}/pygtk-2.0 |
|---|
| 119 | %{_datadir}/pygobject/2.0/codegen |
|---|
| 120 | %{_datadir}/pygobject/2.0/defs |
|---|
| 121 | %{_datadir}/pygobject/xsl |
|---|
| 122 | %{_includedir}/pygtk-2.0/pyglib.h |
|---|
| 123 | %{_includedir}/pygtk-2.0/pygobject.h |
|---|
| 124 | %{_libdir}/libpyglib-2.0-python.so |
|---|
| 125 | %{_libdir}/pkgconfig/pygobject-2.0.pc |
|---|
| 126 | |
|---|
| 127 | %files doc |
|---|
| 128 | %defattr(644, root, root, 755) |
|---|
| 129 | %{_datadir}/gtk-doc/html/pygobject |
|---|
| 130 | |
|---|
| 131 | %changelog |
|---|
| 132 | * Tue May 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.28.6-4 |
|---|
| 133 | - added Patch0-10 from Debian sid |
|---|
| 134 | |
|---|
| 135 | * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.6-3 |
|---|
| 136 | - rebuild with python-2.7.2 |
|---|
| 137 | |
|---|
| 138 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.6-2 |
|---|
| 139 | - remove BuildRequires: gobject-introspection-devel |
|---|
| 140 | - change configure option --disable-introspection instead of --enable-introspection=yes |
|---|
| 141 | |
|---|
| 142 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.6-1 |
|---|
| 143 | - new upstream release |
|---|
| 144 | |
|---|
| 145 | * Tue Jun 07 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.28.4-1 |
|---|
| 146 | - update to 2.28.4 |
|---|
| 147 | |
|---|
| 148 | * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.0-1 |
|---|
| 149 | - new upstream release |
|---|
| 150 | - add BuildRequires: gobject-introspection-devel, pycairo-devel |
|---|
| 151 | - change configure option --enable-introspection=yes instead of --disable-introspection |
|---|
| 152 | |
|---|
| 153 | * Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.21.5-1 |
|---|
| 154 | - new upstream release |
|---|
| 155 | - added --disable-intropection option (it needs gobject-introspection >= 0.9) |
|---|
| 156 | - moved xsl files to devel package |
|---|
| 157 | - built with rpm-4.8.1 |
|---|
| 158 | |
|---|
| 159 | * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.21.1-1 |
|---|
| 160 | - new upstream release |
|---|
| 161 | |
|---|
| 162 | * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.0-3 |
|---|
| 163 | - build for python-2.6 |
|---|
| 164 | |
|---|
| 165 | * Wed Dec 2 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-2 |
|---|
| 166 | - added Requires: libffi-devel to devel package <BTS:830> |
|---|
| 167 | |
|---|
| 168 | * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-1 |
|---|
| 169 | - new upstream release |
|---|
| 170 | |
|---|
| 171 | * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.16.1-1 |
|---|
| 172 | - new upstream release |
|---|
| 173 | |
|---|
| 174 | * Sat Jan 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16.0-1 |
|---|
| 175 | - new upstream release |
|---|
| 176 | |
|---|
| 177 | * Sat Oct 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.4-1 |
|---|
| 178 | - new upstream release |
|---|
| 179 | |
|---|
| 180 | * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.14.2-2 |
|---|
| 181 | - rebuilt with python-2.5.2 |
|---|
| 182 | |
|---|
| 183 | * Tue May 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.2-1 |
|---|
| 184 | - new upstream release |
|---|
| 185 | - spec in UTF-8 |
|---|
| 186 | |
|---|
| 187 | * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-1vl5 |
|---|
| 188 | - rebuilt with python-2.4.5 and glib2-2.16.1 |
|---|
| 189 | - used %%{?_dist_release} macro |
|---|
| 190 | |
|---|
| 191 | * Sun Feb 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-0vl1 |
|---|
| 192 | - new upstream release |
|---|
| 193 | |
|---|
| 194 | * Sat Nov 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.0-0vl1 |
|---|
| 195 | - new upstream release |
|---|
| 196 | - dropped Patch1 (merged into upstream) |
|---|
| 197 | |
|---|
| 198 | * Thu Apr 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.3-0vl1 |
|---|
| 199 | - initial build for Vine Linux |
|---|
| 200 | |
|---|
| 201 | * Thu Apr 19 2007 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-3.fc7 |
|---|
| 202 | - Add patch for RH bug #237179 (memory leak). |
|---|
| 203 | |
|---|
| 204 | * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 2.12.3-2 |
|---|
| 205 | - rebuild against python 2.5 |
|---|
| 206 | |
|---|
| 207 | * Sat Nov 18 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-1.fc7 |
|---|
| 208 | - Update to 2.12.3 |
|---|
| 209 | |
|---|
| 210 | * Thu Oct 26 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-3.fc7 |
|---|
| 211 | - Add subpackage pygobject2-doc (bug #205231). |
|---|
| 212 | |
|---|
| 213 | * Tue Oct 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-2.fc7 |
|---|
| 214 | - Use python_sitearch instead of python_sitelib. |
|---|
| 215 | |
|---|
| 216 | * Sun Oct 15 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-1.fc7 |
|---|
| 217 | - Update to 2.12.2 |
|---|
| 218 | |
|---|
| 219 | * Sun Sep 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-3.fc6 |
|---|
| 220 | - Require glib2-devel for the -devel package. |
|---|
| 221 | |
|---|
| 222 | * Fri Sep 22 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-2.fc6 |
|---|
| 223 | - Define a python_sitelib macro for files under site_packages. |
|---|
| 224 | - Spec file cleanups. |
|---|
| 225 | |
|---|
| 226 | * Tue Sep 5 2006 Matthias Clasen <mclasen@redhat.com> - 2.12.1-1.fc6 |
|---|
| 227 | - Update to 2.12.1 |
|---|
| 228 | - Require pkgconfig for the -devel package |
|---|
| 229 | |
|---|
| 230 | * Sun Aug 27 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.4-1.fc6 |
|---|
| 231 | - Update to 2.11.4 |
|---|
| 232 | - Use pre-built docs |
|---|
| 233 | |
|---|
| 234 | * Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.3-1.fc6 |
|---|
| 235 | - Update to 2.11.3 |
|---|
| 236 | |
|---|
| 237 | * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-2.fc6 |
|---|
| 238 | - BR libxslt |
|---|
| 239 | |
|---|
| 240 | * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-1.fc6 |
|---|
| 241 | - Update to 2.11.2 |
|---|
| 242 | |
|---|
| 243 | * Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 2.11.0-2 |
|---|
| 244 | - rebuild |
|---|
| 245 | |
|---|
| 246 | * Wed Jul 12 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.0-1 |
|---|
| 247 | - Update to 2.11.0 |
|---|
| 248 | |
|---|
| 249 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.10.1-3 |
|---|
| 250 | - rebuild |
|---|
| 251 | - Add missing br libtool |
|---|
| 252 | |
|---|
| 253 | * Fri May 19 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-2 |
|---|
| 254 | - Cleanup |
|---|
| 255 | |
|---|
| 256 | * Fri May 12 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-1 |
|---|
| 257 | - Initial package |
|---|