base-specs/dbus-python.spec
author laca
Wed, 28 Feb 2007 18:57:18 +0000
changeset 9397 b16e349d18c5
child 9565 4f6ed9cc5ede
permissions -rw-r--r--
the easy part of the reorg (most files moved around)
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
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
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
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Version:      0.80.2
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
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
cp -pr %{name}-%{version} %{name}-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
export CC=${CC64:-$CC}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
export CFLAGS="${CFLAGS64}"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
export LDFLAGS="${LDFLAGS64}"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
export PYTHON=%{_bindir}/%{_arch64}/python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
cd ../%{name}-%{version}-64
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
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
automake -a -c -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
./configure --prefix=%{_prefix}				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
            --includedir=%{_includedir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
            --sysconfdir=%{_sysconfdir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
            --libdir=%{_libdir}/%{_arch64}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
            --bindir=%{_bindir}				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
            --localstatedir=%{_localstatedir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
            --with-dbus-user=root       		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
            --with-dbus-daemondir=%{_libdir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
            --mandir=%{_mandir}				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
            --datadir=%{_datadir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
	    --disable-static
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
make 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
cd ../%{name}-%{version}
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
export CC=${CC32:-$CC}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
export CFLAGS="$CFLAGS32"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
export LDFLAGS="$LDFLAGS32"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
export RPM_OPT_FLAGS="$CFLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
export PYTHON=%{_bindir}/python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
automake -a -c -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
CFLAGS="$RPM_OPT_FLAGS"				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
./configure --prefix=%{_prefix}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
            --includedir=%{_includedir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
            --sysconfdir=%{_sysconfdir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
            --libdir=%{_libdir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
            --bindir=%{_bindir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
            --localstatedir=%{_localstatedir}	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
            --with-dbus-user=root		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
            --with-dbus-daemondir=%{_libdir}	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
            --mandir=%{_mandir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
            --datadir=%{_datadir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
            --disable-static
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
make
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
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
cd ../%{name}-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
PYLIBDIR=$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
mv ${PYLIBDIR}/site-packages ${PYLIBDIR}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
mkdir -p ${PYLIBDIR}/vendor-packages/64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
mv ${PYLIBDIR}/vendor-packages/*.so ${PYLIBDIR}/vendor-packages/64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
rm -rf ${PYLIBDIR}/site-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
cd ../%{name}-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
# move to vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
PYLIBDIR=$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
[ ! -d ${PYLIBDIR}/vendor-packages ] && mkdir -p ${PYLIBDIR}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
(
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
    cd ${PYLIBDIR}/site-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
    find . -print | cpio -pdm ${PYLIBDIR}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
rm -rf ${PYLIBDIR}/site-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
# Delete precompiled py code (*.pyc). May not be compatibile with dest system.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.pyc" -exec rm {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
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
   139
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
   140
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
%clean 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
%files 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
%config %{_sysconfdir}/dbus-1/session.conf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
%config %{_sysconfdir}/dbus-1/system.conf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
%{_libdir}/libdbus*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
%{_datadir}/man/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
%{_datadir}/dbus-1/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   152
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
%{_libdir}/*.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
%{_includedir}/dbus-1.0/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   157
%{_libdir}/dbus-1.0/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   159
%{_libdir}/python?.?/vendor-packages/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   160
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   161
%changelog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   162
* Sat Feb 25 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   163
- updated to include 64-bit build RFE: #6480511
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   164
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   165
* Wed Feb 14 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   166
- Bump to 0.80.2.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   167
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   168
* Thu Jan 25 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   169
- 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
   170
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   171
* Thu Nov 27 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   172
- Created.