- clean up spec file as per the merge review (#225676)
This commit is contained in:
parent
4151a5e640
commit
930b5a0a2f
72
dbus.spec
72
dbus.spec
@ -8,17 +8,15 @@
|
|||||||
Summary: D-BUS message bus
|
Summary: D-BUS message bus
|
||||||
Name: dbus
|
Name: dbus
|
||||||
Version: 1.1.2
|
Version: 1.1.2
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
URL: http://www.freedesktop.org/software/dbus/
|
URL: http://www.freedesktop.org/software/dbus/
|
||||||
Source0: http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
|
Source0: http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
|
||||||
Source1: doxygen_to_devhelp.xsl
|
Source1: doxygen_to_devhelp.xsl
|
||||||
License: GPLv2+ or AFL
|
License: GPLv2+ or AFL
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
PreReq: /usr/sbin/useradd
|
|
||||||
Requires: chkconfig >= 1.3.26
|
BuildRequires: libtool
|
||||||
BuildPreReq: libtool
|
|
||||||
#BuildRequires: redhat-release
|
|
||||||
BuildRequires: expat-devel >= %{expat_version}
|
BuildRequires: expat-devel >= %{expat_version}
|
||||||
BuildRequires: libselinux-devel >= %{libselinux_version}
|
BuildRequires: libselinux-devel >= %{libselinux_version}
|
||||||
BuildRequires: audit-libs-devel >= 0.9
|
BuildRequires: audit-libs-devel >= 0.9
|
||||||
@ -28,9 +26,14 @@ BuildRequires: gettext
|
|||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
|
|
||||||
|
Requires: chkconfig >= 1.3.26
|
||||||
Requires: libselinux >= %{libselinux_version}
|
Requires: libselinux >= %{libselinux_version}
|
||||||
Requires: dbus-libs = %{version}-%{release}
|
Requires: dbus-libs = %{version}-%{release}
|
||||||
|
Requires(pre): /usr/sbin/useradd
|
||||||
|
|
||||||
|
# Conflict with cups prior to configuration file change, so that the
|
||||||
|
# %postun service condrestart works.
|
||||||
Conflicts: cups < 1:1.1.20-4
|
Conflicts: cups < 1:1.1.20-4
|
||||||
|
|
||||||
Patch0: dbus-0.60-start-early.patch
|
Patch0: dbus-0.60-start-early.patch
|
||||||
@ -72,7 +75,6 @@ Headers and static libraries for D-BUS.
|
|||||||
%package x11
|
%package x11
|
||||||
Summary: X11-requiring add-ons for D-BUS
|
Summary: X11-requiring add-ons for D-BUS
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libX11
|
|
||||||
Requires: %name = %{version}-%{release}
|
Requires: %name = %{version}-%{release}
|
||||||
|
|
||||||
%description x11
|
%description x11
|
||||||
@ -83,6 +85,10 @@ in this separate package so server systems need not install X.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
# For some reason upstream ships these files as executable
|
||||||
|
# Make sure they are not
|
||||||
|
/bin/chmod 0644 COPYING ChangeLog NEWS
|
||||||
|
|
||||||
%patch0 -p1 -b .start-early
|
%patch0 -p1 -b .start-early
|
||||||
%patch1 -p1 -b .generate-xml-docs
|
%patch1 -p1 -b .generate-xml-docs
|
||||||
%patch2 -p1 -b .lsb
|
%patch2 -p1 -b .lsb
|
||||||
@ -107,31 +113,31 @@ xsltproc -o dbus.devhelp %{SOURCE1} doc/api/xml/index.xml
|
|||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
|
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
|
||||||
|
|
||||||
#change the arch-deps.h include directory to /usr/lib[64] instead of /lib[64]
|
#change the arch-deps.h include directory to /usr/lib[64] instead of /lib[64]
|
||||||
sed -e 's@-I${libdir}@-I${prefix}/%{_lib}@' $RPM_BUILD_ROOT/%{_lib}/pkgconfig/dbus-1.pc > $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/dbus-1.pc
|
sed -e 's@-I${libdir}@-I${prefix}/%{_lib}@' %{buildroot}/%{_lib}/pkgconfig/dbus-1.pc > %{buildroot}/%{_libdir}/pkgconfig/dbus-1.pc
|
||||||
rm -f $RPM_BUILD_ROOT/%{_lib}/pkgconfig/dbus-1.pc
|
rm -f %{buildroot}/%{_lib}/pkgconfig/dbus-1.pc
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
mkdir -p %{buildroot}/%{_bindir}
|
||||||
mv -f $RPM_BUILD_ROOT/bin/dbus-launch $RPM_BUILD_ROOT/%{_bindir}
|
mv -f %{buildroot}/bin/dbus-launch %{buildroot}/%{_bindir}
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/dbus-1.0/include/
|
mkdir -p %{buildroot}/%{_libdir}/dbus-1.0/include/
|
||||||
mv -f $RPM_BUILD_ROOT/%{_lib}/dbus-1.0/include/* $RPM_BUILD_ROOT/%{_libdir}/dbus-1.0/include/
|
mv -f %{buildroot}/%{_lib}/dbus-1.0/include/* %{buildroot}/%{_libdir}/dbus-1.0/include/
|
||||||
rm -rf $RPM_BUILD_ROOT/%{_lib}/dbus-1.0
|
rm -rf %{buildroot}/%{_lib}/dbus-1.0
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT/%{_lib}/*.a
|
rm -f %{buildroot}/%{_lib}/*.a
|
||||||
rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
|
rm -f %{buildroot}/%{_lib}/*.la
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/devhelp/books/dbus
|
mkdir -p %{buildroot}%{_datadir}/devhelp/books/dbus
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/devhelp/books/dbus/api
|
mkdir -p %{buildroot}%{_datadir}/devhelp/books/dbus/api
|
||||||
|
|
||||||
cp dbus.devhelp $RPM_BUILD_ROOT%{_datadir}/devhelp/books/dbus
|
cp dbus.devhelp %{buildroot}%{_datadir}/devhelp/books/dbus
|
||||||
cp doc/dbus-specification.html $RPM_BUILD_ROOT%{_datadir}/devhelp/books/dbus
|
cp doc/dbus-specification.html %{buildroot}%{_datadir}/devhelp/books/dbus
|
||||||
cp doc/dbus-faq.html $RPM_BUILD_ROOT%{_datadir}/devhelp/books/dbus
|
cp doc/dbus-faq.html %{buildroot}%{_datadir}/devhelp/books/dbus
|
||||||
cp doc/dbus-tutorial.html $RPM_BUILD_ROOT%{_datadir}/devhelp/books/dbus
|
cp doc/dbus-tutorial.html %{buildroot}%{_datadir}/devhelp/books/dbus
|
||||||
cp doc/api/html/* $RPM_BUILD_ROOT%{_datadir}/devhelp/books/dbus/api
|
cp doc/api/html/* %{buildroot}%{_datadir}/devhelp/books/dbus/api
|
||||||
|
|
||||||
## %find_lang %{gettext_package}
|
## %find_lang %{gettext_package}
|
||||||
|
|
||||||
@ -151,6 +157,7 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
|
/sbin/service messagebus stop
|
||||||
/sbin/chkconfig --del messagebus
|
/sbin/chkconfig --del messagebus
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -162,8 +169,8 @@ fi
|
|||||||
%doc COPYING ChangeLog NEWS
|
%doc COPYING ChangeLog NEWS
|
||||||
|
|
||||||
%dir %{_sysconfdir}/dbus-1
|
%dir %{_sysconfdir}/dbus-1
|
||||||
%config %{_sysconfdir}/dbus-1/*.conf
|
%config(noreplace) %{_sysconfdir}/dbus-1/*.conf
|
||||||
%config %{_sysconfdir}/rc.d/init.d/*
|
%{_sysconfdir}/rc.d/init.d/*
|
||||||
%dir %{_sysconfdir}/dbus-1/system.d
|
%dir %{_sysconfdir}/dbus-1/system.d
|
||||||
%dir %{_sysconfdir}/dbus-1/session.d
|
%dir %{_sysconfdir}/dbus-1/session.d
|
||||||
%dir %{_localstatedir}/run/dbus
|
%dir %{_localstatedir}/run/dbus
|
||||||
@ -173,11 +180,11 @@ fi
|
|||||||
/bin/dbus-cleanup-sockets
|
/bin/dbus-cleanup-sockets
|
||||||
/bin/dbus-monitor
|
/bin/dbus-monitor
|
||||||
/bin/dbus-uuidgen
|
/bin/dbus-uuidgen
|
||||||
%{_datadir}/man/man*/dbus-cleanup-sockets.1.gz
|
%{_mandir}/man*/dbus-cleanup-sockets.1.gz
|
||||||
%{_datadir}/man/man*/dbus-daemon.1.gz
|
%{_mandir}/man*/dbus-daemon.1.gz
|
||||||
%{_datadir}/man/man*/dbus-monitor.1.gz
|
%{_mandir}/man*/dbus-monitor.1.gz
|
||||||
%{_datadir}/man/man*/dbus-send.1.gz
|
%{_mandir}/man*/dbus-send.1.gz
|
||||||
%{_datadir}/man/man*/dbus-uuidgen.1.gz
|
%{_mandir}/man*/dbus-uuidgen.1.gz
|
||||||
%dir %{_datadir}/dbus-1
|
%dir %{_datadir}/dbus-1
|
||||||
%{_datadir}/dbus-1/services
|
%{_datadir}/dbus-1/services
|
||||||
%{_datadir}/dbus-1/system-services
|
%{_datadir}/dbus-1/system-services
|
||||||
@ -208,6 +215,9 @@ fi
|
|||||||
%{_datadir}/devhelp/books/dbus
|
%{_datadir}/devhelp/books/dbus
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 15 2007 John (J5) Palmieri <johnp@redhat.com> - 1.1.2-9
|
||||||
|
- clean up spec file as per the merge review (#225676)
|
||||||
|
|
||||||
* Thu Oct 25 2007 Bill Nottingham <notting@redhat.com> - 1.1.2-8
|
* Thu Oct 25 2007 Bill Nottingham <notting@redhat.com> - 1.1.2-8
|
||||||
- have -libs obsolete older versions of the main package so that yum upgrades work
|
- have -libs obsolete older versions of the main package so that yum upgrades work
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user