#3 Fix of python3-transtats-cli requires both Python 2 and Python 3 (rhbz#1531568) - one executable
Merged a year ago by suanand. Opened a year ago by aries.
rpms/ aries/transtats-cli master  into  master

file modified
+8 -11

@@ -8,7 +8,7 @@ 

  

  Name:           %{name}

  Version:        0.1.1

- Release:        3%{?dist}

+ Release:        4%{?dist}

  Summary:        %{sum}

  License:        ASL 2.0

  URL:            https://github.com/%{project}/%{name}

@@ -77,16 +77,12 @@ 

  %endif

  

  %install

+ %py2_install

+ rm -fr %{buildroot}%{python2_sitelib}/tests

  %if 0%{?fedora}

  %py3_install

- mv %{buildroot}/%{_bindir}/%{project} %{buildroot}/%{_bindir}/%{project}-3

- ln -s %{project}-3 %{buildroot}/%{_bindir}/%{project}-%{python3_version}

  rm -fr %{buildroot}%{python3_sitelib}/tests

  %endif

- %py2_install

- ln -s %{project} %{buildroot}/%{_bindir}/%{project}-2

- ln -s %{project}-2 %{buildroot}/%{_bindir}/%{project}-%{python2_version}

- rm -fr %{buildroot}%{python2_sitelib}/tests

  

  

  %check

@@ -98,9 +94,9 @@ 

  %files -n python2-%{name}

  %doc README.md transtats.conf

  %license LICENSE

+ %if !0%{?fedora}

  %{_bindir}/%{project}

- %{_bindir}/%{project}-2

- %{_bindir}/%{project}-%{python2_version}

+ %endif

  %{python2_sitelib}/%{module}

  %{python2_sitelib}/%{name_with_underscore}-%{version}-py?.?.egg-info

  %{_mandir}/man1/transtats.1.gz

@@ -110,14 +106,15 @@ 

  %doc README.md transtats.conf

  %license LICENSE

  %{_bindir}/%{project}

- %{_bindir}/%{project}-3

- %{_bindir}/%{project}-%{python3_version}

  %{python3_sitelib}/%{module}

  %{python3_sitelib}/%{name_with_underscore}-%{version}-py?.?.egg-info

  %{_mandir}/man1/transtats.1.gz

  %endif

  

  %changelog

+ * Tue Jan 30 2018 Jan Beran <jberan@redhat.com> - 0.1.1-4

+ - Fix of python3-transtats-cli requires both Python 2 and Python 3 (rhbz#1531568)

+ 

  * Wed Nov 15 2017 Sundeep Anand <suanand AT redhat DOT com> - 0.1.1-3

  - Update transtats-cli to version 0.1.1, update endpoints