Modify a shebang in the python3 module so it doesn't drag in /usr/bin/python2.

This commit is contained in:
Toshio Kuratomi 2015-11-05 18:27:35 -08:00
parent cd3de26229
commit 7a351bcb34

View File

@ -20,7 +20,7 @@
Name: avahi
Version: 0.6.32
Release: 0.1.%{beta}%{?dist}
Release: 0.2.%{beta}%{?dist}
Summary: Local network service discovery
License: LGPLv2+
URL: http://avahi.org
@ -411,6 +411,7 @@ ln -s avahi-compat-libdns_sd/dns_sd.h %{buildroot}/%{_includedir}/
mkdir -p %{buildroot}%{python3_sitelib}/avahi/
cp -r %{buildroot}%{python2_sitelib}/avahi/* %{buildroot}%{python3_sitelib}/avahi/
rm -fv %{buildroot}%{buildroot}%{python3_sitelib}/avahi/*.py{c,o}
sed -i 's!/usr/bin/python!/usr/bin/python3!' %{buildroot}%{python3_sitelib}/avahi/ServiceTypeDatabase.py
rm -fv %{buildroot}%{_sysconfdir}/rc.d/init.d/avahi-daemon
rm -fv %{buildroot}%{_sysconfdir}/rc.d/init.d/avahi-dnsconfd
@ -663,6 +664,9 @@ exit 0
%{python3_sitelib}/avahi/
%changelog
* Thu Nov 5 2015 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.32-0.2.rc
- Modify a shebang in the python3 module so it doesn't drag in /usr/bin/python2.
* Sat Oct 10 2015 Rex Dieter <rdieter@fedoraproject.org> - 0.6.32-0.1.rc
- avahi-0.6.32-rc
- -devel: move dbus-1/interfaces here