base-specs/dbus-python.spec
author padraig
Wed, 07 Nov 2007 13:26:10 +0000
changeset 11139 da1e04fe9b25
parent 10635 ea9c5ea506dd
child 11160 70aa9f59b0fb
permissions -rw-r--r--
2007-11-07 Padraig O'Briain <[email protected]> * base-specs/dbus.spec, * base-specs/dbus-glib.spec, * base-specs/dbus-python.spec: Add -D_REENTRANT to CFLAGS. Fix for bugster 6615221.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package dbus-python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10278
diff changeset
     4
# Copyright 2007 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# Owner: yippi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
# bugdb: bugzilla.freedesktop.org
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
%define pythonver 2.4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Name:         dbus-python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
License:      GPL/AFL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Group:        System/Libraries
10278
f4767566e7d2 2007-08-07 Brian Cameron <[email protected]>
yippi
parents: 9650
diff changeset
    16
Version:      0.82.2
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Release:      1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Distribution: Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Vendor:       Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Summary:      Python bindings for D-Bus
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Source:       http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
URL:          http://www.freedesktop.org/wiki/Software_2fdbus
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
Docdir:	      %{_defaultdocdir}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Prereq:       /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
%define python_version 2.4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
BuildRequires: glib2-devel >= %glib2_version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
BuildRequires: libxml2-devel >= %libxml2_version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
BuildRequires: python-devel >= %{pythonver}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Requires: glib2 >= %glib2_version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Requires: libxml2 >= %libxml2_version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Requires: python >= %{pythonver}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
Python bindings for D-Bus.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
Summary:      Simple IPC library based on messages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
Group:        Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
Requires:     %{name} = %{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
Python bindings for D-Bus.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%build
10278
f4767566e7d2 2007-08-07 Brian Cameron <[email protected]>
yippi
parents: 9650
diff changeset
    51
aclocal $ACLOCAL_FLAGS -I ./m4
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
automake -a -c -f
11139
da1e04fe9b25 2007-11-07 Padraig O'Briain <[email protected]>
padraig
parents: 10635
diff changeset
    54
export CFLAGS="%optflags -D_REENTRANT"
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10278
diff changeset
    55
export LDFLAGS="%_ldflags"
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
./configure --prefix=%{_prefix}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
            --includedir=%{_includedir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
            --sysconfdir=%{_sysconfdir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
            --libdir=%{_libdir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
            --bindir=%{_bindir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
            --localstatedir=%{_localstatedir}	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
            --with-dbus-user=root		\
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10278
diff changeset
    63
            --with-dbus-daemondir=%{_basedir}/lib \
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
            --mandir=%{_mandir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
            --datadir=%{_datadir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
            --disable-static
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
# move to vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
PYLIBDIR=$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
[ ! -d ${PYLIBDIR}/vendor-packages ] && mkdir -p ${PYLIBDIR}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
(
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
    cd ${PYLIBDIR}/site-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
    find . -print | cpio -pdm ${PYLIBDIR}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
rm -rf ${PYLIBDIR}/site-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.la" -exec rm {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.a" -exec rm {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%clean 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
%files 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%config %{_sysconfdir}/dbus-1/session.conf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%config %{_sysconfdir}/dbus-1/system.conf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%{_libdir}/libdbus*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%{_datadir}/man/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%{_datadir}/dbus-1/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%{_libdir}/*.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%{_includedir}/dbus-1.0/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%{_libdir}/dbus-1.0/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%{_libdir}/python?.?/vendor-packages/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%changelog
11139
da1e04fe9b25 2007-11-07 Padraig O'Briain <[email protected]>
padraig
parents: 10635
diff changeset
   106
* Wed Nov 7 2007 - [email protected]
da1e04fe9b25 2007-11-07 Padraig O'Briain <[email protected]>
padraig
parents: 10635
diff changeset
   107
- Add -D_REENTRANT. It was removed from SUNW spec file on Sep 28.
da1e04fe9b25 2007-11-07 Padraig O'Briain <[email protected]>
padraig
parents: 10635
diff changeset
   108
  See bugster 6615221
10635
ea9c5ea506dd 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10572
diff changeset
   109
* Wed Oct 10 2007 - [email protected]
ea9c5ea506dd 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10572
diff changeset
   110
- Don't delete *.pyc files - they are needed.
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10278
diff changeset
   111
* Fri Sep 28 2007 - [email protected]
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10278
diff changeset
   112
- convert to new style multi-ISA build
10278
f4767566e7d2 2007-08-07 Brian Cameron <[email protected]>
yippi
parents: 9650
diff changeset
   113
* Mon Aug 06 2007 - [email protected]
f4767566e7d2 2007-08-07 Brian Cameron <[email protected]>
yippi
parents: 9650
diff changeset
   114
- Bump to 0.82.2 add "-I ./m4" to aclocal calls.
9650
4d1a83cf35ef 2007-04-02 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
   115
* Sun Apr  1 2007 - [email protected]
4d1a83cf35ef 2007-04-02 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
   116
- add missing aclocal calls
9565
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   117
* Wed Mar 15 2007 - [email protected]
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   118
- Removed CC64 and CC32. They are not needed anymore
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
* Sat Feb 25 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
- updated to include 64-bit build RFE: #6480511
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
* Wed Feb 14 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
- Bump to 0.80.2.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
* Thu Jan 25 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
- Bump to 0.80.1. Use configure/make to build, not setup.py.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
* Thu Nov 27 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
- Created.