a1d55fc
#global _internal_version  6c86726
e38308b
e38308b
Name:           nemo-extensions
a1d55fc
Version:        2.2.x
a1d55fc
Release:        1%{?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        
a1d55fc
Source0:        http://leigh123linux.fedorapeople.org/pub/nemo-extensions/source/nemo-extensions-%{version}.tar.gz
e38308b
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
e38308b
e38308b
%description
e38308b
Extensions for Nemo
e38308b
e38308b
%package     -n nemo-pastebin
e38308b
Summary:     Pastebin extension for Nemo
e38308b
License:     GPLv2+
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+
6382a9b
Requires:    rabbitvcs-core
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+
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
15b6f8b
Summary:     Nemo Terminal is a terminal embedded in Nemo
15b6f8b
License:     GPLv3+
15b6f8b
Requires:    vte
15b6f8b
Requires:    nemo-python
15b6f8b
15b6f8b
%description -n nemo-terminal
15b6f8b
Nemo Terminal is a terminal embedded in 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
e38308b
%prep
a1d55fc
%setup -q
e38308b
e38308b
%build
e38308b
pushd nemo-pastebin
e38308b
%{__python} setup.py build
e38308b
popd
e38308b
e38308b
pushd nemo-fileroller
e38308b
rm missing
e38308b
NOCONFIGURE=1 ./autogen.sh
e38308b
%configure
e38308b
make V=1 %{?_smp_mflags}
e38308b
popd
e38308b
e38308b
pushd nemo-python
e38308b
rm missing
e38308b
mv configure.in configure.ac
e38308b
NOCONFIGURE=1 ./autogen.sh
bd701c0
%if 0%{?fedora} < 20
bd701c0
%configure --docdir=%{_datadir}/doc/nemo-python-%{version}
bd701c0
%else
e38308b
%configure --docdir=%{_datadir}/doc/nemo-python
bd701c0
%endif
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
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
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
e7821a1
%find_lang nemo-preview
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
15b6f8b
%doc nemo-pastebin/{README,NEWS,COPYING}
fd1de8e
%{_bindir}/nemo-pastebin-configurator
e38308b
%{_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
6382a9b
%doc nemo-rabbitvcs/COPYING
6382a9b
%{_datadir}/nemo-python/extensions/RabbitVCS.py
6382a9b
e38308b
%files -n nemo-fileroller
e38308b
%doc nemo-fileroller/COPYING
e38308b
%{_libdir}/nemo/extensions-3.0/libnemo-fileroller.so
e38308b
e38308b
%files -n nemo-python
e38308b
%doc nemo-fileroller/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
15b6f8b
%doc nemo-terminal/COPYING
15b6f8b
%{_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
e7821a1
%doc nemo-preview/{README,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
e38308b
%changelog
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