Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWdbus-python24
      3 #
      4 # includes module(s): dbus-python
      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 # bugdb: bugzilla.freedesktop.org
     12 #
     13 %include Solaris.inc
     14 
     15 %define pythonver 2.4
     16 
     17 %include base.inc
     18 %use dbus_python = dbus-python.spec
     19 
     20 Name:                    SUNWdbus-python24
     21 Summary:                 D-Bus Python %{pythonver} bindings
     22 Version:                 %{dbus_python.version}
     23 SUNW_BaseDir:            %{_basedir}
     24 SUNW_Copyright:          %{name}.copyright
     25 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     26 %include default-depend.inc
     27 Requires:	SUNWdbus
     28 Requires:	SUNWlxml
     29 Requires:       SUNWlexpt
     30 Requires:       SUNWPython-extra
     31 Requires:       SUNWdbus-glib
     32 BuildRequires:	SUNWdbus-devel
     33 BuildRequires:	SUNWlxml
     34 BuildRequires:  SUNWPython-extra
     35 BuildRequires:  SUNWpython-setuptools
     36 BuildRequires:  SUNWdbus-glib-devel
     37 
     38 %package devel
     39 Summary:                 %{summary} - development files
     40 SUNW_BaseDir:            %{_basedir}
     41 %include default-depend.inc
     42 # the 2.6 devel package is required because it contains the headers
     43 # (they are not duplicated in this package, since they would be identical)
     44 Requires: SUNWdbus-python26-devel
     45 Requires: SUNWdbus-devel
     46 
     47 %prep
     48 rm -rf %name-%version
     49 mkdir %name-%version
     50 %dbus_python.prep -d %name-%version
     51 
     52 %build
     53 PKG_CONFIG_DISABLE_UNINSTALLED=
     54 unset PKG_CONFIG_DISABLE_UNINSTALLED
     55 export PYTHON=/usr/bin/python%{pythonver}
     56 %dbus_python.build -d %name-%version
     57 
     58 %install
     59 rm -rf $RPM_BUILD_ROOT
     60 %dbus_python.install -d %name-%version
     61 
     62 # included in SUNWgst-python26-devel
     63 rm -r $RPM_BUILD_ROOT%{_includedir}
     64 rm -r $RPM_BUILD_ROOT%{_datadir}/doc/dbus-python
     65 
     66 # move to subdir to avoid conflict with python 2.6
     67 mv $RPM_BUILD_ROOT%{_libdir}/pkgconfig \
     68    $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/
     69 
     70 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     71 
     72 %clean
     73 rm -rf $RPM_BUILD_ROOT
     74 
     75 %files
     76 %defattr (-, root, bin)
     77 %dir %attr (0755, root, bin) %{_libdir}
     78 %{_libdir}/python%{pythonver}/vendor-packages
     79 %dir %attr (0755, root, sys) %{_datadir}
     80 %doc -d dbus-python-%{dbus_python.version} AUTHORS
     81 %doc -d dbus-python-%{dbus_python.version} README
     82 %doc(bzip2) -d dbus-python-%{dbus_python.version} COPYING
     83 %doc(bzip2) -d dbus-python-%{dbus_python.version} ChangeLog
     84 %doc(bzip2) -d dbus-python-%{dbus_python.version} NEWS
     85 %dir %attr (0755, root, other) %{_datadir}/doc
     86 
     87 %files devel
     88 %defattr (-, root, bin)
     89 %dir %attr (0755, root, bin) %{_libdir}
     90 %dir %attr (0755, root, other) %{_libdir}/python%{pythonver}/pkgconfig
     91 %{_libdir}/python%{pythonver}/pkgconfig/*
     92 
     93 %changelog
     94 * Tue Jun 02 2009 - dave.lin@sun.com
     95 - fixed dependency issue(CR6843511).
     96 * Tue Mar 10 2009 - brian.cameron@sun.com
     97 - Cleanup based on code review.
     98 * Thu Mar 05 2009 - brian.cameron@sun.com
     99 - Split from SUNWdbus-bindings.spec.  Remove 64 bit support as it is not
    100   needed for the python bindings.
    101 * Wed Mar 04 2009 - dave.lin@sun.com
    102 - Add /usr/share/man/man1 in %files
    103 * Sun Sep 14 2008 - brian.cameron@sun.com
    104 - Add new copyright files.
    105 * Thu Mar 27 2008 - brian.cameron@sun.com
    106 - Add SUNW_Copyright
    107 * Tue Nov 20 2007 - brian.cameron@sun.com
    108 - Add libdbus-glib-1.3 manpage.
    109 * Fri Sep 28 2007 - laca@sun.com
    110 - convert to new style multi-ISA build
    111 - delete SUNWxwrtl dep
    112 * Sat Feb 25 2007 - dougs@truemail.co.th
    113 - updated to include 64-bit build RFE: #6480511
    114 * Fri Jan 26 2007 - damien.carbery@sun.com
    115 - Set PKG_CONFIG vars in %build because dbus-python use autofoo/configure/make
    116   process rather than setup.py.
    117 * Thu Jan 25 2007 - damien.carbery@sun.com
    118 - Add %{_datadir}/doc to devel pkg, because of new dbus-python tarball.
    119 * Thu Dec 21 2006 - brian.cameron@sun.com
    120 - Remove references to SUNWdbus-bindings-root since we do not
    121   build this package.
    122 * Thu Sep 21 2006 - brian.cameron@sun.com
    123 - Created.
    124 
    125