1
0
Alexei Sorokin 2015-10-24 18:37:43 +00:00 committed by Git OBS Bridge
parent 30b43d467a
commit 275fd4c9a8
2 changed files with 19 additions and 10 deletions

View File

@ -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

View File

@ -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