Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWdbus-python26
      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.6
     16 
     17 %include base.inc
     18 %use dbus_python = dbus-python.spec
     19 
     20 Name:                    SUNWdbus-python26
     21 Summary:                 D-Bus Python %{pythonver} bindings
     22 Version:                 %{dbus_python.version}
     23 SUNW_BaseDir:            %{_basedir}
     24 SUNW_Copyright:          SUNWdbus-python24.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 
     43 %prep
     44 rm -rf %name-%version
     45 mkdir %name-%version
     46 %dbus_python.prep -d %name-%version
     47 
     48 %build
     49 PKG_CONFIG_DISABLE_UNINSTALLED=
     50 unset PKG_CONFIG_DISABLE_UNINSTALLED
     51 export PYTHON=/usr/bin/python%{pythonver}
     52 %dbus_python.build -d %name-%version
     53 
     54 %install
     55 rm -rf $RPM_BUILD_ROOT
     56 %dbus_python.install -d %name-%version
     57 
     58 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     59 
     60 %clean
     61 rm -rf $RPM_BUILD_ROOT
     62 
     63 %files
     64 %defattr (-, root, bin)
     65 %dir %attr (0755, root, bin) %{_libdir}
     66 %{_libdir}/python%{pythonver}/vendor-packages
     67 %dir %attr (0755, root, sys) %{_datadir}
     68 %doc -d dbus-python-%{dbus_python.version} AUTHORS
     69 %doc -d dbus-python-%{dbus_python.version} README
     70 %doc(bzip2) -d dbus-python-%{dbus_python.version} COPYING
     71 %doc(bzip2) -d dbus-python-%{dbus_python.version} ChangeLog
     72 %doc(bzip2) -d dbus-python-%{dbus_python.version} NEWS
     73 %dir %attr (0755, root, other) %{_datadir}/doc
     74 
     75 %files devel
     76 %defattr (-, root, bin)
     77 %dir %attr (0755, root, bin) %{_libdir}
     78 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
     79 %{_libdir}/pkgconfig/*
     80 %dir %attr (0755, root, bin) %{_includedir}
     81 %{_includedir}/*
     82 %dir %attr (0755, root, sys) %{_datadir}
     83 %dir %attr (0755, root, other) %{_datadir}/doc
     84 %dir %attr (0755, root, other) %{_datadir}/doc/dbus-python
     85 %{_datadir}/doc/dbus-python/*
     86 
     87 %changelog
     88 * Tue Mar 10 2009 - brian.cameron@sun.com
     89 - Cleanup based on code review.
     90 * Thu Mar 05 2009 - brian.cameron@sun.com
     91 - Split from SUNWdbus-bindings.spec.  Remove 64 bit support as it is not
     92   needed for the python bindings.
     93 * Wed Mar 04 2009 - dave.lin@sun.com
     94 - Add /usr/share/man/man1 in %files
     95 * Sun Sep 14 2008 - brian.cameron@sun.com
     96 - Add new copyright files.
     97 * Thu Mar 27 2008 - brian.cameron@sun.com
     98 - Add SUNW_Copyright
     99 * Tue Nov 20 2007 - brian.cameron@sun.com
    100 - Add libdbus-glib-1.3 manpage.
    101 * Fri Sep 28 2007 - laca@sun.com
    102 - convert to new style multi-ISA build
    103 - delete SUNWxwrtl dep
    104 * Sat Feb 25 2007 - dougs@truemail.co.th
    105 - updated to include 64-bit build RFE: #6480511
    106 * Fri Jan 26 2007 - damien.carbery@sun.com
    107 - Set PKG_CONFIG vars in %build because dbus-python use autofoo/configure/make
    108   process rather than setup.py.
    109 * Thu Jan 25 2007 - damien.carbery@sun.com
    110 - Add %{_datadir}/doc to devel pkg, because of new dbus-python tarball.
    111 * Thu Dec 21 2006 - brian.cameron@sun.com
    112 - Remove references to SUNWdbus-bindings-root since we do not
    113   build this package.
    114 * Thu Sep 21 2006 - brian.cameron@sun.com
    115 - Created.
    116 
    117