1 # 2 # spec file for package SUNWmoovida-plugins 3 # 4 # includes modules: moovida-plugins-good, moovida-plugins-bad 5 # 6 # Copyright 2009 Sun Microsystems, Inc. 7 # This file and all modifications and additions to the pristine 8 # package are under the same license as the package itself. 9 # 10 %define owner yippi 11 # 12 # bugdb: https://bugs.launchpad.net/elisa 13 # 14 %include Solaris.inc 15 16 %use moovida_plugins_good = moovida-plugins-good.spec 17 %use moovida_plugins_bad = moovida-plugins-bad.spec 18 19 Name: SUNWmoovida-plugins 20 License: GPL v3, MIT 21 Vendor: Sun Microsystems, Inc. 22 Summary: Media center plugins 23 Version: %{default_pkg_version} 24 SUNW_BaseDir: %{_basedir} 25 SUNW_Copyright: %{name}.copyright 26 27 %ifnarch sparc 28 # these packages are only available on x86 29 BuildRoot: %{_tmppath}/%{name}-%{version}-build 30 31 %include default-depend.inc 32 BuildRequires: SUNWmoovida 33 BuildRequires: SUNWdbus-python26 34 BuildRequires: SUNWPython26-devel 35 BuildRequires: SUNWPython26-extra 36 BuildRequires: SUNWimagick 37 BuildRequires: SUNWsqlite3 38 BuildRequires: SUNWgnome-python26-extras 39 BuildRequires: SUNWlibpigment-devel 40 BuildRequires: SUNWpython26-simplejson 41 BuildRequires: SUNWpython26-pyopenssl 42 BuildRequires: SUNWpython26-setuptools 43 Requires: SUNWmoovida 44 Requires: SUNWgnome-media 45 Requires: SUNWimagick 46 Requires: SUNWPython 47 Requires: SUNWsqlite3 48 Requires: SUNWPython26-extra 49 Requires: SUNWdbus-python26 50 Requires: SUNWgnome-python26-extras 51 Requires: SUNWgst-python26 52 Requires: SUNWlibpigment 53 Requires: SUNWlibpigment-python26 54 Requires: SUNWpython26-imaging 55 Requires: SUNWpython26-pyopenssl 56 Requires: SUNWpython26-setuptools 57 Requires: SUNWpython26-twisted 58 Requires: SUNWpython26-twisted-web2 59 Requires: SUNWpython26-simplejson 60 Requires: SUNWpython26-cssutils 61 Requires: SUNWdesktop-cache 62 63 %description 64 Moovida is an open source cross-platform media center solution. 65 Moovida runs on top of the GStreamer multimedia framework and takes 66 full advantage of harware acceleration provided by modern graphic 67 cards by using OpenGL APIs. You can watch movies, listen to music 68 and view pictures with Moovida. 69 70 71 %if %build_l10n 72 %package l10n 73 Summary: %{summary} - l10n files 74 SUNW_BaseDir: %{_basedir} 75 %include default-depend.inc 76 Requires: %{name} 77 %endif 78 79 %prep 80 rm -rf %name-%version 81 mkdir %name-%version 82 %moovida_plugins_good.prep -d %name-%version 83 %moovida_plugins_bad.prep -d %name-%version 84 85 %build 86 %moovida_plugins_bad.build -d %name-%version 87 88 %install 89 rm -rf $RPM_BUILD_ROOT 90 %moovida_plugins_good.install -d %name-%version 91 %moovida_plugins_bad.install -d %name-%version 92 93 # move to verndor-packages 94 mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{default_python_version}/vendor-packages 95 mv $RPM_BUILD_ROOT%{_libdir}/python%{default_python_version}/site-packages/* \ 96 $RPM_BUILD_ROOT%{_libdir}/python%{default_python_version}/vendor-packages/ 97 rmdir $RPM_BUILD_ROOT%{_libdir}/python%{default_python_version}/site-packages 98 99 100 %if %build_l10n 101 %else 102 # REMOVE l10n FILES 103 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 104 rm -rf $RPM_BUILD_ROOT%{_libdir}/python%{default_python_version}/vendor-packages/elisa/plugins/[a-z]*/i18n 105 %endif 106 107 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 108 109 %clean 110 rm -rf $RPM_BUILD_ROOT 111 112 %post 113 %restart_fmri desktop-mime-cache 114 115 %postun 116 %restart_fmri desktop-mime-cache 117 118 119 %files 120 %defattr(-,root,bin) 121 %dir %attr (0755, root, bin) %{_libdir} 122 %{_libdir}/python%{default_python_version}/vendor-packages/elisa 123 %{_libdir}/python%{default_python_version}/vendor-packages/elisa_plugin_*-py%{default_python_version}.egg-info 124 %{_libdir}/python%{default_python_version}/vendor-packages/elisa_plugin_*-py%{default_python_version}-nspkg.pth 125 %dir %attr (0755, root, sys) %{_datadir} 126 127 %if %build_l10n 128 %files l10n 129 %defattr (-, root, bin) 130 %dir %attr (0755, root, sys) %{_datadir} 131 %attr (-, root, other) %{_datadir}/locale 132 %endif 133 134 # endif for "ifnarch sparc" 135 %endif 136 137 %changelog 138 * Mon Oct 12 2009 - brian.cameron@sun.com 139 - Now use %{default_python_version}. 140 * Wed Jul 15 2009 - brian.cameron@sun.com 141 - Created. 142