Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWpython26-coherence
      3 #
      4 # includes module(s): coherence
      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 # bugdb: http://coherence.beebits.net/ticket/$bugid
     11 %define owner jouby
     12 #
     13 
     14 %include Solaris.inc
     15 
     16 %define pythonver 2.6
     17 %define src_url         http://coherence.beebits.net/download
     18 %define src_name        Coherence
     19 
     20 %use coherence = coherence.spec
     21 
     22 Name:                   SUNWpython26-coherence
     23 Summary:                DLNA/UPnP framework for the digital living
     24 URL:                    %{coherence.url}
     25 License:		MIT
     26 SUNW_Copyright:         SUNWpython-coherence.copyright
     27 Version:                %{coherence.version}
     28 Source1:                coherence.xml
     29 Source2:                coherence.conf
     30 Source3:                coherence
     31 Source4:                %{name}-manpages-0.1.tar.gz
     32 SUNW_BaseDir:           %{_basedir}
     33 BuildRoot:              %{_tmppath}/%{name}-%{version}-build
     34 
     35 %include default-depend.inc
     36 Requires:               SUNWPython
     37 BuildRequires:          SUNWPython-devel
     38 BuildRequires:          SUNWpython-setuptools
     39 
     40 %package root
     41 Summary:                 %{summary} - / filesystem
     42 SUNW_BaseDir:            /
     43 %include default-depend.inc
     44 
     45 %prep
     46 rm -rf %name-%version
     47 mkdir -p %name-%version
     48 %coherence.prep -d %name-%version
     49 cd %{_builddir}/%name-%version
     50 gzcat %{SOURCE4} | tar xf -
     51 
     52 %build
     53 export PYTHON="/usr/bin/python%{pythonver}"
     54 export CFLAGS="%optflags -I/usr/xpg4/include -I%{_includedir} -I/usr/include/python%{pythonver}"
     55 export RPM_OPT_FLAGS="$CFLAGS"
     56 export LDFLAGS="%_ldflags"
     57 export PYCC_CC="$CC"
     58 export PYCC_CXX="$CXX"
     59 %coherence.build -d %name-%version
     60 
     61 %install
     62 rm -rf $RPM_BUILD_ROOT
     63 %coherence.install -d %name-%version
     64 
     65 # install man page
     66 rm -rf $RPM_BUILD_ROOT%{_mandir}
     67 cd %{_builddir}/%name-%version/sun-manpages
     68 make install DESTDIR=$RPM_BUILD_ROOT
     69 
     70 # Install SMF related files.
     71 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/svc/manifest/application
     72 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/coherence
     73 mkdir -p $RPM_BUILD_ROOT/lib/svc/method
     74 
     75 install -c -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_localstatedir}/svc/manifest/application/
     76 install -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_localstatedir}/coherence/
     77 install -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT/lib/svc/method/
     78 
     79 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     80 
     81 %clean
     82 rm -rf $RPM_BUILD_ROOT
     83 
     84 %if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1)
     85 %iclass manifest -f i.manifest
     86 %endif
     87 
     88 %files
     89 %defattr (-, root, bin)
     90 %doc(bzip2) -d Coherence-%version LICENCE NEWS ChangeLog
     91 %dir %attr (0755, root, other) %{_datadir}/doc
     92 %dir %attr (0755, root, bin) %{_datadir}/dbus-1
     93 %dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
     94 %{_datadir}/dbus-1/services/org.Coherence.service
     95 %dir %attr (0755, root, bin) %{_bindir}
     96 %{_bindir}/*
     97 %dir %attr (0755, root, bin) %{_libdir}
     98 %{_libdir}/python%{pythonver}/vendor-packages
     99 %dir %attr (0755, root, sys) %{_datadir}
    100 %dir %attr(0755, root, bin) %{_mandir}
    101 %dir %attr(0755, root, bin) %{_mandir}/*
    102 %{_mandir}/*/*
    103 
    104 %files root
    105 %defattr (-, root, bin)
    106 %dir %attr (0755, root, sys)  %{_localstatedir}
    107 %dir %attr (0755, root, sys)  %{_localstatedir}/svc
    108 %dir %attr (0755, root, sys)  %{_localstatedir}/svc/manifest
    109 %dir %attr (0755, root, sys)  %{_localstatedir}/svc/manifest/application
    110 %class(manifest) %attr (0444, root, sys) %{_localstatedir}/svc/manifest/application/coherence.xml
    111 %attr (0555, root, bin) /lib/svc/method/coherence
    112 %dir %attr (0755, upnp, upnp) %{_localstatedir}/coherence
    113 %attr (0644, upnp, upnp) %{_localstatedir}/coherence/coherence.conf
    114 
    115 %changelog
    116 * Wen Oct 21 2009 - yuntong.jin@sun.com
    117 - Fixed doo bug 11433
    118 * Tue Sep 29 2009 - dave.lin@sun.com
    119 - Fixed file attribute issue.
    120 * Fri Sep 17 2009 - brian.lu@sun.com
    121 - Add support to ship org.Coherence.service fil
    122 * Thu Aug 27 2009 - yuntong.jin@sun.com
    123 - change owner to jouby, add license info
    124 * Fri Mar 06 2009 - alfred.peng@sun.com
    125 - Create SFEpython24-coherence.spec and coherence.spec to replace
    126   SFEcoherence.spec.
    127 * Mon Mar 02 2009 - alfred.peng@sun.com
    128 - Bump to 0.6.2. Remove the upstream patch path-blank.diff.
    129 * Mon Feb 16 2009 - alfred.peng@sun.com
    130 - Add patch path-blank.diff to fix packaging problem.
    131   Bump to 0.6.0.
    132 * Thu Oct 09 2008 - jijun.yu@sun.com
    133 - Initial version.
    134