Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWmoovida
      3 #
      4 # includes modules: moovida
      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 = moovida.spec
     17 
     18 Name:              SUNWmoovida
     19 License:           GPL v3, MIT
     20 Vendor:            Sun Microsystems, Inc.
     21 Summary:           Media center written in Python
     22 Version:           %{default_pkg_version}
     23 SUNW_BaseDir:      %{_basedir}
     24 SUNW_Copyright:    %{name}.copyright
     25 
     26 %ifnarch sparc
     27 # these packages are only available on x86
     28 BuildRoot:         %{_tmppath}/%{name}-%{version}-build
     29 
     30 %include default-depend.inc
     31 BuildRequires:     SUNWdbus-python26
     32 BuildRequires:     SUNWPython26-devel
     33 BuildRequires:     SUNWPython26-extra
     34 BuildRequires:     SUNWimagick
     35 BuildRequires:     SUNWsqlite3
     36 BuildRequires:     SUNWgnome-python26-extras
     37 BuildRequires:     SUNWlibpigment-devel
     38 BuildRequires:     SUNWpython26-simplejson
     39 BuildRequires:     SUNWpython26-pyopenssl
     40 BuildRequires:     SUNWpython26-setuptools
     41 Requires:          SUNWgnome-media
     42 Requires:          SUNWimagick
     43 Requires:          SUNWPython
     44 Requires:          SUNWsqlite3
     45 Requires:          SUNWPython26-extra
     46 Requires:          SUNWdbus-python26
     47 Requires:          SUNWgnome-python26-extras
     48 Requires:          SUNWgst-python26
     49 Requires:          SUNWlibpigment
     50 Requires:          SUNWlibpigment-python26
     51 Requires:          SUNWpython26-imaging
     52 Requires:          SUNWpython26-pyopenssl
     53 Requires:          SUNWpython26-setuptools
     54 Requires:          SUNWpython26-twisted
     55 Requires:          SUNWpython26-twisted-web2
     56 Requires:          SUNWpython26-simplejson
     57 Requires:          SUNWpython26-cssutils
     58 Requires:          SUNWdesktop-cache
     59 
     60 %description
     61 Moovida is an open source cross-platform media center solution.
     62 Moovida runs on top of the GStreamer multimedia framework and takes
     63 full advantage of harware acceleration provided by modern graphic
     64 cards by using OpenGL APIs. You can watch movies, listen to music 
     65 and view pictures with Moovida.
     66 
     67 %prep
     68 rm -rf %name-%version
     69 mkdir %name-%version
     70 %moovida.prep -d %name-%version
     71 
     72 %build
     73 export PYTHONPATH=%{_builddir}/%name-%version/elisa-%{elisa.version}:$PYTHONPATH
     74 
     75 %install
     76 rm -rf $RPM_BUILD_ROOT
     77 
     78 %moovida.install -d %name-%version
     79 export PYTHONPATH=%{_builddir}/%name-%version/elisa-%{elisa.version}:$PYTHONPATH
     80 
     81 mv $RPM_BUILD_ROOT%{_bindir}/elisa $RPM_BUILD_ROOT%{_bindir}/moovida
     82 # move to verndor-packages
     83 mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{default_python_version}/vendor-packages
     84 mv $RPM_BUILD_ROOT%{_libdir}/python%{default_python_version}/site-packages/* \
     85    $RPM_BUILD_ROOT%{_libdir}/python%{default_python_version}/vendor-packages/
     86 rmdir $RPM_BUILD_ROOT%{_libdir}/python%{default_python_version}/site-packages
     87 
     88 # Do not ship mobile desktop file.
     89 rm $RPM_BUILD_ROOT%{_datadir}/applications/moovida-mobile.desktop
     90 
     91 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     92 
     93 %clean
     94 rm -rf $RPM_BUILD_ROOT
     95 
     96 %post
     97 %restart_fmri desktop-mime-cache
     98 
     99 %postun
    100 %restart_fmri desktop-mime-cache
    101 
    102 
    103 %files
    104 %defattr(-,root,bin)
    105 %dir %attr (0755, root, bin) %{_bindir}
    106 %{_bindir}/*
    107 %dir %attr (0755, root, bin) %{_libdir}
    108 %{_libdir}/python%{default_python_version}/vendor-packages/elisa
    109 %{_libdir}/python%{default_python_version}/vendor-packages/elisa-*-py%{default_python_version}.egg-info
    110 %{_libdir}/python%{default_python_version}/vendor-packages/elisa-*-py%{default_python_version}-nspkg.pth
    111 %doc -d elisa-%{moovida.version} AUTHORS
    112 %doc(bzip2) -d elisa-%{moovida.version} COPYING README
    113 %doc(bzip2) -d elisa-%{moovida.version} LICENSE.GPL
    114 %dir %attr (0755, root, sys) %{_datadir}
    115 %dir %attr (0755, root, other) %{_datadir}/doc
    116 %dir %attr (0755, root, other) %{_datadir}/applications
    117 %{_datadir}/applications/*.desktop
    118 %dir %attr (0755, root, bin) %{_datadir}/dbus-1
    119 %dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
    120 %{_datadir}/dbus-1/services/*.service
    121 %dir %attr (0755, root, other) %{_datadir}/pixmaps
    122 %{_datadir}/pixmaps/*
    123 %dir %attr (0755, root, other) %{_datadir}/icons
    124 %{_datadir}/icons/*
    125 %dir %attr (0755, root, bin) %{_mandir}
    126 %dir %attr (0755, root, bin) %{_mandir}/man1
    127 %{_mandir}/man1/*
    128 
    129 # endif for "ifnarch sparc"
    130 %endif
    131 
    132 %changelog
    133 * Mon Oct 12 2009 - brian.cameron@sun.com
    134 - Now use %{default_python_version}.
    135 * Wed May 27 2009 - brian.cameron@sun.com
    136 - Move elisa spec files to moovida spec files.
    137 * Fri Apr  3 2009 - laca@sun.com
    138 - use desktop-cache instead of postrun
    139 * Thu Mar 05 2009 - brian.cameron@sun.com
    140 - Change SUNWdbus-bindings to SUNWdbus-python.
    141 * Wed Mar 04 2009 - li.yuan@sun.com
    142 - Change owner to liyuan and don't build this package on sparc.
    143 * Fri Jan 23 2009 - brian.cameron (at] sun.com
    144 - Remove call to gtk-update-icon-cache since elisa does not install icons to an
    145   icon theme directly, but just directly to /usr/share/icons.  Therefore, it
    146   is not necessary to update the cache.  This is only needed when installing
    147   themed icons.  Fixes bug #6796488.
    148 * Wed Dec 03 2008 - jijun.yu (at] sun.com
    149 - Change a Requires name.
    150 * Mon Dec 01 2008 - takao.fujiwara (at] sun.com
    151 - Add %elisa_plugins_bad.build
    152 * Thu Nov 20 2008 Jerry Yu <jijun.yu (at] sun.com>
    153 - Created spec.
    154