File nautilus-actions.spec of Package nautilus-actions

#
# spec file for package nautilus-actions
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define _nautilus_extdir %(pkg-config --variable extensiondir libnautilus-extension)

Name:           nautilus-actions
Version:        3.2.2
Release:        0
License:        GPL-2.0+
Summary:        Nautilus extension to launch arbitrary applications on files
Url:            http://www.nautilus-actions.org/
Group:          System/GUI/GNOME
Source:         http://download.gnome.org/sources/nautilus-actions/3.2/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gio-2.0) >= 2.30.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.24.0
BuildRequires:  pkgconfig(gnome-doc-utils)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libgtop-2.0)
BuildRequires:  pkgconfig(libnautilus-extension)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(sm) >= 1.0
BuildRequires:  pkgconfig(unique-3.0)
BuildRequires:  pkgconfig(uuid)
Requires:       nautilus
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Nautilus-Actions is an extension for Nautilus file manager which allows to add
arbitrary items to Nautilus context menus and to the menu bar.

%package devel
License:        GPL-2.0+
Summary:        Nautilus extension to launch arbitrary applications on files -- Development Files
Group:          Development/Languages/C and C++
Requires:       %{name} = %{version}

%description devel
Nautilus-Actions is an extension for Nautilus file manager which allows to add
arbitrary items to Nautilus context menus and to the menu bar.

%lang_package
%prep
%setup -q

%build
# Note: --disable-schemas-install fully removes installation of
# schemas; however, since settings are not stored in gconf anymore,
# it doesn't matter
%configure \
        --disable-schemas-install \
        --disable-scrollkeeper
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
# Remove doc files that either aren't needed (html/pdf docs,
# uninteresting files) or that we ship in another way (as %%doc)
for file in AUTHORS ChangeLog* COPYING COPYING-DOCS \
  INSTALL MAINTAINERS NEWS objects-hierarchy.odg README \
  README-GCONF TODO; do
  rm %{buildroot}%{_datadir}/doc/%{name}-%{version}/$file
done
for dir in html pdf; do
  rm -r %{buildroot}%{_datadir}/doc/%{name}-%{version}/$dir
done
# Standard packaging
%suse_update_desktop_file nact
%find_lang %{name} %{?no_lang_C}
%find_lang %{name}-config-tool %{name}.lang %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}

%clean
%{?buildroot:%__rm -rf %{buildroot}}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING COPYING-DOCS README README-GCONF
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}-config-tool/
%doc %{_datadir}/gnome/help/%{name}-config-tool/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}-config-tool/
%doc %{_datadir}/omf/%{name}-config-tool/%{name}-config-tool-C.omf
%{_bindir}/%{name}-config-tool
%{_bindir}/%{name}-new
%{_bindir}/%{name}-print
%{_bindir}/%{name}-run
%{_datadir}/%{name}/
%{_nautilus_extdir}/libnautilus-actions-menu.so
%{_nautilus_extdir}/libnautilus-actions-tracker.so
%{_libdir}/%{name}/
%if "%{_libdir}" != "%{_libexecdir}"
%{_libexecdir}/%{name}/
%endif
%{_datadir}/applications/nact.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*

%files devel
%defattr(-, root, root)
%doc docs/objects-hierarchy.odg
%doc %{_datadir}/gtk-doc/html/%{name}-3/
%{_includedir}/%{name}/

%files lang -f %{name}.lang

%changelog