08d6cea
#global _internal_version  ed31dbd
e38308b
e38308b
Name:           nemo-extensions
212ccfa
Version:        2.6.x
1601975
Release:        6%{?dist}
e38308b
Summary:        Extensions for Nemo
e38308b
e38308b
License:        GPLv2+ and LGPLv2
e38308b
URL:            http://cinnamon.linuxmint.com
e38308b
# To generate tarball
e38308b
# wget https://github.com/linuxmint/nemo-extensions/tarball/%%{_internal_version} -O nemo-extensions-%%{version}.git%%{_internal_version}.tar.gz        
08d6cea
#Source0:        http://leigh123linux.fedorapeople.org/pub/nemo-extensions/source/nemo-extensions-%%{version}.git%%{_internal_version}.tar.gz
08d6cea
Source0:        http://leigh123linux.fedorapeople.org/pub/nemo-extensions/source/nemo-extensions-%{version}.tar.gz
b992ec8
Patch0:         fix_cd_change.patch
e38308b
8453043
e38308b
BuildRequires:  nemo-devel
e38308b
BuildRequires:  python-distutils-extra
e38308b
BuildRequires:  python2-devel
e38308b
BuildRequires:  desktop-file-utils
e38308b
BuildRequires:  pygobject2-devel
e38308b
BuildRequires:  pygobject3-devel
e38308b
BuildRequires:  gnome-common
e38308b
BuildRequires:  intltool
e38308b
BuildRequires:  gtk-doc  
e7821a1
BuildRequires:  libnotify-devel 
e7821a1
BuildRequires:  cjs-devel
e7821a1
BuildRequires:  evince-devel
e7821a1
BuildRequires:  libmusicbrainz5-devel
e7821a1
BuildRequires:  gstreamer1-plugins-base-devel
e7821a1
BuildRequires:  webkitgtk3-devel
e7821a1
BuildRequires:  clutter-gtk-devel
e7821a1
BuildRequires:  clutter-gst2-devel
e7821a1
BuildRequires:  gtksourceview3-devel
29f5e41
BuildRequires:  perl(XML::Parser)
e38308b
e38308b
%description
e38308b
Extensions for Nemo
e38308b
e38308b
%package     -n nemo-pastebin
e38308b
Summary:     Pastebin extension for Nemo
e38308b
License:     GPLv2+
7d9b026
BuildArch:   noarch
e38308b
Requires:    pastebinit
e38308b
Requires:    nemo-python
e38308b
e38308b
%description -n nemo-pastebin
e38308b
nemo-pastebin is an extension for the Nemo file manager, which allows
e38308b
users to send files to pastebins just a right-click away.
e38308b
6382a9b
%package     -n nemo-rabbitvcs
6382a9b
Summary:     RabbitVCS extension for Nemo
6382a9b
License:     GPLv2+
7d9b026
BuildArch:   noarch
1601975
Requires:    rabbitvcs-nemo
6382a9b
Requires:    nemo-python
75779cc
Requires:    python-simplejson
6382a9b
6382a9b
%description -n nemo-rabbitvcs
6382a9b
nemo-rabbitvcs is an extension for the Nemo file manager.
6382a9b
It provides easy access to the version control systems like SVN or Git.
6382a9b
e38308b
%package     -n nemo-fileroller
e38308b
Summary:     File Roller extension for Nemo
e38308b
License:     GPLv2+
e38308b
Requires:    file-roller
e38308b
e38308b
%description -n nemo-fileroller
e38308b
This package contains the file-roller extension for the Nemo.
e38308b
e38308b
%package     -n nemo-python
e38308b
Summary:     Python bindings for Nemo
e38308b
License:     GPLv2+
29f5e41
Requires:    nemo
e38308b
Requires:    pygobject3-base
e38308b
e38308b
%description -n nemo-python
e38308b
Python bindings for Nemo
e38308b
e38308b
%package     -n nemo-python-devel
e38308b
Summary:     Python bindings for Nemo
e38308b
License:     GPLv2+
e38308b
Requires:    nemo-python = %{version}-%{release}
e38308b
e38308b
%description -n nemo-python-devel
e38308b
Python bindings for Nemo
e38308b
15b6f8b
%package     -n nemo-terminal
29f5e41
Summary:     Embedded terminal window for Nemo
15b6f8b
License:     GPLv3+
7d9b026
BuildArch:   noarch
88f1fa4
Requires:    vte3
15b6f8b
Requires:    nemo-python
15b6f8b
15b6f8b
%description -n nemo-terminal
29f5e41
Embedded terminal window for Nemo
15b6f8b
e7821a1
%package     -n nemo-preview
e7821a1
Summary:     A quick previewer for Nemo
e7821a1
License:     GPLv2+
e7821a1
Requires:    nemo
e7821a1
e7821a1
%description -n nemo-preview
e7821a1
Nemo Preview is a GtkClutter and Javascript-based quick previewer 
e7821a1
for Nemo.
e7821a1
It is capable of previewing documents, PDFs, sound and video files,
e7821a1
some text files, and possibly others in the future.
e7821a1
e7821a1
To activate the preview, left-click the file and hit space.
e7821a1
The preview can be closed by hitting space again, or escape.
e7821a1
29f5e41
%package     -n nemo-emblems
29f5e41
Summary:     Emblem support for nemo
29f5e41
License:     GPLv3+
7d9b026
BuildArch:   noarch
29f5e41
Requires:    nemo-python
29f5e41
29f5e41
%description -n nemo-emblems
29f5e41
Restores the emblems functionality that used to be in GNOME 2. 
29f5e41
29f5e41
%package     -n nemo-image-converter
29f5e41
Summary:     Nemo extension to mass resize images
29f5e41
Requires:    ImageMagick
29f5e41
License:     GPLv3+
29f5e41
29f5e41
%description -n nemo-image-converter
29f5e41
Adds a "Resize Images..." menu item to the context menu. This opens a dialog where you set the desired image size and file name.
29f5e41
1506d8a
%package     -n nemo-compare
1506d8a
Summary:     Context menu comparison extension for nemo
1506d8a
License:     GPLv3+
1506d8a
BuildArch:   noarch
1506d8a
Requires:    nemo-python
1506d8a
Requires:    meld
1506d8a
Requires:    pyxdg
1506d8a
1506d8a
%description -n nemo-compare
1506d8a
Context menu comparison extension for Nemo file manager. 
1506d8a
e38308b
%prep
08d6cea
%setup -q
b992ec8
%patch0 -p1
e38308b
e38308b
%build
e38308b
pushd nemo-pastebin
e38308b
%{__python} setup.py build
e38308b
popd
e38308b
e38308b
pushd nemo-fileroller
e38308b
NOCONFIGURE=1 ./autogen.sh
e38308b
%configure
e38308b
make V=1 %{?_smp_mflags}
e38308b
popd
e38308b
e38308b
pushd nemo-python
e38308b
mv configure.in configure.ac
e38308b
NOCONFIGURE=1 ./autogen.sh
91e4a44
%configure
e38308b
make V=1 %{?_smp_mflags}
e38308b
popd
e38308b
e7821a1
pushd nemo-preview
e7821a1
NOCONFIGURE=1 ./autogen.sh
e7821a1
intltoolize -f
e7821a1
%configure
e7821a1
make V=1 %{?_smp_mflags}
e7821a1
popd
e7821a1
29f5e41
pushd nemo-image-converter
212ccfa
NOCONFIGURE=1 gnome-autogen.sh
29f5e41
%configure
29f5e41
make V=1 %{?_smp_mflags}
29f5e41
popd
29f5e41
e38308b
%install
e38308b
rm -rf %{buildroot}
e38308b
pushd nemo-pastebin
fd1de8e
%{__python} setup.py install -O1 --install-scripts=%{_datadir}/nemo-pastebin/ --skip-build --root %{buildroot}
e38308b
mkdir -p %{buildroot}/%{_datadir}/nemo-python/extensions/
fd1de8e
mv %{buildroot}/%{_datadir}/nemo-pastebin/nemo-pastebin.py %{buildroot}/%{_datadir}/nemo-python/extensions/
4b5957e
mkdir -p %{buildroot}/%{_bindir}/
fd1de8e
ln -s %{_datadir}/nemo-pastebin/nemo-pastebin-configurator.py %{buildroot}/%{_bindir}/nemo-pastebin-configurator
e38308b
popd
e38308b
6382a9b
pushd nemo-rabbitvcs
15b6f8b
install -pm 0644 RabbitVCS.py %{buildroot}/%{_datadir}/nemo-python/extensions/
6382a9b
popd
6382a9b
e38308b
pushd nemo-fileroller
e38308b
%make_install
e38308b
popd
e38308b
e38308b
pushd nemo-python
e38308b
%make_install
e38308b
popd
e38308b
15b6f8b
pushd nemo-terminal
15b6f8b
mkdir %{buildroot}/%{_datadir}/nemo-terminal
15b6f8b
install -pm 0644 src/nemo_terminal.py %{buildroot}/%{_datadir}/nemo-python/extensions/
15b6f8b
install -pm 0644 src/org.nemo.extensions.nemo-terminal.gschema.xml %{buildroot}/%{_datadir}/glib-2.0/schemas/
15b6f8b
install -pm 0644 pixmap/logo_120x120.png %{buildroot}/%{_datadir}/nemo-terminal
15b6f8b
popd
15b6f8b
e7821a1
pushd nemo-preview
e7821a1
%make_install
e7821a1
popd
e7821a1
29f5e41
pushd nemo-emblems
29f5e41
install -pm 0644 nemo-extension/nemo-emblems.py %{buildroot}/%{_datadir}/nemo-python/extensions/
29f5e41
chmod -x COPYING.GPL3
29f5e41
popd
29f5e41
29f5e41
pushd nemo-image-converter
29f5e41
%make_install
29f5e41
popd
29f5e41
1506d8a
pushd nemo-compare
1506d8a
install -pm 0644 src/{nemo-compare,nemo-compare-preferences,utils}.py %{buildroot}/%{_datadir}/nemo-python/extensions/
1506d8a
install -pm 0644 data/nemo-compare-preferences.desktop %{buildroot}/%{_datadir}/applications/
1506d8a
popd
1506d8a
e38308b
# remove useless libtool archive files
e38308b
rm %{buildroot}/%{_libdir}/nemo/extensions-3.0/libnemo-*.la
e38308b
rm %{buildroot}/%{_libdir}/nemo/extensions-3.0/libnemo-*.a
e7821a1
rm %{buildroot}/%{_libdir}/nemo-preview/libnemo-preview-1.0.la
e38308b
e38308b
desktop-file-install                                    \
e38308b
 --delete-original                                      \
e38308b
 --dir=%{buildroot}%{_datadir}/applications             \
e38308b
 %{buildroot}/%{_datadir}/applications/nemo-pastebin-configurator.desktop
e38308b
1506d8a
desktop-file-install                                    \
1506d8a
 --delete-original                                      \
1506d8a
 --dir=%{buildroot}%{_datadir}/applications             \
1506d8a
 %{buildroot}/%{_datadir}/applications/nemo-compare-preferences.desktop
1506d8a
e7821a1
%find_lang nemo-preview
29f5e41
%find_lang nemo-image-converter
e38308b
e38308b
%postun -n nemo-pastebin
e38308b
if [ $1 -eq 0 ] ; then
e38308b
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
e38308b
fi
e38308b
e38308b
%posttrans -n nemo-pastebin
e38308b
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
e38308b
15b6f8b
%postun -n nemo-terminal
15b6f8b
if [ $1 -eq 0 ] ; then
15b6f8b
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
15b6f8b
fi
15b6f8b
15b6f8b
%posttrans -n nemo-terminal
15b6f8b
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
15b6f8b
e38308b
e38308b
%files -n nemo-pastebin
d93c0b4
%doc nemo-pastebin/README
d93c0b4
%doc nemo-pastebin/NEWS
91e4a44
%license nemo-pastebin/COPYING
fd1de8e
%{_bindir}/nemo-pastebin-configurator
4b87cf0
%{_datadir}/nemo-python/extensions/nemo-pastebin.py*
e38308b
%{python_sitelib}/nemo_pastebin-1.0.0-py?.?.egg-info
e38308b
%{_datadir}/applications/nemo-pastebin-configurator.desktop
e38308b
%{_datadir}/glib-2.0/schemas/nemo-pastebin.gschema.xml
e38308b
%{_datadir}/nemo-pastebin/
e38308b
%{_datadir}/pixmaps/nemo-pastebin.svg
e38308b
6382a9b
%files -n nemo-rabbitvcs
91e4a44
%doc nemo-rabbitvcs/README
91e4a44
%license nemo-rabbitvcs/COPYING
1601975
%exclude %{_datadir}/nemo-python/extensions/RabbitVCS.py*
6382a9b
e38308b
%files -n nemo-fileroller
91e4a44
%doc nemo-fileroller/README
91e4a44
%license nemo-fileroller/COPYING
e38308b
%{_libdir}/nemo/extensions-3.0/libnemo-fileroller.so
e38308b
e38308b
%files -n nemo-python
91e4a44
%doc nemo-python/README
5cd9ace
%doc nemo-python/examples
91e4a44
%license nemo-python/COPYING
e38308b
%{_libdir}/nemo/extensions-3.0/libnemo-python.so
e38308b
%{_datadir}/nemo-python/
bd701c0
%exclude %{_datadir}/nemo-python/extensions/*
e38308b
e38308b
%files -n nemo-python-devel
e38308b
%{_libdir}/pkgconfig/nemo-python.pc
e38308b
15b6f8b
%files -n nemo-terminal
91e4a44
%doc nemo-terminal/README
91e4a44
%license nemo-terminal/COPYING
4b87cf0
%{_datadir}/nemo-python/extensions/nemo_terminal.py*
15b6f8b
%{_datadir}/nemo-terminal/
15b6f8b
%{_datadir}/glib-2.0/schemas/org.nemo.extensions.nemo-terminal.gschema.xml
15b6f8b
e7821a1
%files -n nemo-preview -f nemo-preview.lang
91e4a44
%doc nemo-preview/README
91e4a44
%license nemo-preview/COPYING
e7821a1
%{_bindir}/nemo-preview
e7821a1
%{_libdir}/nemo-preview/
e7821a1
%{_libexecdir}/nemo-preview-start
e7821a1
%{_datadir}/nemo-preview/
e7821a1
%{_datadir}/dbus-1/services/org.nemo.Preview.service
e7821a1
29f5e41
%files -n nemo-emblems
91e4a44
%license nemo-emblems/COPYING.GPL3
4b87cf0
%{_datadir}/nemo-python/extensions/nemo-emblems.py*
29f5e41
29f5e41
%files -n nemo-image-converter  -f nemo-image-converter.lang
91e4a44
%doc nemo-image-converter/README
91e4a44
%license nemo-image-converter/COPYING
29f5e41
%{_libdir}/nemo/extensions-3.0/libnemo-image-converter.so
29f5e41
%{_datadir}/nemo-image-converter/
29f5e41
1506d8a
%files -n nemo-compare
4b87cf0
%{_datadir}/nemo-python/extensions/nemo-compare.py*
4b87cf0
%{_datadir}/nemo-python/extensions/nemo-compare-preferences.py*
4b87cf0
%{_datadir}/nemo-python/extensions/utils.py*
1506d8a
%{_datadir}/applications/nemo-compare-preferences.desktop
1506d8a
e38308b
%changelog
1601975
* Sun Mar 06 2016 Leigh Scott <leigh123linux@googlemail.com> - 2.6.x-6
1601975
- fix nemo-rabbitvcs
1601975
351a67b
* Sat Jul 25 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.x-5
351a67b
- build fixes
351a67b
1506d8a
* Sat Jul 25 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.x-4
1506d8a
- add nemo-compare
1506d8a
b992ec8
* Mon Jul 13 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.x-3
b992ec8
- fix cd (nemo-terminal)
b992ec8
8917e91
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.x-2
8917e91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8917e91
212ccfa
* Tue Jun 02 2015 Leigh Scott <leigh123linux@googlemail.com> - 2.6.x-1
212ccfa
- update to 2.6.x
212ccfa
9f813e9
* Thu Nov 27 2014 Haïkel Guémar <hguemar@fedoraproject.org> - 2.4.x-3
9f813e9
- Rebuilt against newer libmusicbrainz5 (required for nemo-preview)
9f813e9
88f1fa4
* Thu Nov 13 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.x-2
88f1fa4
- change requires on nemo-terminal to vte3
88f1fa4
- add patch to fix nemo-terminal
88f1fa4
08d6cea
* Sat Nov 01 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.4.x-1
08d6cea
- update to 2.4.x
08d6cea
7d9b026
* Tue Oct 21 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.3.x-0.2.gited31dbd
7d9b026
- add noarch
7d9b026
29f5e41
* Tue Oct 21 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.3.x-0.1.gited31dbd
29f5e41
- update to latest git
29f5e41
- add nemo-emblems
29f5e41
- add nemo-image-converter
29f5e41
8453043
* Sun Oct 19 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.x-6
8453043
- patch nemo-preview for gjs changes (bz 1154111)
8453043
390df4c
* Wed Oct 01 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.x-5
390df4c
- rebuilt
390df4c
19b5869
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.x-4
19b5869
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
19b5869
d53779e
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 2.2.x-3
d53779e
- Rebuilt for gobject-introspection 1.41.4
d53779e
a5ac726
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.x-2
a5ac726
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a5ac726
a1d55fc
* Mon Apr 14 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.2.x-1
a1d55fc
- update to 2.2.x
a1d55fc
c4f7b01
* Thu Feb 20 2014 Kalev Lember <kalevlember@gmail.com> - 2.0.0-0.6.git6c86726
c4f7b01
- Rebuilt for cogl soname bump
c4f7b01
Peter Hutterer e5fde2b
* Mon Feb 10 2014 Peter Hutterer <peter.hutterer@redhat.com> - 2.0.0-0.5.git6c86726
Peter Hutterer e5fde2b
- Rebuild for libevdev soname bump
Peter Hutterer e5fde2b
a0ac1c9
* Fri Feb 07 2014 Leigh Scott <leigh123linux@googlemail.com> - 2.0.0-0.4.git6c86726
a0ac1c9
- rebuilt for new cogl .so version
a0ac1c9
75779cc
* Sat Nov 23 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.0-0.3.git6c86726
75779cc
- add requires python-simplejson to nemo-rabbitvcs
75779cc
e7821a1
* Sat Nov 23 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.0-0.2.git6c86726
e7821a1
- add nemo-preview extension
e7821a1
15b6f8b
* Thu Oct 31 2013 Leigh Scott <leigh123linux@googlemail.com> - 2.0.0-0.1.gitfd3cc88
15b6f8b
- update to latest git
15b6f8b
- add nemo-terminal extension
15b6f8b
79e1007
* Sun Oct 20 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-0.6.git3e366de
79e1007
- remove the seahorse extension because
79e1007
  it's broken and conflicts with seahorse-nautilus
79e1007
  (can't be bothered to fix it)
79e1007
6382a9b
* Tue Oct 08 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-0.5.git3e366de
6382a9b
- add nemo-rabbitvcs sub-package
6382a9b
fd1de8e
* Tue Sep 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-0.4.git3e366de
fd1de8e
- clean up nemo-pastebin install
fd1de8e
bd701c0
* Tue Sep 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-0.3.git3e366de
bd701c0
- fix files listed twice
bd701c0
e38308b
* Tue Sep 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-0.2.git3e366de
e38308b
- fix nemo-pastebin
e38308b
- add python extensions directory
e38308b
e38308b
* Tue Sep 24 2013 Leigh Scott <leigh123linux@googlemail.com> - 1.8.0-0.1.git3e366de
e38308b
- Initial build
e38308b