[nemo-extensions/f19] clean up nemo-pastebin install

leigh123linux leigh123linux at fedoraproject.org
Tue Sep 24 22:48:44 UTC 2013


commit fd1de8ee25d33069110c1641b359a995d6656fcd
Author: leigh123linux <leigh123linux at googlemail.com>
Date:   Tue Sep 24 23:48:27 2013 +0100

    clean up nemo-pastebin install

 nemo-extensions.spec |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/nemo-extensions.spec b/nemo-extensions.spec
index 119e7f9..8517dca 100644
--- a/nemo-extensions.spec
+++ b/nemo-extensions.spec
@@ -2,7 +2,7 @@
 
 Name:           nemo-extensions
 Version:        1.8.0
-Release:        0.3.git%{_internal_version}%{?dist}
+Release:        0.4.git%{_internal_version}%{?dist}
 Summary:        Extensions for Nemo
 # No cinnamon on ARM due to missing python-pexpect
 # https://bugzilla.redhat.com/show_bug.cgi?id=999174
@@ -77,7 +77,6 @@ Python bindings for Nemo
 
 %prep
 %setup -q -n linuxmint-%{name}-%{_internal_version}
-sed -i -e 's at nemo-pastebin-configurator@nemo-pastebin-configurator.py at g' nemo-pastebin/data/nemo-pastebin-configurator.desktop
 
 %build
 pushd nemo-seahorse
@@ -116,9 +115,10 @@ pushd nemo-seahorse
 popd
 
 pushd nemo-pastebin
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%{__python} setup.py install -O1 --install-scripts=%{_datadir}/nemo-pastebin/ --skip-build --root %{buildroot}
 mkdir -p %{buildroot}/%{_datadir}/nemo-python/extensions/
-mv %{buildroot}/%{_bindir}/nemo-pastebin.py %{buildroot}/%{_datadir}/nemo-python/extensions/
+mv %{buildroot}/%{_datadir}/nemo-pastebin/nemo-pastebin.py %{buildroot}/%{_datadir}/nemo-python/extensions/
+ln -s %{_datadir}/nemo-pastebin/nemo-pastebin-configurator.py %{buildroot}/%{_bindir}/nemo-pastebin-configurator
 popd
 
 pushd nemo-fileroller
@@ -170,7 +170,7 @@ fi
 
 %files -n nemo-pastebin
 %doc nemo-pastebin/{README,NEWS}
-%{_bindir}/nemo-pastebin-configurator.py
+%{_bindir}/nemo-pastebin-configurator
 %{_datadir}/nemo-python/extensions/nemo-pastebin.py
 %{python_sitelib}/nemo_pastebin-1.0.0-py?.?.egg-info
 %{_datadir}/applications/nemo-pastebin-configurator.desktop
@@ -192,6 +192,9 @@ fi
 %{_libdir}/pkgconfig/nemo-python.pc
 
 %changelog
+* Tue Sep 24 2013 Leigh Scott <leigh123linux at googlemail.com> - 1.8.0-0.4.git3e366de
+- clean up nemo-pastebin install
+
 * Tue Sep 24 2013 Leigh Scott <leigh123linux at googlemail.com> - 1.8.0-0.3.git3e366de
 - fix files listed twice
 


More information about the scm-commits mailing list