base-specs/dbus-python.spec
author yippi
Thu, 05 Aug 2010 11:47:22 +0000
changeset 19973 f05dadadf325
parent 18269 5218a1567988
child 21076 0d3e92c3dae0
permissions -rw-r--r--
Fix copyright lines.
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
#
19973
f05dadadf325 Fix copyright lines.
yippi
parents: 18269
diff changeset
     4
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
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
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15444
diff changeset
     8
%define owner yippi
9397
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
#
18269
5218a1567988 2010-07-22 Brian Cameron <[email protected]>
yippi
parents: 17864
diff changeset
    11
%{?!pythonver:%define pythonver 2.6}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
17842
1cc615f41f16 2010-04-15 Christian Kelly <[email protected]>
chrisk
parents: 17559
diff changeset
    13
%define OSR 4092:0.60
1cc615f41f16 2010-04-15 Christian Kelly <[email protected]>
chrisk
parents: 17559
diff changeset
    14
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Name:         dbus-python
14571
a943a025a41e 2008-11-06 Brian Cameron <[email protected]>
yippi
parents: 13675
diff changeset
    16
License:      MIT
17864
337913e88a9d 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 17842
diff changeset
    17
Vendor:       freedesktop.org
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Group:        System/Libraries
17559
c22aa5b46d2e 2010-02-19 Brian Cameron <[email protected]>
yippi
parents: 16741
diff changeset
    19
Version:      0.83.1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Release:      1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Distribution: Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
Summary:      Python bindings for D-Bus
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
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
    24
URL:          http://www.freedesktop.org/wiki/Software_2fdbus
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Docdir:	      %{_defaultdocdir}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Prereq:       /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
BuildRequires: glib2-devel >= %glib2_version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
BuildRequires: libxml2-devel >= %libxml2_version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
BuildRequires: python-devel >= %{pythonver}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Requires: glib2 >= %glib2_version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
Requires: libxml2 >= %libxml2_version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Requires: python >= %{pythonver}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
Python bindings for D-Bus.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
Summary:      Simple IPC library based on messages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
Group:        Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
Requires:     %{name} = %{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
Python bindings for D-Bus.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
%setup -q
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
%build
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 14571
diff changeset
    52
export PYTHON=/usr/bin/python%{pythonver}
15444
be83c7bbce16 2009-03-19 Brian Cameron <[email protected]>
yippi
parents: 15324
diff changeset
    53
export PYTHON_VERSION=%{pythonver}
10278
f4767566e7d2 2007-08-07 Brian Cameron <[email protected]>
yippi
parents: 9650
diff changeset
    54
aclocal $ACLOCAL_FLAGS -I ./m4
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
automake -a -c -f
15444
be83c7bbce16 2009-03-19 Brian Cameron <[email protected]>
yippi
parents: 15324
diff changeset
    57
export CFLAGS="%optflags -D_REENTRANT"
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10278
diff changeset
    58
export LDFLAGS="%_ldflags"
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
./configure --prefix=%{_prefix}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
            --includedir=%{_includedir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
            --sysconfdir=%{_sysconfdir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
            --libdir=%{_libdir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
            --bindir=%{_bindir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
            --localstatedir=%{_localstatedir}	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
            --with-dbus-user=root		\
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10278
diff changeset
    66
            --with-dbus-daemondir=%{_basedir}/lib \
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
            --mandir=%{_mandir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
            --datadir=%{_datadir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
            --disable-static
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
make
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
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
16741
bdc3521a980c 2009-10-13 Brian Cameron <[email protected]>
yippi
parents: 16690
diff changeset
    75
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
bdc3521a980c 2009-10-13 Brian Cameron <[email protected]>
yippi
parents: 16690
diff changeset
    76
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
# move to vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
PYLIBDIR=$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
[ ! -d ${PYLIBDIR}/vendor-packages ] && mkdir -p ${PYLIBDIR}/vendor-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
    cd ${PYLIBDIR}/site-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
    find . -print | cpio -pdm ${PYLIBDIR}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
rm -rf ${PYLIBDIR}/site-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
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
    88
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
    89
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%clean 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%files 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%config %{_sysconfdir}/dbus-1/session.conf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%config %{_sysconfdir}/dbus-1/system.conf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%{_libdir}/libdbus*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%{_datadir}/man/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%{_datadir}/dbus-1/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%{_libdir}/*.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%{_includedir}/dbus-1.0/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%{_libdir}/dbus-1.0/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%{_libdir}/python?.?/vendor-packages/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%changelog
17559
c22aa5b46d2e 2010-02-19 Brian Cameron <[email protected]>
yippi
parents: 16741
diff changeset
   111
* Fri Feb 19 2010 - Brian Cameron  <[email protected]>
c22aa5b46d2e 2010-02-19 Brian Cameron <[email protected]>
yippi
parents: 16741
diff changeset
   112
- Bump to 0.83.1.
16741
bdc3521a980c 2009-10-13 Brian Cameron <[email protected]>
yippi
parents: 16690
diff changeset
   113
* Tue Oct 13 2009 - Brian Cameron  <[email protected]>
bdc3521a980c 2009-10-13 Brian Cameron <[email protected]>
yippi
parents: 16690
diff changeset
   114
- Do not install .pyo files.
15444
be83c7bbce16 2009-03-19 Brian Cameron <[email protected]>
yippi
parents: 15324
diff changeset
   115
* Thu Mar 19 2009 - [email protected]
be83c7bbce16 2009-03-19 Brian Cameron <[email protected]>
yippi
parents: 15324
diff changeset
   116
- Remove patch dbus-python-01-fix-wrong-python25-includes.diff and instead
be83c7bbce16 2009-03-19 Brian Cameron <[email protected]>
yippi
parents: 15324
diff changeset
   117
  set PYTHON_VERSION, which also ensures that the right python includes are
be83c7bbce16 2009-03-19 Brian Cameron <[email protected]>
yippi
parents: 15324
diff changeset
   118
  used.
15324
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 14571
diff changeset
   119
* Thu Mar 05 2009 - [email protected]
36b720a1ae2c 2009-03-06 Brian Cameron <[email protected]>
yippi
parents: 14571
diff changeset
   120
- Made it possible to build both Python 2.4 and 2.6 bindings.
13591
4d67b5a15d6f * patches/dbuspython-01-fix-wrong-python25-includes.diff: Remove Python header check.
pale
parents: 12918
diff changeset
   121
* Mon Aug 15 2008 - [email protected]
4d67b5a15d6f * patches/dbuspython-01-fix-wrong-python25-includes.diff: Remove Python header check.
pale
parents: 12918
diff changeset
   122
- Remove method to find python headers by means of python-config from
4d67b5a15d6f * patches/dbuspython-01-fix-wrong-python25-includes.diff: Remove Python header check.
pale
parents: 12918
diff changeset
   123
  configure (Patch1) and add -I/usr/python2.4 to CFLAGS.
12918
a4594ae4d17c 2008-07-24 Brian Cameron - <[email protected]>
yippi
parents: 11307
diff changeset
   124
* Thu Jul 24 2008 - [email protected]
a4594ae4d17c 2008-07-24 Brian Cameron - <[email protected]>
yippi
parents: 11307
diff changeset
   125
- bump to 0.83.0.
11307
c2c87c89bc0f 2007-12-10 Brian Cameron <[email protected]>
yippi
parents: 11160
diff changeset
   126
* Mon Dec 10 2007 - [email protected]
c2c87c89bc0f 2007-12-10 Brian Cameron <[email protected]>
yippi
parents: 11160
diff changeset
   127
- Bump to 0.82.4.
11160
70aa9f59b0fb Update %changelog comment.
dcarbery
parents: 11139
diff changeset
   128
* Wed Nov 07 2007 - [email protected]
70aa9f59b0fb Update %changelog comment.
dcarbery
parents: 11139
diff changeset
   129
- Add -D_REENTRANT to CFLAGS. It was removed from SUNW spec file on Sep 28.
11139
da1e04fe9b25 2007-11-07 Padraig O'Briain <[email protected]>
padraig
parents: 10635
diff changeset
   130
  See bugster 6615221
10635
ea9c5ea506dd 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10572
diff changeset
   131
* Wed Oct 10 2007 - [email protected]
ea9c5ea506dd 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10572
diff changeset
   132
- Don't delete *.pyc files - they are needed.
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10278
diff changeset
   133
* Fri Sep 28 2007 - [email protected]
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10278
diff changeset
   134
- convert to new style multi-ISA build
10278
f4767566e7d2 2007-08-07 Brian Cameron <[email protected]>
yippi
parents: 9650
diff changeset
   135
* Mon Aug 06 2007 - [email protected]
f4767566e7d2 2007-08-07 Brian Cameron <[email protected]>
yippi
parents: 9650
diff changeset
   136
- 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
   137
* Sun Apr  1 2007 - [email protected]
4d1a83cf35ef 2007-04-02 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
   138
- add missing aclocal calls
9565
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   139
* Wed Mar 15 2007 - [email protected]
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   140
- 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
   141
* Sat Feb 25 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
- updated to include 64-bit build RFE: #6480511
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
* Wed Feb 14 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
- Bump to 0.80.2.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
* Thu Jan 25 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
- 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
   147
* Thu Nov 27 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
- Created.