author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 15833 | 7f9243acbaba |
permissions | -rw-r--r-- |
11818 | 1 |
# |
2 |
# spec file for package SUNWgst-python |
|
3 |
# |
|
15213 | 4 |
# Copyright 2009 Sun Microsystems, Inc. |
11818 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner yippi |
11818 | 9 |
# |
10 |
%include Solaris.inc |
|
11 |
||
14644 | 12 |
%define pythonver 2.4 |
13 |
%use gstp = gst-python.spec |
|
14 |
||
11818 | 15 |
Name: SUNWgst-python |
15324 | 16 |
Summary: Python %{pythonver} bindings for the GStreamer streaming media framework |
14644 | 17 |
URL: %{gstp.url} |
18 |
Version: %{gstp.version} |
|
11818 | 19 |
SUNW_BaseDir: %{_basedir} |
12114 | 20 |
SUNW_Copyright: %{name}.copyright |
11818 | 21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
14644 | 22 |
%include default-depend.inc |
15650 | 23 |
Requires: SUNWglib2 |
11818 | 24 |
Requires: SUNWPython |
11875 | 25 |
Requires: SUNWgnome-python-libs |
26 |
Requires: SUNWgnome-media |
|
15650 | 27 |
BuildRequires: SUNWglib2-devel |
11875 | 28 |
BuildRequires: SUNWgnome-python-libs-devel |
29 |
BuildRequires: SUNWgnome-media-devel |
|
14933 | 30 |
BuildRequires: SUNWpython-setuptools |
11818 | 31 |
|
14644 | 32 |
%package devel |
33 |
Summary: %{summary} - development files |
|
34 |
SUNW_BaseDir: %{_basedir} |
|
11818 | 35 |
%include default-depend.inc |
14644 | 36 |
Requires: %{name} |
15351 | 37 |
# the 2.6 devel package is required because it contains the headers |
38 |
# (they are not duplicated in this package, since they would be identical) |
|
39 |
Requires: SUNWgst-python26-devel |
|
15833
7f9243acbaba
fix dependency issue(CR6843511, 6843654, 6843579, 6843587, 6843581, 6845023, 6843582)
davelam
parents:
15746
diff
changeset
|
40 |
Requires: SUNWgnome-python-libs-devel |
11818 | 41 |
|
42 |
%prep |
|
14644 | 43 |
rm -rf %name-%version |
44 |
mkdir -p %name-%version |
|
45 |
%gstp.prep -d %name-%version |
|
11818 | 46 |
|
47 |
%build |
|
15213 | 48 |
export PYTHON=/usr/bin/python%{pythonver} |
49 |
export PKG_CONFIG_PATH=/usr/lib/python%{pythonver}/pkgconfig |
|
14926 | 50 |
%gstp.build -d %name-%version |
11818 | 51 |
|
52 |
%install |
|
53 |
rm -rf $RPM_BUILD_ROOT |
|
14926 | 54 |
%gstp.install -d %name-%version |
11818 | 55 |
|
15746 | 56 |
# included in SUNWgst-python26-devel |
14644 | 57 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gst-python |
15746 | 58 |
rm -r $RPM_BUILD_ROOT%{_libdir}/gstreamer-0.10/libgstpython.so |
59 |
rmdir $RPM_BUILD_ROOT%{_libdir}/gstreamer-0.10 |
|
11818 | 60 |
|
15746 | 61 |
# move to subdir to avoid conflict with python 2.6 |
14644 | 62 |
mv $RPM_BUILD_ROOT%{_libdir}/pkgconfig \ |
63 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/ |
|
12826 | 64 |
|
11818 | 65 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
66 |
||
67 |
%clean |
|
68 |
rm -rf $RPM_BUILD_ROOT |
|
69 |
||
70 |
%files |
|
71 |
%defattr (-, root, bin) |
|
72 |
%dir %attr (0755, root, bin) %{_libdir} |
|
73 |
%{_libdir}/python%{pythonver}/vendor-packages/gst-0.10/* |
|
74 |
%{_libdir}/python%{pythonver}/vendor-packages/pygst.pth |
|
75 |
%{_libdir}/python%{pythonver}/vendor-packages/pygst.py |
|
12826 | 76 |
%{_libdir}/python%{pythonver}/vendor-packages/*.so |
14926 | 77 |
%doc -d gst-python-%{gstp.version} AUTHORS |
78 |
%doc -d gst-python-%{gstp.version} README |
|
79 |
%doc(bzip2) -d gst-python-%{gstp.version} COPYING |
|
80 |
%doc(bzip2) -d gst-python-%{gstp.version} ChangeLog |
|
81 |
%doc(bzip2) -d gst-python-%{gstp.version} NEWS |
|
82 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
14644 | 83 |
%dir %attr (0755, root, sys) %{_datadir} |
11818 | 84 |
|
14644 | 85 |
%files devel |
86 |
%defattr (-, root, bin) |
|
14926 | 87 |
%dir %attr (0755, root, bin) %{_libdir} |
15225 | 88 |
%dir %attr (0755, root, other) %{_libdir}/python%{pythonver}/pkgconfig |
14644 | 89 |
%{_libdir}/python%{pythonver}/pkgconfig/* |
90 |
||
11818 | 91 |
%changelog |
15833
7f9243acbaba
fix dependency issue(CR6843511, 6843654, 6843579, 6843587, 6843581, 6845023, 6843582)
davelam
parents:
15746
diff
changeset
|
92 |
* Tue Jun 02 2009 - [email protected] |
7f9243acbaba
fix dependency issue(CR6843511, 6843654, 6843579, 6843587, 6843581, 6845023, 6843582)
davelam
parents:
15746
diff
changeset
|
93 |
- fixed dependency issue(CR6843582). |
15213 | 94 |
* Tue Feb 24 2009 - [email protected] |
95 |
- set PYTHON and PKG_CONFIG_PATH so the correct python version and |
|
96 |
dependencies are picked up |
|
14644 | 97 |
* Mon Nov 24 2008 - [email protected] |
98 |
- update to use base spec file |
|
99 |
- add devel pkg |
|
100 |
- move pkgconfig files under /usr/lib/python2.4 |
|
14454 | 101 |
* Mon Oct 13 2008 - [email protected] |
102 |
- Bump to 0.10.13. Remove upstream patch gst-python-01-pipelinetester.diff. |
|
13570 | 103 |
* Fri Sep 12 2008 - [email protected] |
104 |
- Update copyright |
|
12826 | 105 |
* Wed Jul 16 2008 - [email protected] |
106 |
- Update %files for newly delivered library. |
|
12706 | 107 |
* Thu Jun 19 2008 - [email protected] |
108 |
- Bump to 0.10.12. |
|
11886 | 109 |
* Thu Mar 20 2008 - [email protected] |
110 |
- Bump to 0.10.11. |
|
11875 | 111 |
* Tue Mar 18 2008 - [email protected] |
112 |
- Add Build/Requires for SUNWgnome-python-libs and SUNWgnome-media. |
|
11818 | 113 |
* Tue Feb 12 2008 - [email protected] |
114 |
- initial version |
|
14454 | 115 |