From 275fd4c9a8148250a8ae7119d83975a79588c68575d358a72bb4448cb7e386b5 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Sat, 24 Oct 2015 18:37:43 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo-extensions?expand=0&rev=14 --- nemo-extensions.changes | 1 + nemo-extensions.spec | 28 ++++++++++++++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/nemo-extensions.changes b/nemo-extensions.changes index 3ab6a4a..751aeb0 100644 --- a/nemo-extensions.changes +++ b/nemo-extensions.changes @@ -8,6 +8,7 @@ Wed Oct 21 14:05:01 UTC 2015 - sor.alexei@meowr.ru - Remove nemo-extensions metapackage. - Add nemo-dropbox_no-dropbox-bin.patch: strip dropbox binary installation, and make nemo-extension-dropbox depend on dropbox. +- Generate Python bytecode. ------------------------------------------------------------------- Tue Jun 2 23:20:29 UTC 2015 - stefan@fam-elser.de diff --git a/nemo-extensions.spec b/nemo-extensions.spec index ec746a7..4a104dc 100644 --- a/nemo-extensions.spec +++ b/nemo-extensions.spec @@ -24,7 +24,7 @@ Summary: Set of extensions for Nemo, the Cinnamon file manager License: GPL-3.0+ and GPL-3.0 Group: System/GUI/Other Url: https://github.com/linuxmint/nemo-extensions -Source: %{name}-%{version}.tar.gz +Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # PATCH-FIX-UPSTREAM nemo-seahorse_gpg-2.1.patch stefan@fam-elser.de -- Add patch for GPG 2.1. Patch0: nemo-seahorse_gpg-2.1.patch # PATCH-FIX-OPENSUSE nemo-dropbox_no-dropbox-bin.patch sor.alexei@meowr.ru -- Strip dropbox binary installation. @@ -41,6 +41,7 @@ BuildRequires: mhash-devel BuildRequires: nemo-devel BuildRequires: openssl-devel BuildRequires: pkg-config +BuildRequires: python-devel BuildRequires: python-distutils-extra BuildRequires: python-gtk-devel BuildRequires: python-setuptools @@ -124,6 +125,7 @@ License: GPL-3.0+ Group: System/GUI/Other Requires: dropbox Requires: nemo >= %{_version} +Supplements: packageand(dropbox:nemo) # nemo-dropbox is last seen in openSUSE 13.2. Provides: nemo-dropbox = %{version} Obsoletes: nemo-dropbox < %{version} @@ -152,6 +154,7 @@ License: GPL-3.0+ Group: System/GUI/Other Requires: file-roller Requires: nemo >= %{_version} +Supplements: packageand(nemo:file-roller) # nemo-fileroller is last seen in openSUSE 13.2. Provides: nemo-fileroller = %{version} Obsoletes: nemo-fileroller < %{version} @@ -234,6 +237,7 @@ allows users to send files to pastebins just a right-click away. Summary: A quick previewer for Nemo file manager License: GPL-2.0+ Group: System/GUI/Other +Requires: gstreamer-plugins-good Requires: nemo >= %{_version} # nemo-preview is last seen in openSUSE 13.2. Obsoletes: nemo-preview < %{version} @@ -251,7 +255,7 @@ Group: System/GUI/Other Requires: dbus-1-python Requires: nemo >= %{_version} Requires: python-nemo = %{version} -Supplements: packageand(rabbitvcs:nemo) +Supplements: packageand(nemo:rabbitvcs) # nemo-rabbitvcs is last seen in openSUSE 13.2. Obsoletes: nemo-rabbitvcs < %{version} Provides: nemo-rabbitvcs = %{version} @@ -283,6 +287,8 @@ Summary: OpenPGP encryption/decryption extension for Nemo file manager License: GPL-2.0+ Group: System/GUI/Other Requires: nemo >= %{_version} +Requires: seahorse +Supplements: packageand(nemo:seahorse) # nemo-seahorse is last seen in openSUSE 13.2. Provides: nemo-seahorse = %{version} Obsoletes: nemo-seahorse < %{version} @@ -297,6 +303,7 @@ License: GPL-2.0+ Group: System/GUI/Other Requires: nemo >= %{_version} Recommends: samba +Supplements: packageand(nemo:samba) # nemo-share is last seen in openSUSE 13.2. Provides: nemo-share = %{version} Obsoletes: nemo-share < %{version} @@ -375,14 +382,10 @@ find . -type d -maxdepth 1 -mindepth 1 | while read dir; do done # For nemo-extension-audio-tab. -for file in nemo-audio-tab.{py,glade}; do - install -Dm 0644 nemo-audio-tab/nemo-extension/$file %{buildroot}%{_datadir}/nemo-python/extensions/$file -done - -# For nemo-extension-audio-tab. -for file in nemo-audio-tab.{py,glade}; do - install -Dm 0755 nemo-audio-tab/nemo-extension/$file %{buildroot}%{_datadir}/nemo-python/extensions/$file -done +install -Dm 0644 nemo-audio-tab/nemo-extension/nemo-audio-tab.py \ + %{buildroot}%{_datadir}/nemo-python/extensions/nemo-audio-tab.py +install -Dm 0755 nemo-audio-tab/nemo-extension/nemo-audio-tab.glade \ + %{buildroot}%{_datadir}/nemo-python/extensions/nemo-audio-tab.glade # For nemo-extension-compare. # "gtk-preferences icon isn't in hicolor-icon-theme, why not Meld? @@ -447,6 +450,11 @@ for ext in emblems gtkhash filename-repairer image-converter pastebin preview sh %find_lang nemo-$ext done +# Compile Python bytecode. +dirname $(find %{buildroot}%{_datadir}/ -type f -name '*.py') | sort -u | while read dir; do + %py_compile . +done + find %{buildroot} -type f -name "*.la" -delete -print %post -n python-nemo -p /sbin/ldconfig