| 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
|---|
| 2 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
|---|
| 3 | |
|---|
| 4 | %define majorminor 0.10 |
|---|
| 5 | %define pkg_release 2%{?_dist_release} |
|---|
| 6 | |
|---|
| 7 | Summary: Python bindings for GStreamer |
|---|
| 8 | Summary(ja): GStreamer の Python バインディング |
|---|
| 9 | Name: gstreamer-python |
|---|
| 10 | Version: 0.10.21 |
|---|
| 11 | Release: %{pkg_release} |
|---|
| 12 | Source0: http://gstreamer.freedesktop.org/src/gst-python/gst-python-%{version}.tar.bz2 |
|---|
| 13 | License: LGPLv2+ |
|---|
| 14 | Group: Development/Languages |
|---|
| 15 | URL: http://gstreamer.freedesktop.org/ |
|---|
| 16 | |
|---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 18 | BuildRequires: python, python-devel |
|---|
| 19 | BuildRequires: pygtk2-devel |
|---|
| 20 | BuildRequires: gstreamer-devel |
|---|
| 21 | BuildRequires: gstreamer-plugins-base-devel |
|---|
| 22 | BuildRequires: pygobject-devel |
|---|
| 23 | Requires: python, pygtk2 |
|---|
| 24 | Requires: gstreamer, gstreamer-plugins-base |
|---|
| 25 | |
|---|
| 26 | Vendor: Project Vine |
|---|
| 27 | Distribution: Vine Linux |
|---|
| 28 | |
|---|
| 29 | %description |
|---|
| 30 | This package contains a python bindings to the GStreamer |
|---|
| 31 | streaming-media framework. |
|---|
| 32 | |
|---|
| 33 | %description -l ja |
|---|
| 34 | このパッケージは GStreamer ストリーミングメディアフレームワーク |
|---|
| 35 | 向けの Python バインディングを含みます。 |
|---|
| 36 | |
|---|
| 37 | %package devel |
|---|
| 38 | Summary: Development environment for gstreamer-python |
|---|
| 39 | Summary(ja): gstreamer-pythonの開発環境 |
|---|
| 40 | Group: Development/Libraries |
|---|
| 41 | Requires: %{name} = %{version}-%{release} |
|---|
| 42 | Requires: pkgconfig |
|---|
| 43 | |
|---|
| 44 | %description devel |
|---|
| 45 | Header files and libraries for building a extension library for the |
|---|
| 46 | gstreamer-python. |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | %prep |
|---|
| 50 | %setup -q -n gst-python-%{version} |
|---|
| 51 | |
|---|
| 52 | %build |
|---|
| 53 | %configure |
|---|
| 54 | %{__make} %{?_smp_mflags} |
|---|
| 55 | |
|---|
| 56 | %install |
|---|
| 57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 58 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
|---|
| 59 | |
|---|
| 60 | # remove unnecessary .la files |
|---|
| 61 | find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';' |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | %clean |
|---|
| 65 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | %files |
|---|
| 69 | %defattr(-,root,root) |
|---|
| 70 | %doc AUTHORS COPYING ChangeLog INSTALL NEWS README RELEASE TODO |
|---|
| 71 | %{_libdir}/gstreamer-%{majorminor}/lib*.so |
|---|
| 72 | %{python_sitearch}/*.so |
|---|
| 73 | #%{python_sitelib}/*.py* |
|---|
| 74 | #%{python_sitelib}/pygst.p* |
|---|
| 75 | #%{python_sitelib}/gst-%{majorminor} |
|---|
| 76 | %{python_sitearch}/pygst.p* |
|---|
| 77 | %{python_sitearch}/gst-%{majorminor} |
|---|
| 78 | %{_datadir}/gst-python/%{majorminor}/defs/*.defs |
|---|
| 79 | %{_datadir}/gst-python/%{majorminor}/examples |
|---|
| 80 | |
|---|
| 81 | %files devel |
|---|
| 82 | %{_libdir}/pkgconfig/gst-python-%{majorminor}.pc |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | %changelog |
|---|
| 86 | * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.21-2 |
|---|
| 87 | - rebuild with python-2.7.2 |
|---|
| 88 | |
|---|
| 89 | * Sun Jan 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.21-1 |
|---|
| 90 | - new upstream release |
|---|
| 91 | |
|---|
| 92 | * Thu Dec 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.20-1 |
|---|
| 93 | - new upstream release |
|---|
| 94 | - create -devel sub package |
|---|
| 95 | |
|---|
| 96 | * Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.10.17-3 |
|---|
| 97 | - rebuilt with rpm-4.8.1 for pkg-config |
|---|
| 98 | |
|---|
| 99 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.10.17-2 |
|---|
| 100 | - rebuild with python-2.6 |
|---|
| 101 | |
|---|
| 102 | * Sun Nov 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.10.17-1 |
|---|
| 103 | - new upstream release |
|---|
| 104 | |
|---|
| 105 | * Sun Aug 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.10.14-1 |
|---|
| 106 | - new upstream release |
|---|
| 107 | |
|---|
| 108 | * Wed Dec 31 2008 Shu KONNO <owa@bg.wakwak.com> 0.10.13-2 |
|---|
| 109 | - changed python-lib directory to %%{python_sitearch} |
|---|
| 110 | |
|---|
| 111 | * Sat Dec 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.13-1 |
|---|
| 112 | - initial build for Vine Linux |
|---|
| 113 | |
|---|