File eiciel.spec of Package eiciel
#
# spec file for package eiciel
#
# Copyright (c) 2011 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/
#
Name: eiciel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: libacl-devel
BuildRequires: libattr-devel
BuildRequires: libgnomeui-devel
BuildRequires: translation-update-upstream
%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
Version: 0.9.8.1
Release: 3
Url: http://rofi.roger-ferrer.org/eiciel/
Group: System/GUI/GNOME
License: GPLv2+
Summary: GNOME ACL viewer and editor
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang
%define _libnautilus_extensiondir %(pkg-config --variable extensiondir libnautilus-extension)
%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
License: GPLv2+
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
translation-update-upstream
# Once the test fails, remove the test and the chmod. This file should not be +x.
test -x AUTHORS
chmod a-x AUTHORS
%build
%configure \
--disable-static \
%if 0%{?favor_gtk2}
--with-gnome-version=2
%else
--with-gnome-version=3
%endif
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -name '*.la' -delete -print
rm $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
%fdupes -s $RPM_BUILD_ROOT
%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
%{_datadir}/eiciel
%files lang -f %{name}.lang
%files -n nautilus-eiciel
%defattr (-, root, root)
%{_libnautilus_extensiondir}/libeiciel-nautilus.so
%changelog