Only ship one executable (#1646926)

This commit is contained in:
Miro Hrončok 2018-11-06 11:35:10 +01:00
parent 1f1148d63d
commit dfce357ca0

View File

@ -3,7 +3,7 @@
Summary: Monitor filesystem events with Python under Linux Summary: Monitor filesystem events with Python under Linux
Name: python-inotify Name: python-inotify
Version: 0.9.6 Version: 0.9.6
Release: 13%{?dist} Release: 14%{?dist}
License: MIT License: MIT
Group: Development/Libraries Group: Development/Libraries
URL: https://github.com/seb-m/pyinotify URL: https://github.com/seb-m/pyinotify
@ -52,12 +52,13 @@ pushd %{py3dir}
popd popd
%install %install
pushd %{py3dir}
%py3_install
mv %{buildroot}%{_bindir}/%{oname} %{buildroot}%{_bindir}/python3-%{oname}
popd
%py2_install %py2_install
pushd %{py3dir}
rm %{buildroot}%{_bindir}/%{oname}
%py3_install
popd
# examples # examples
install -d -m 0755 %{buildroot}%{_datadir}/%{oname} install -d -m 0755 %{buildroot}%{_datadir}/%{oname}
cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname} cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
@ -65,7 +66,6 @@ cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
%files -n python2-inotify %files -n python2-inotify
%license COPYING %license COPYING
%doc ACKS README.md %doc ACKS README.md
%{_bindir}/%{oname}
%{python2_sitelib}/%{oname}* %{python2_sitelib}/%{oname}*
%files -n python2-inotify-examples %files -n python2-inotify-examples
@ -75,11 +75,14 @@ cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
%files -n python3-inotify %files -n python3-inotify
%license COPYING %license COPYING
%doc ACKS README.md %doc ACKS README.md
%{_bindir}/python3-%{oname} %{_bindir}/%{oname}
%{python3_sitelib}/%{oname}* %{python3_sitelib}/%{oname}*
%{python3_sitelib}/__pycache__/%{oname}* %{python3_sitelib}/__pycache__/%{oname}*
%changelog %changelog
* Tue Nov 06 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.6-14
- Only ship one executable (#1646926)
* Sun Jul 15 2018 Terje Rosten <terje.rosten@ntnu.no> - 0.9.4-14 * Sun Jul 15 2018 Terje Rosten <terje.rosten@ntnu.no> - 0.9.4-14
- Use correct python macros - Use correct python macros