base-specs/dbus-glib.spec
author laca
Wed, 28 Feb 2007 18:57:18 +0000
changeset 9397 b16e349d18c5
child 9416 087ac8d534f3
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-glib
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
Name:         dbus-glib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
License:      GPL/AFL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Group:        System/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
Version:      0.73
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Release:      1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Distribution: Java Desktop System
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Vendor:       Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Summary:      Glib bindings for D-Bus
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Source:       http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
#owner:yippi date:2006-11-27 type:bug
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Patch1:       dbus-glib-01-findlaunch.diff
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 glib2_version 2.6.4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%define libxml2_version 2.6.19
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
# FIXME: get python rpm: BuildRequires: python >= %python_version
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
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
Glib 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
Glib 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
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
cp -pr %{name}-%{version} %{name}-%{version}-64
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
%endif
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
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
fi
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
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
export CC=${CC64:-$CC}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
export CFLAGS="${CFLAGS64}"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
export LDFLAGS="${LDFLAGS64}"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}"
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 ../%{name}-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
automake -a -c -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
./configure --prefix=%{_prefix}         		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
            --includedir=%{_includedir} 		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
            --sysconfdir=%{_sysconfdir} 		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
            --libdir=%{_libdir}/%{_arch64} 		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
            --bindir=%{_bindir}				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
            --localstatedir=%{_localstatedir} 		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
            --with-dbus-user=root       		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
            --with-dbus-daemondir=%{_libdir}	 	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
            --mandir=%{_mandir}         		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
            --datadir=%{_datadir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
	    --disable-static
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
make -j $CPUS \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
    pyexecdir=%{_libdir}/%{_arch64}/python%{python_version}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
cd ../%{name}-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
export CC=${CC32:-$CC}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
export CFLAGS="$CFLAGS32"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
export LDFLAGS="$LDFLAGS32"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
export RPM_OPT_FLAGS="$CFLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
automake -a -c -f
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
CFLAGS="$RPM_OPT_FLAGS"				\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
./configure --prefix=%{_prefix}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
            --includedir=%{_includedir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
            --sysconfdir=%{_sysconfdir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
            --libdir=%{_libdir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
            --bindir=%{_bindir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
            --localstatedir=%{_localstatedir}	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
            --with-dbus-user=root		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
            --with-dbus-daemondir=%{_libdir}	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
            --mandir=%{_mandir}			\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
            --datadir=%{_datadir}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
            --disable-static
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
make -j $CPUS \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
    pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
%ifos solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
cd ../%{name}-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
make DESTDIR=$RPM_BUILD_ROOT install \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
    pyexecdir=%{_libdir}/%{_arch64}/python%{python_version}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
cd ../%{name}-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
%endif
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
make DESTDIR=$RPM_BUILD_ROOT install \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
    pyexecdir=%{_libdir}/python%{python_version}/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
mkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
/sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
%postun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
/sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
%clean 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
%files 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
%config %{_sysconfdir}/dbus-1/session.conf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
%config %{_sysconfdir}/dbus-1/system.conf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
%{_libdir}/libdbus*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   152
%{_datadir}/man/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
%{_datadir}/dbus-1/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
%defattr(-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   157
%{_libdir}/*.so
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
%{_includedir}/dbus-1.0/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   159
%{_libdir}/dbus-1.0/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   160
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   161
%{_libdir}/python?.?/vendor-packages/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   162
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   163
%changelog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   164
* Sun Feb 25 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   165
- updated to include 64-bit build RFE: #6480511
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   166
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   167
* Wed Feb 14 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   168
- Bump to 0.73. Remove upstream patch 01-uninstalled-pc. Rename remainder.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   169
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   170
* Thu Nov 27 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   171
- Created.