rpms/avahi/devel avahi.spec,1.124,1.125 sources,1.22,1.23
Lennart Poettering
lennart at fedoraproject.org
Tue Jun 29 03:12:10 UTC 2010
Author: lennart
Update of /cvs/pkgs/rpms/avahi/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv6909
Modified Files:
avahi.spec sources
Log Message:
Fix systemd unit installation
Index: avahi.spec
===================================================================
RCS file: /cvs/pkgs/rpms/avahi/devel/avahi.spec,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -p -r1.124 -r1.125
--- avahi.spec 29 Jun 2010 02:41:20 -0000 1.124
+++ avahi.spec 29 Jun 2010 03:12:09 -0000 1.125
@@ -6,7 +6,7 @@
%endif
Name: avahi
Version: 0.6.26
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Local network service discovery
Group: System Environment/Base
License: LGPLv2
@@ -82,7 +82,6 @@ Graphical user interface tools that use
Summary: Glib libraries for avahi
Group: System Environment/Base
Requires: %{name} = %{version}-%{release}
-Requires: glib2
%description glib
Libraries for easy use of avahi from glib applications.
@@ -101,7 +100,6 @@ necessary for developing programs using
%package gobject
Summary: GObject wrapper library for Avahi
Group: System Environment/Base
-Requires: glib2
Requires: %{name}-glib = %{version}-%{release}
%description gobject
@@ -304,7 +302,7 @@ fashion with mDNS.
%setup -q
%build
-%configure --with-distro=fedora --disable-monodoc --with-avahi-user=avahi --with-avahi-group=avahi --with-avahi-priv-access-group=avahi --with-autoipd-user=avahi-autoipd --with-autoipd-group=avahi-autoipd \
+%configure --with-distro=fedora --disable-monodoc --with-avahi-user=avahi --with-avahi-group=avahi --with-avahi-priv-access-group=avahi --with-autoipd-user=avahi-autoipd --with-autoipd-group=avahi-autoipd --with-systemdsystemunitdir=/lib/systemd/system \
%if %{WITH_COMPAT_DNSSD}
--enable-compat-libdns_sd \
%endif
@@ -375,6 +373,7 @@ getent passwd avahi >/dev/null 2>&1 || u
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
# Run avahi-daemon by default:
/sbin/chkconfig --add avahi-daemon >/dev/null 2>&1 || :
+/usr/bin/systemd-install enable avahi-daemon.service >/dev/null 2>&1 || :
if [ "$1" -eq 1 ]; then
if [ -s /etc/localtime ]; then
cp -cfp /etc/localtime /etc/avahi/etc/localtime || :
@@ -383,8 +382,9 @@ fi
%preun
if [ "$1" -eq 0 ]; then
- /sbin/service avahi-daemon stop > /dev/null 2>&1 || :
- /sbin/chkconfig --del avahi-daemon
+ /sbin/service avahi-daemon stop >/dev/null 2>&1 || :
+ /sbin/chkconfig --del avahi-daemon >/dev/null 2>&1 || :
+ /usr/bin/systemd-install disable avahi-daemon.service >/dev/null 2>&1 || :
fi
%postun
@@ -416,7 +416,8 @@ getent passwd avahi-autoipd >/dev/null 2
%preun dnsconfd
if [ "$1" -eq 0 ]; then
/sbin/service avahi-dnsconfd stop >/dev/null 2>&1 || :
- /sbin/chkconfig --del avahi-dnsconfd
+ /sbin/chkconfig --del avahi-dnsconfd >/dev/null 2>&1 || :
+ /usr/bin/systemd-install disable avahi-dnsconfd.service >/dev/null 2>&1 || :
fi
%postun dnsconfd
@@ -433,6 +434,9 @@ fi
%post compat-libdns_sd -p /sbin/ldconfig
%postun compat-libdns_sd -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
%post qt3 -p /sbin/ldconfig
%postun qt3 -p /sbin/ldconfig
@@ -442,6 +446,9 @@ fi
%post ui -p /sbin/ldconfig
%postun ui -p /sbin/ldconfig
+%post ui-gtk3 -p /sbin/ldconfig
+%postun ui-gtk3 -p /sbin/ldconfig
+
%post gobject -p /sbin/ldconfig
%postun gobject -p /sbin/ldconfig
@@ -457,7 +464,7 @@ fi
%ghost %attr(0755,avahi,avahi) %dir %{_localstatedir}/run/avahi-daemon
%config(noreplace) %{_sysconfdir}/avahi/avahi-daemon.conf
%config(noreplace) %{_sysconfdir}/avahi/services/ssh.service
-%{_sysconfdir}/dbus-1/system.d/avahi-dbus.conf
+%config(noreplace) %{_sysconfdir}/dbus-1/system.d/avahi-dbus.conf
%attr(0755,root,root) %{_sbindir}/avahi-daemon
%dir %{_datadir}/avahi
%{_datadir}/avahi/*.dtd
@@ -632,6 +639,9 @@ fi
%endif
%changelog
+* Tue Jun 29 2010 Lennart Poettering <lpoetter at redhat.com> 0.6.26-3
+- Fix systemd unit installation
+
* Tue Jun 29 2010 Lennart Poettering <lpoetter at redhat.com> 0.6.26-2
- Add missing dependencies
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/avahi/devel/sources,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -p -r1.22 -r1.23
--- sources 29 Jun 2010 02:33:04 -0000 1.22
+++ sources 29 Jun 2010 03:12:09 -0000 1.23
@@ -1 +1 @@
-925438d4a6d6ebf65212ba1db75f25b5 avahi-0.6.26.tar.gz
+2b2b1899fcec5ae74e92f111598913a1 avahi-0.6.26.tar.gz
More information about the scm-commits
mailing list