diff --git a/nemo-extensions.spec b/nemo-extensions.spec index 035e655..ec746a7 100644 --- a/nemo-extensions.spec +++ b/nemo-extensions.spec @@ -70,13 +70,26 @@ BuildRequires: mbedtls-devel %description Set of extensions for Nemo, the Cinnamon file manager. +%package -n python-nemo +Summary: Python bindings for the Nemo File manager +License: GPL-2.0 +Group: System/GUI/Other +Requires: nemo >= %{_version} +Provides: python-nemo-devel = %{version} +# nemo-python is last seen in openSUSE 13.2. +Provides: nemo-python = %{version} +Obsoletes: nemo-python < %{version} + +%description -n python-nemo +Includes Python bindings for the Nemo Filemanager. + %package -n nemo-extension-audio-tab Summary: Audio tag information for Nemo file manager License: GPL-3.0+ Group: System/GUI/Other Requires: nemo >= %{_version} -Requires: nemo-python = %{version} Requires: python-mutagen +Requires: python-nemo = %{version} BuildArch: noarch %description -n nemo-extension-audio-tab @@ -88,9 +101,9 @@ License: GPL-3.0+ Group: System/GUI/Other Requires: meld Requires: nemo >= %{_version} -Requires: nemo-python = %{version} Requires: python-gobject Requires: python-gtk +Requires: python-nemo = %{version} Requires: python-xdg # nemo-compare is last seen in openSUSE 13.2. Provides: nemo-compare = %{version} @@ -183,11 +196,11 @@ Summary: Nemo Media Columns License: GPL-3.0 Group: System/GUI/Other Requires: nemo >= %{_version} -Requires: nemo-python Requires: python-gobject Requires: python-imaging Requires: python-kaa-metadata Requires: python-mutagen +Requires: python-nemo = %{version} Requires: python-pyexiv2 Requires: python-pypdf # nemo-media-columns is last seen in openSUSE 13.2. @@ -231,26 +244,13 @@ Provides: nemo-extension-preview-devel = %{version} This is NemoPreview, a quick previewer for Nemo, the Cinnamon desktop file manager. -%package -n nemo-extension-python -Summary: Python bindings for the Nemo Filemanager -License: GPL-2.0 -Group: System/GUI/Other -Requires: nemo >= %{_version} -# nemo-python is last seen in openSUSE 13.2. -Obsoletes: nemo-python < %{version} -Provides: nemo-python = %{version} -Provides: nemo-extension-python-devel = %{version} - -%description -n nemo-extension-python -Includes Python bindings for the Nemo Filemanager. - %package -n nemo-extension-rabbitvcs Summary: RabbitVCS extension for Nemo file manager License: GPL-3.0+ Group: System/GUI/Other Requires: dbus-1-python Requires: nemo >= %{_version} -Requires: nemo-python +Requires: python-nemo = %{version} Supplements: packageand(rabbitvcs:nemo) # nemo-rabbitvcs is last seen in openSUSE 13.2. Obsoletes: nemo-rabbitvcs < %{version} @@ -310,8 +310,8 @@ Summary: Nemo extension to enable an embedded terminal License: GPL-3.0+ Group: System/GUI/Other Requires: nemo >= %{_version} -Requires: nemo-python = %{version} Requires: python-gobject +Requires: python-nemo = %{version} # nemo-terminal is last seen in openSUSE 13.2. Provides: nemo-terminal = %{version} Obsoletes: nemo-terminal < %{version} @@ -343,7 +343,7 @@ find . -type d -maxdepth 1 -mindepth 1 | while read dir; do popd done -# For nemo-gtkhash. +# For nemo-extension-gtkhash. pushd nemo-gtkhash %configure \ --disable-static \ @@ -374,17 +374,17 @@ find . -type d -maxdepth 1 -mindepth 1 | while read dir; do popd done -# For nemo-audio-tab. +# 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-audio-tab. +# 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 -# For nemo-compare. +# For nemo-extension-compare. # "gtk-preferences icon isn't in hicolor-icon-theme, why not Meld? sed -i 's/^\(Icon=\).*$/\1meld/' nemo-compare/data/nemo-compare-preferences.desktop @@ -412,29 +412,29 @@ done popd %find_lang nemo-compare -# For nemo-media-columns. +# For nemo-extension-media-columns. install -Dm 0755 nemo-media-columns/nemo-media-columns.py \ %{buildroot}%{_datadir}/nemo-python/extensions/nemo-media-columns.py -# For nemo-pastebin +# For nemo-extension-pastebin. sed -i 's/^\(Exec=nemo-pastebin-configurator\)/\1.py/' %{buildroot}%{_datadir}/applications/nemo-pastebin-configurator.desktop %suse_update_desktop_file nemo-pastebin-configurator System FileManager -# For nemo-python. +# For python-nemo. mkdir -p %{buildroot}%{_docdir}/ mv -f %{buildroot}%{_datadir}/doc/nemo-python/ %{buildroot}%{_docdir}/nemo-python/ -# For nemo-rabbitvcs. +# For nemo-extension-rabbitvcs. install -Dm 0644 nemo-rabbitvcs/RabbitVCS.py \ %{buildroot}%{_datadir}/nemo-python/extensions/RabbitVCS.py -# For nemo-seahorse. +# For nemo-extension-seahorse. %find_lang nemo-seahorse %suse_update_desktop_file seahorse-pgp-encrypted %suse_update_desktop_file seahorse-pgp-keys %suse_update_desktop_file seahorse-pgp-signature -# For nemo-terminal. +# For nemo-extension-terminal. pushd nemo-terminal mkdir -p %{buildroot}%{_datadir}/nemo-terminal/ install -Dm 0755 src/nemo_terminal.py \ @@ -449,6 +449,10 @@ done find %{buildroot} -type f -name "*.la" -delete -print +%post -n python-nemo -p /sbin/ldconfig + +%postun -n python-nemo -p /sbin/ldconfig + %post -n nemo-extension-dropbox -p /sbin/ldconfig %postun -n nemo-extension-dropbox -p /sbin/ldconfig @@ -473,10 +477,6 @@ find %{buildroot} -type f -name "*.la" -delete -print %postun -n nemo-extension-preview -p /sbin/ldconfig -%post -n nemo-extension-python -p /sbin/ldconfig - -%postun -n nemo-extension-python -p /sbin/ldconfig - %post -n nemo-extension-pastebin %glib2_gsettings_schema_post @@ -501,6 +501,15 @@ find %{buildroot} -type f -name "*.la" -delete -print %postun -n nemo-extension-terminal %glib2_gsettings_schema_postun +%files -n python-nemo +%defattr(-,root,root) +%doc nemo-python/AUTHORS nemo-python/COPYING nemo-python/debian/changelog +%doc %{_docdir}/nemo-python/ +%{_libdir}/nemo/extensions-3.0/libnemo-python.so +%{_libdir}/pkgconfig/nemo-python.pc +%dir %{_datadir}/nemo-python/ +%dir %{_datadir}/nemo-python/extensions/ + %files -n nemo-extension-audio-tab %defattr(-,root,root) %doc nemo-audio-tab/COPYING* nemo-audio-tab/debian/changelog @@ -571,15 +580,6 @@ find %{buildroot} -type f -name "*.la" -delete -print %{_datadir}/nemo-preview/ %{_datadir}/dbus-1/services/org.nemo.Preview.service -%files -n nemo-extension-python -%defattr(-,root,root) -%doc nemo-python/AUTHORS nemo-python/COPYING nemo-python/debian/changelog -%doc %{_docdir}/nemo-python/ -%{_libdir}/nemo/extensions-3.0/libnemo-python.so -%{_libdir}/pkgconfig/nemo-python.pc -%dir %{_datadir}/nemo-python/ -%dir %{_datadir}/nemo-python/extensions/ - %files -n nemo-extension-rabbitvcs %defattr(-,root,root) %doc nemo-rabbitvcs/AUTHORS nemo-rabbitvcs/COPYING nemo-rabbitvcs/debian/changelog