[521] | 1 | #%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | %define real_name sexy-python |
---|
| 3 | Name: python-sexy |
---|
| 4 | Version: 0.1.9 |
---|
| 5 | Release: 4%{?_dist_release} |
---|
| 6 | |
---|
| 7 | Summary: Python bindings to libsexy |
---|
| 8 | Summary(ja): libsexy の Python バインディング |
---|
| 9 | |
---|
| 10 | Group: System Environment/Libraries |
---|
| 11 | License: LGPL |
---|
| 12 | URL: http://www.chipx86.com/wiki/Libsexy |
---|
| 13 | Source0: http://releases.chipx86.com/libsexy/sexy-python/sexy-python-%{version}.tar.gz |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 15 | |
---|
| 16 | BuildRequires: libsexy-devel >= 0.1.10 |
---|
| 17 | BuildRequires: python-devel >= 2 |
---|
| 18 | BuildRequires: pygtk2-devel >= 2.8.0 |
---|
| 19 | BuildRequires: libxml2-devel |
---|
| 20 | Requires: libsexy >= 0.1.10 |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | sexy-python is a set of Python bindings around libsexy. |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | %prep |
---|
| 27 | %setup -q -n %{real_name}-%{version} |
---|
| 28 | |
---|
| 29 | %build |
---|
| 30 | %configure --enable-docs |
---|
| 31 | make %{?_smp_mflags} |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | %install |
---|
| 35 | rm -rf $RPM_BUILD_ROOT |
---|
| 36 | make DESTDIR=${RPM_BUILD_ROOT} install |
---|
| 37 | find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %clean |
---|
| 41 | rm -rf $RPM_BUILD_ROOT |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | %files |
---|
| 46 | %defattr(-, root, root, -) |
---|
| 47 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
| 48 | %{python_sitearch}/gtk-2.0/sexy.so |
---|
| 49 | %{_datadir}/pygtk/2.0/defs/sexy.defs |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %changelog |
---|
| 54 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.9-4 |
---|
| 55 | - rebuild with python-2.6 |
---|
| 56 | |
---|
| 57 | * Sat Jun 06 2009 Shu KONNO <owa@bg.wakwak.com> 0.1.9-3 |
---|
| 58 | - spec in utf-8 |
---|
| 59 | - chmod -x spec-file |
---|
| 60 | - use rpm macro: system python_sitearch |
---|
| 61 | |
---|
| 62 | * Wed Jul 23 2008 Shu KONNO <owa@bg.wakwak.com> 0.1.9-2 |
---|
| 63 | - rebuilt with python-2.5.2 |
---|
| 64 | |
---|
| 65 | * Wed Jun 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.9-1 |
---|
| 66 | - initial build for Vine Linux |
---|
| 67 | |
---|
| 68 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.1.9-5 |
---|
| 69 | - Autorebuild for GCC 4.3 |
---|
| 70 | |
---|
| 71 | * Fri May 04 2007 Ha誰kel Gu辿mar <karlthered@gmail.com> - 0.1.9-4 |
---|
| 72 | - Rebuild on ppc64 |
---|
| 73 | |
---|
| 74 | * Sat Dec 23 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.1.9-3 |
---|
| 75 | - Rebuild with Python 2.5. |
---|
| 76 | |
---|
| 77 | * Thu Oct 26 2006 Ha誰kel Gu辿mar <karlthered@gmail.com> - 0.1.9-2 |
---|
| 78 | - fixed requires that asked libsexy-devel instead of libsexy. |
---|
| 79 | |
---|
| 80 | * Tue Oct 17 2006 Ha誰kel Gu辿mar <karlthered@gmail.com> - 0.1.9-1 |
---|
| 81 | - updated to 0.1.9, license file issue has been fixed upstream |
---|
| 82 | |
---|
| 83 | * Tue Sep 12 2006 Ha誰kel Gu辿mar <karlthered@gmail.com> - 0.1.8-5 |
---|
| 84 | - rebuild for FC6 |
---|
| 85 | |
---|
| 86 | * Thu Aug 17 2006 Ha誰kel Gu辿mar <karlthered@gmail.com> - 0.1.8-4 |
---|
| 87 | - Added quiet extraction of source tarball, some cleaning to the spec file |
---|
| 88 | |
---|
| 89 | * Sun Aug 13 2006 Ha誰kel Gu辿mar <karlthered@gmail.com> - 0.1.8-3 |
---|
| 90 | - fixed some rpmlint issues, add a patch to correct the license file |
---|
| 91 | |
---|
| 92 | * Fri May 26 2006 Ha誰kel Gu辿mar <karlthered@gmail.com> - 0.1.8-2 |
---|
| 93 | - Some cleaning to the spec file |
---|
| 94 | |
---|
| 95 | * Mon May 22 2006 Karl <karlthered@gmail.com> - 0.1.8-1 |
---|
| 96 | - First Packaging |
---|