File eiciel.spec of Package eiciel

#
# spec file for package eiciel
#
# Copyright (c) 2014 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 _libnautilus_extensiondir %(pkg-config --variable extensiondir libnautilus-extension)
Name:           eiciel
Version:        0.9.9
Release:        0
Summary:        GNOME ACL viewer and editor
License:        GPL-2.0+
Group:          System/GUI/GNOME
Url:            http://rofi.roger-ferrer.org/eiciel/
Source:         http://rofi.roger-ferrer.org/eiciel/download/%{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  intltool
BuildRequires:  libacl-devel
BuildRequires:  libattr-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  translation-update-upstream
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?favor_gtk2}
BuildRequires:  pkgconfig(gtkmm-2.4)
BuildRequires:  pkgconfig(libnautilus-extension) < 2.90
%else
BuildRequires:  pkgconfig(gtkmm-3.0)
BuildRequires:  pkgconfig(libnautilus-extension) >= 3.0.0
%endif

%description
Eiciel allows you to visually edit file ACL entries. You can add and
remove users and groups who will be granted permissions through the
graphical interface

%package -n nautilus-eiciel
Summary:        Nautilus ACL viewer and editor extension
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}
Supplements:    packageand(eiciel:nautilus)

%description -n nautilus-eiciel
A Nautilus extension that allows viewing and editing ACL permissions.

%lang_package

%prep
%setup -q
translation-update-upstream

%build
%configure \
        --disable-static \
%if 0%{?favor_gtk2}
        --with-gnome-version=2
%else
        --with-gnome-version=3
%endif
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
rm %{buildroot}%{_datadir}/applications/*.desktop
%fdupes -s %{buildroot}

%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/eiciel
%doc %{_mandir}/man1/eiciel.1.gz
%dir %{_datadir}/appdata
%{_datadir}/appdata/eiciel.appdata.xml
%{_datadir}/eiciel/
%{_datadir}/icons/hicolor/*/apps/eiciel.*

%files lang -f %{name}.lang
%defattr(-,root,root)

%files -n nautilus-eiciel
%defattr (-, root, root)
%{_libnautilus_extensiondir}/libeiciel-nautilus.so

%changelog
openSUSE Build Service is sponsored by