specs/SUNWpython26-coherence.spec
author Jon Tibble <meths@btinternet.com>
Sat Oct 06 16:11:50 2012 +0100 (2012-10-06)
branchs11express-2010-11
changeset 22109 db10202d5f6d
child 20331 1fbf1bd5cf15
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
     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 IPS_package_name:       library/python-2/coherence-26
    24 Meta(info.classification): %{classification_prefix}:Development/Python
    25 Summary:                DLNA/UPnP framework for the digital living
    26 URL:                    %{coherence.url}
    27 License:		MIT
    28 SUNW_Copyright:         SUNWpython26-coherence.copyright
    29 Version:                %{coherence.version}
    30 Source1:                coherence.xml
    31 Source2:                coherence.conf
    32 Source3:                coherence
    33 Source4:                %{name}-manpages-0.1.tar.gz
    34 Patch1:                 coherence-01-youtubedl.diff
    35 SUNW_BaseDir:           %{_basedir}
    36 BuildRoot:              %{_tmppath}/%{name}-%{version}-build
    37 
    38 %include default-depend.inc
    39 Requires:               SUNWPython26
    40 Requires:               SUNWpython26-twisted
    41 Requires:               SUNWpython26-zope-interface
    42 BuildRequires:          SUNWPython26-devel
    43 BuildRequires:          SUNWpython26-setuptools
    44 
    45 %package root
    46 Summary:                 %{summary} - / filesystem
    47 SUNW_BaseDir:            /
    48 %include default-depend.inc
    49 
    50 %prep
    51 rm -rf %name-%version
    52 mkdir -p %name-%version
    53 %coherence.prep -d %name-%version
    54 cd %{_builddir}/%name-%version
    55 gzcat %{SOURCE4} | tar xf -
    56 
    57 %patch1 -p1
    58 
    59 %build
    60 export PYTHON="/usr/bin/python%{pythonver}"
    61 export CFLAGS="%optflags -I/usr/xpg4/include -I%{_includedir} -I/usr/include/python%{pythonver}"
    62 export RPM_OPT_FLAGS="$CFLAGS"
    63 export LDFLAGS="%_ldflags"
    64 export PYCC_CC="$CC"
    65 export PYCC_CXX="$CXX"
    66 %coherence.build -d %name-%version
    67 
    68 %install
    69 rm -rf $RPM_BUILD_ROOT
    70 %coherence.install -d %name-%version
    71 
    72 # install man page
    73 rm -rf $RPM_BUILD_ROOT%{_mandir}
    74 cd %{_builddir}/%name-%version/sun-manpages
    75 make install DESTDIR=$RPM_BUILD_ROOT
    76 
    77 # Install SMF related files.
    78 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/svc/manifest/application
    79 mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/coherence
    80 mkdir -p $RPM_BUILD_ROOT/lib/svc/method
    81 
    82 install -c -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_localstatedir}/svc/manifest/application/
    83 install -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_localstatedir}/coherence/
    84 install -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT/lib/svc/method/
    85 
    86 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    87 
    88 %clean
    89 rm -rf $RPM_BUILD_ROOT
    90 
    91 %if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1)
    92 %iclass manifest -f i.manifest
    93 %endif
    94 
    95 %files
    96 %defattr (-, root, bin)
    97 %doc(bzip2) -d Coherence-%version LICENCE NEWS ChangeLog
    98 %dir %attr (0755, root, other) %{_datadir}/doc
    99 %dir %attr (0755, root, bin) %{_datadir}/dbus-1
   100 %dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
   101 %{_datadir}/dbus-1/services/org.Coherence.service
   102 %dir %attr (0755, root, bin) %{_bindir}
   103 %{_bindir}/*
   104 %dir %attr (0755, root, bin) %{_libdir}
   105 %{_libdir}/python%{pythonver}/vendor-packages
   106 %dir %attr (0755, root, sys) %{_datadir}
   107 %dir %attr(0755, root, bin) %{_mandir}
   108 %dir %attr(0755, root, bin) %{_mandir}/*
   109 %{_mandir}/*/*
   110 
   111 %files root
   112 %defattr (-, root, bin)
   113 %dir %attr (0755, root, sys)  %{_localstatedir}
   114 %dir %attr (0755, root, sys)  %{_localstatedir}/svc
   115 %dir %attr (0755, root, sys)  %{_localstatedir}/svc/manifest
   116 %dir %attr (0755, root, sys)  %{_localstatedir}/svc/manifest/application
   117 %class(manifest) %attr (0444, root, sys) %{_localstatedir}/svc/manifest/application/coherence.xml
   118 %attr (0555, root, bin) /lib/svc/method/coherence
   119 %dir %attr (0755, upnp, upnp) %{_localstatedir}/coherence
   120 %attr (0644, upnp, upnp) %{_localstatedir}/coherence/coherence.conf
   121 
   122 %changelog
   123 * Wen Jan 01 2010 - yuntong.jin@sun.com
   124 - Bump to 0.6.6.2, del upstream patch: coherence-01-appletrailers-storage.diff 
   125 * Thu Dec 03 2009 - yuntong.jin@sun.com
   126 - Add dependency
   127 * Wen Dec 02 2009 - yuntong.jin@sun.com
   128 - Fixed appletrailer backend is broken issue 
   129 * Wen Oct 21 2009 - yuntong.jin@sun.com
   130 - Fixed doo bug 11433
   131 * Tue Sep 29 2009 - dave.lin@sun.com
   132 - Fixed file attribute issue.
   133 * Fri Sep 17 2009 - brian.lu@sun.com
   134 - Add support to ship org.Coherence.service fil
   135 * Thu Aug 27 2009 - yuntong.jin@sun.com
   136 - change owner to jouby, add license info
   137 * Fri Mar 06 2009 - alfred.peng@sun.com
   138 - Create SFEpython24-coherence.spec and coherence.spec to replace
   139   SFEcoherence.spec.
   140 * Mon Mar 02 2009 - alfred.peng@sun.com
   141 - Bump to 0.6.2. Remove the upstream patch path-blank.diff.
   142 * Mon Feb 16 2009 - alfred.peng@sun.com
   143 - Add patch path-blank.diff to fix packaging problem.
   144   Bump to 0.6.0.
   145 * Thu Oct 09 2008 - jijun.yu@sun.com
   146 - Initial version.