use %make_build %ldconfig_scriptlets %license
%build: --enable-shared=yes --enable-static=no --disable-silent-rules
This commit is contained in:
parent
30f0d000db
commit
7d7897f4e8
57
avahi.spec
57
avahi.spec
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
Name: avahi
|
Name: avahi
|
||||||
Version: 0.7
|
Version: 0.7
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
Summary: Local network service discovery
|
Summary: Local network service discovery
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://avahi.org
|
URL: http://avahi.org
|
||||||
@ -381,6 +381,9 @@ NOCONFIGURE=1 ./autogen.sh
|
|||||||
--with-autoipd-group=avahi-autoipd \
|
--with-autoipd-group=avahi-autoipd \
|
||||||
--with-systemdsystemunitdir=%{_unitdir} \
|
--with-systemdsystemunitdir=%{_unitdir} \
|
||||||
--enable-introspection=no \
|
--enable-introspection=no \
|
||||||
|
--enable-shared=yes \
|
||||||
|
--enable-static=no \
|
||||||
|
--disable-silent-rules \
|
||||||
%if %{WITH_COMPAT_DNSSD}
|
%if %{WITH_COMPAT_DNSSD}
|
||||||
--enable-compat-libdns_sd \
|
--enable-compat-libdns_sd \
|
||||||
%endif
|
%endif
|
||||||
@ -398,12 +401,14 @@ NOCONFIGURE=1 ./autogen.sh
|
|||||||
%endif
|
%endif
|
||||||
;
|
;
|
||||||
|
|
||||||
make %{?_smp_mflags} V=1
|
%make_build V=1
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} \( -name '*.a' -o -name '*.la' \) -exec rm -v {} \;
|
|
||||||
|
# omit libtool .la files
|
||||||
|
rm -fv %{buildroot}%{_libdir}/lib*.la
|
||||||
|
|
||||||
# remove example
|
# remove example
|
||||||
rm -fv %{buildroot}%{_sysconfdir}/avahi/services/ssh.service
|
rm -fv %{buildroot}%{_sysconfdir}/avahi/services/ssh.service
|
||||||
@ -466,7 +471,7 @@ fi
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig >/dev/null 2>&1 || :
|
%{?ldconfig}
|
||||||
/usr/bin/dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
/usr/bin/dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
||||||
if [ "$1" -eq 1 -a -s /etc/localtime ]; then
|
if [ "$1" -eq 1 -a -s /etc/localtime ]; then
|
||||||
/usr/bin/cp -cfp /etc/localtime /etc/avahi/etc/localtime >/dev/null 2>&1 || :
|
/usr/bin/cp -cfp /etc/localtime /etc/avahi/etc/localtime >/dev/null 2>&1 || :
|
||||||
@ -477,7 +482,7 @@ fi
|
|||||||
%systemd_preun avahi-daemon.socket avahi-daemon.service
|
%systemd_preun avahi-daemon.socket avahi-daemon.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig >/dev/null 2>&1 || :
|
%{?ldconfig}
|
||||||
%systemd_postun_with_restart avahi-daemon.socket avahi-daemon.service
|
%systemd_postun_with_restart avahi-daemon.socket avahi-daemon.service
|
||||||
|
|
||||||
%pre autoipd
|
%pre autoipd
|
||||||
@ -500,36 +505,19 @@ exit 0
|
|||||||
%postun dnsconfd
|
%postun dnsconfd
|
||||||
%systemd_postun_with_restart avahi-dnsconfd.service
|
%systemd_postun_with_restart avahi-dnsconfd.service
|
||||||
|
|
||||||
%post glib -p /sbin/ldconfig
|
%ldconfig_scriptlets glib
|
||||||
%postun glib -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post compat-howl -p /sbin/ldconfig
|
%ldconfig_scriptlets compat-howl
|
||||||
%postun compat-howl -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post compat-libdns_sd -p /sbin/ldconfig
|
%ldconfig_scriptlets compat-libdns_sd
|
||||||
%postun compat-libdns_sd -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%ldconfig_scriptlets libs
|
||||||
%postun libs -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%if %{WITH_QT3}
|
%ldconfig_scriptlets ui
|
||||||
%post qt3 -p /sbin/ldconfig
|
|
||||||
%postun qt3 -p /sbin/ldconfig
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{WITH_QT4}
|
%ldconfig_scriptlets ui-gtk3
|
||||||
%post qt4 -p /sbin/ldconfig
|
|
||||||
%postun qt4 -p /sbin/ldconfig
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%post ui -p /sbin/ldconfig
|
%ldconfig_scriptlets gobject
|
||||||
%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
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%doc docs/* avahi-daemon/example.service avahi-daemon/sftp-ssh.service avahi-daemon/ssh.service
|
%doc docs/* avahi-daemon/example.service avahi-daemon/sftp-ssh.service avahi-daemon/ssh.service
|
||||||
@ -600,7 +588,8 @@ exit 0
|
|||||||
%{_libdir}/pkgconfig/avahi-client.pc
|
%{_libdir}/pkgconfig/avahi-client.pc
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%doc README LICENSE
|
%doc README
|
||||||
|
%license LICENSE
|
||||||
%{_libdir}/libavahi-common.so.*
|
%{_libdir}/libavahi-common.so.*
|
||||||
%{_libdir}/libavahi-client.so.*
|
%{_libdir}/libavahi-client.so.*
|
||||||
|
|
||||||
@ -638,6 +627,8 @@ exit 0
|
|||||||
%{_libdir}/pkgconfig/avahi-ui-gtk3.pc
|
%{_libdir}/pkgconfig/avahi-ui-gtk3.pc
|
||||||
|
|
||||||
%if %{WITH_QT3}
|
%if %{WITH_QT3}
|
||||||
|
%ldconfig_scriptlets qt3
|
||||||
|
|
||||||
%files qt3
|
%files qt3
|
||||||
%{_libdir}/libavahi-qt3.so.*
|
%{_libdir}/libavahi-qt3.so.*
|
||||||
|
|
||||||
@ -648,6 +639,8 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{WITH_QT4}
|
%if %{WITH_QT4}
|
||||||
|
%ldconfig_scriptlets qt4
|
||||||
|
|
||||||
%files qt4
|
%files qt4
|
||||||
%{_libdir}/libavahi-qt4.so.*
|
%{_libdir}/libavahi-qt4.so.*
|
||||||
|
|
||||||
@ -704,6 +697,10 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 05 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.7-12
|
||||||
|
- use %%make_build %%ldconfig_scriptlets %%license
|
||||||
|
- %%build: --enable-shared=yes --enable-static=no --disable-silent-rules
|
||||||
|
|
||||||
* Thu Apr 05 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.7-11
|
* Thu Apr 05 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.7-11
|
||||||
- avahi-discover is missing "gi" module (#1564059)
|
- avahi-discover is missing "gi" module (#1564059)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user