Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package dbus-python
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: yippi
      9 # bugdb: bugzilla.freedesktop.org
     10 #
     11 %define pythonver 2.4
     12 
     13 Name:         dbus-python
     14 License:      Other
     15 Group:        System/Libraries
     16 Version:      0.80.1
     17 Release:      1
     18 Distribution: Java Desktop System
     19 Vendor:       Sun Microsystems, Inc.
     20 Summary:      Python bindings for D-Bus
     21 Source:       http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
     22 URL:          http://www.freedesktop.org/wiki/Software_2fdbus
     23 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     24 Docdir:	      %{_defaultdocdir}/doc
     25 Autoreqprov:  on
     26 Prereq:       /sbin/ldconfig
     27 
     28 %define python_version 2.4
     29 BuildRequires: glib2-devel >= %glib2_version
     30 BuildRequires: libxml2-devel >= %libxml2_version
     31 BuildRequires: python-devel >= %{pythonver}
     32 Requires: glib2 >= %glib2_version
     33 Requires: libxml2 >= %libxml2_version
     34 Requires: python >= %{pythonver}
     35 
     36 %description
     37 Python bindings for D-Bus.
     38 
     39 %package devel
     40 Summary:      Simple IPC library based on messages
     41 Group:        Development/Libraries
     42 Requires:     %{name} = %{version}
     43 
     44 %description devel
     45 Python bindings for D-Bus.
     46 
     47 %prep
     48 %setup -q
     49 
     50 %build
     51 CFLAGS="$RPM_OPT_FLAGS"  \
     52 ./configure --prefix=%{_prefix}         \
     53             --sysconfdir=%{_sysconfdir} \
     54             --libexecdir=%{_libexecdir}
     55 make
     56 
     57 %install
     58 make install DESTDIR=$RPM_BUILD_ROOT
     59 
     60 # move to vendor-packages
     61 mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages \
     62    $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
     63 
     64 # Delete precompiled py code (*.pyc). May not be compatibile with dest system.
     65 find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.pyc" -exec rm {} ';'
     66 
     67 %clean 
     68 rm -rf $RPM_BUILD_ROOT
     69 
     70 %files 
     71 %defattr(-, root, root)
     72 %config %{_sysconfdir}/dbus-1/session.conf
     73 %config %{_sysconfdir}/dbus-1/system.conf
     74 %{_bindir}/*
     75 %{_libdir}/libdbus*.so*
     76 %{_datadir}/man/*
     77 %{_datadir}/dbus-1/*
     78 
     79 %files devel
     80 %defattr(-, root, root)
     81 %{_libdir}/*.so
     82 %{_includedir}/dbus-1.0/*
     83 %{_libdir}/dbus-1.0/*
     84 %{_libdir}/pkgconfig/*
     85 %{_libdir}/python?.?/vendor-packages/*
     86 
     87 %changelog
     88 * Thu Jan 25 2007 - damien.carbery@sun.com
     89 - Bump to 0.80.1. Use configure/make to build, not setup.py.
     90 
     91 * Thu Nov 27 2006 - brian.cameron@sun.com
     92 - Created.
     93