[521] | 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 |
---|
[2323] | 5 | %define pkg_release 1%{?_dist_release} |
---|
[521] | 6 | |
---|
| 7 | Summary: Python bindings for GStreamer |
---|
| 8 | Summary(ja): GStreamer の Python バインディング |
---|
| 9 | Name: gstreamer-python |
---|
[2547] | 10 | Version: 0.10.21 |
---|
[521] | 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 | |
---|
[2323] | 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 | |
---|
[521] | 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 |
---|
[2323] | 80 | |
---|
| 81 | %files devel |
---|
[521] | 82 | %{_libdir}/pkgconfig/gst-python-%{majorminor}.pc |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %changelog |
---|
[2547] | 86 | * Sun Jan 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.21-1 |
---|
| 87 | - new upstream release |
---|
| 88 | |
---|
[2323] | 89 | * Thu Dec 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.20-1 |
---|
| 90 | - new upstream release |
---|
| 91 | - create -devel sub package |
---|
| 92 | |
---|
[1979] | 93 | * Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.10.17-3 |
---|
| 94 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 95 | |
---|
[521] | 96 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.10.17-2 |
---|
| 97 | - rebuild with python-2.6 |
---|
| 98 | |
---|
| 99 | * Sun Nov 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.10.17-1 |
---|
| 100 | - new upstream release |
---|
| 101 | |
---|
| 102 | * Sun Aug 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.10.14-1 |
---|
| 103 | - new upstream release |
---|
| 104 | |
---|
| 105 | * Wed Dec 31 2008 Shu KONNO <owa@bg.wakwak.com> 0.10.13-2 |
---|
| 106 | - changed python-lib directory to %%{python_sitearch} |
---|
| 107 | |
---|
| 108 | * Sat Dec 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.13-1 |
---|
| 109 | - initial build for Vine Linux |
---|
| 110 | |
---|