| 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.4 |
|---|
| 7 | Release: 1%{?_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.bz2 |
|---|
| 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 | |
|---|
| 23 | Vendor: Project Vine |
|---|
| 24 | Distribution: Vine Linux |
|---|
| 25 | Packager: daisuke |
|---|
| 26 | |
|---|
| 27 | %description |
|---|
| 28 | pygobject provides a convenient wrapper for the GObject library |
|---|
| 29 | for use in Python programs. |
|---|
| 30 | |
|---|
| 31 | %package devel |
|---|
| 32 | Summary: Development files for building add-on libraries |
|---|
| 33 | Group: Development/Libraries |
|---|
| 34 | Requires: pygobject = %{version}-%{release} |
|---|
| 35 | #Requires: pygobject-doc = %{version}-%{release} |
|---|
| 36 | Requires: glib2-devel |
|---|
| 37 | Requires: libffi-devel |
|---|
| 38 | Requires: pkgconfig |
|---|
| 39 | |
|---|
| 40 | %description devel |
|---|
| 41 | This package contains files required to build wrappers for |
|---|
| 42 | pygobject-based libraries such as pygtk2. |
|---|
| 43 | |
|---|
| 44 | %package doc |
|---|
| 45 | Summary: Documentation files for pygobject |
|---|
| 46 | Group: Documentation |
|---|
| 47 | |
|---|
| 48 | %description doc |
|---|
| 49 | This package contains documentation files for pygobject. |
|---|
| 50 | |
|---|
| 51 | %prep |
|---|
| 52 | %setup -q |
|---|
| 53 | |
|---|
| 54 | %build |
|---|
| 55 | # --disable-docs doesn't work; it builds the docs anyway. |
|---|
| 56 | %configure \ |
|---|
| 57 | --enable-silent-rules \ |
|---|
| 58 | --disable-static \ |
|---|
| 59 | --enable-thread \ |
|---|
| 60 | --enable-introspection=yes \ |
|---|
| 61 | --disable-docs |
|---|
| 62 | export tagname=CC |
|---|
| 63 | make LIBTOOL=/usr/bin/libtool |
|---|
| 64 | |
|---|
| 65 | %install |
|---|
| 66 | rm -rf $RPM_BUILD_ROOT |
|---|
| 67 | export tagname=CC |
|---|
| 68 | make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 69 | find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f |
|---|
| 70 | |
|---|
| 71 | rm -f examples/Makefile* |
|---|
| 72 | |
|---|
| 73 | %clean |
|---|
| 74 | rm -fr $RPM_BUILD_ROOT |
|---|
| 75 | |
|---|
| 76 | %files |
|---|
| 77 | %defattr(644, root, root, 755) |
|---|
| 78 | %doc AUTHORS NEWS README ChangeLog |
|---|
| 79 | %doc examples |
|---|
| 80 | |
|---|
| 81 | %{_libdir}/libpyglib-2.0-python.so.* |
|---|
| 82 | %dir %{python_sitearch}/gtk-2.0 |
|---|
| 83 | %{python_sitearch}/gtk-2.0/dsextras.* |
|---|
| 84 | %{python_sitearch}/pygtk.* |
|---|
| 85 | |
|---|
| 86 | %defattr(755, root, root, 755) |
|---|
| 87 | %{python_sitearch}/gtk-2.0/gio |
|---|
| 88 | %{python_sitearch}/glib |
|---|
| 89 | %{python_sitearch}/gobject |
|---|
| 90 | %{python_sitearch}/gi |
|---|
| 91 | |
|---|
| 92 | %files devel |
|---|
| 93 | %defattr(755, root, root, 755) |
|---|
| 94 | %{_bindir}/pygobject-codegen-2.0 |
|---|
| 95 | %defattr(644, root, root, 755) |
|---|
| 96 | %dir %{_datadir}/pygobject |
|---|
| 97 | %dir %{_datadir}/pygobject/2.0 |
|---|
| 98 | %dir %{_includedir}/pygtk-2.0 |
|---|
| 99 | %{_datadir}/pygobject/2.0/codegen |
|---|
| 100 | %{_datadir}/pygobject/2.0/defs |
|---|
| 101 | %{_datadir}/pygobject/xsl |
|---|
| 102 | %{_includedir}/pygtk-2.0/pyglib.h |
|---|
| 103 | %{_includedir}/pygtk-2.0/pygobject.h |
|---|
| 104 | %{_libdir}/libpyglib-2.0-python.so |
|---|
| 105 | %{_libdir}/pkgconfig/pygobject-2.0.pc |
|---|
| 106 | |
|---|
| 107 | %files doc |
|---|
| 108 | %defattr(644, root, root, 755) |
|---|
| 109 | %{_datadir}/gtk-doc/html/pygobject |
|---|
| 110 | |
|---|
| 111 | %changelog |
|---|
| 112 | * Tue Jun 07 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.28.4-1 |
|---|
| 113 | - update to 2.28.4 |
|---|
| 114 | |
|---|
| 115 | * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.0-1 |
|---|
| 116 | - new upstream release |
|---|
| 117 | - add BuildRequires: gobject-introspection-devel, pycairo-devel |
|---|
| 118 | - change configure option --enable-introspection=yes instead of --disable-introspection |
|---|
| 119 | |
|---|
| 120 | * Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.21.5-1 |
|---|
| 121 | - new upstream release |
|---|
| 122 | - added --disable-intropection option (it needs gobject-introspection >= 0.9) |
|---|
| 123 | - moved xsl files to devel package |
|---|
| 124 | - built with rpm-4.8.1 |
|---|
| 125 | |
|---|
| 126 | * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.21.1-1 |
|---|
| 127 | - new upstream release |
|---|
| 128 | |
|---|
| 129 | * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.0-3 |
|---|
| 130 | - build for python-2.6 |
|---|
| 131 | |
|---|
| 132 | * Wed Dec 2 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-2 |
|---|
| 133 | - added Requires: libffi-devel to devel package <BTS:830> |
|---|
| 134 | |
|---|
| 135 | * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.0-1 |
|---|
| 136 | - new upstream release |
|---|
| 137 | |
|---|
| 138 | * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.16.1-1 |
|---|
| 139 | - new upstream release |
|---|
| 140 | |
|---|
| 141 | * Sat Jan 17 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.16.0-1 |
|---|
| 142 | - new upstream release |
|---|
| 143 | |
|---|
| 144 | * Sat Oct 04 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.15.4-1 |
|---|
| 145 | - new upstream release |
|---|
| 146 | |
|---|
| 147 | * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.14.2-2 |
|---|
| 148 | - rebuilt with python-2.5.2 |
|---|
| 149 | |
|---|
| 150 | * Tue May 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.2-1 |
|---|
| 151 | - new upstream release |
|---|
| 152 | - spec in UTF-8 |
|---|
| 153 | |
|---|
| 154 | * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-1vl5 |
|---|
| 155 | - rebuilt with python-2.4.5 and glib2-2.16.1 |
|---|
| 156 | - used %%{?_dist_release} macro |
|---|
| 157 | |
|---|
| 158 | * Sun Feb 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.1-0vl1 |
|---|
| 159 | - new upstream release |
|---|
| 160 | |
|---|
| 161 | * Sat Nov 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14.0-0vl1 |
|---|
| 162 | - new upstream release |
|---|
| 163 | - dropped Patch1 (merged into upstream) |
|---|
| 164 | |
|---|
| 165 | * Thu Apr 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.3-0vl1 |
|---|
| 166 | - initial build for Vine Linux |
|---|
| 167 | |
|---|
| 168 | * Thu Apr 19 2007 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-3.fc7 |
|---|
| 169 | - Add patch for RH bug #237179 (memory leak). |
|---|
| 170 | |
|---|
| 171 | * Thu Dec 7 2006 Jeremy Katz <katzj@redhat.com> - 2.12.3-2 |
|---|
| 172 | - rebuild against python 2.5 |
|---|
| 173 | |
|---|
| 174 | * Sat Nov 18 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.3-1.fc7 |
|---|
| 175 | - Update to 2.12.3 |
|---|
| 176 | |
|---|
| 177 | * Thu Oct 26 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-3.fc7 |
|---|
| 178 | - Add subpackage pygobject2-doc (bug #205231). |
|---|
| 179 | |
|---|
| 180 | * Tue Oct 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-2.fc7 |
|---|
| 181 | - Use python_sitearch instead of python_sitelib. |
|---|
| 182 | |
|---|
| 183 | * Sun Oct 15 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.2-1.fc7 |
|---|
| 184 | - Update to 2.12.2 |
|---|
| 185 | |
|---|
| 186 | * Sun Sep 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-3.fc6 |
|---|
| 187 | - Require glib2-devel for the -devel package. |
|---|
| 188 | |
|---|
| 189 | * Fri Sep 22 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-2.fc6 |
|---|
| 190 | - Define a python_sitelib macro for files under site_packages. |
|---|
| 191 | - Spec file cleanups. |
|---|
| 192 | |
|---|
| 193 | * Tue Sep 5 2006 Matthias Clasen <mclasen@redhat.com> - 2.12.1-1.fc6 |
|---|
| 194 | - Update to 2.12.1 |
|---|
| 195 | - Require pkgconfig for the -devel package |
|---|
| 196 | |
|---|
| 197 | * Sun Aug 27 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.4-1.fc6 |
|---|
| 198 | - Update to 2.11.4 |
|---|
| 199 | - Use pre-built docs |
|---|
| 200 | |
|---|
| 201 | * Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.3-1.fc6 |
|---|
| 202 | - Update to 2.11.3 |
|---|
| 203 | |
|---|
| 204 | * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-2.fc6 |
|---|
| 205 | - BR libxslt |
|---|
| 206 | |
|---|
| 207 | * Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-1.fc6 |
|---|
| 208 | - Update to 2.11.2 |
|---|
| 209 | |
|---|
| 210 | * Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 2.11.0-2 |
|---|
| 211 | - rebuild |
|---|
| 212 | |
|---|
| 213 | * Wed Jul 12 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.0-1 |
|---|
| 214 | - Update to 2.11.0 |
|---|
| 215 | |
|---|
| 216 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.10.1-3 |
|---|
| 217 | - rebuild |
|---|
| 218 | - Add missing br libtool |
|---|
| 219 | |
|---|
| 220 | * Fri May 19 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-2 |
|---|
| 221 | - Cleanup |
|---|
| 222 | |
|---|
| 223 | * Fri May 12 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-1 |
|---|
| 224 | - Initial package |
|---|