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:  gtkmm24-devel
BuildRequires:  intltool
BuildRequires:  libacl-devel
BuildRequires:  libattr-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  nautilus-devel
Version:        0.9.8
Release:        2
Url:            http://rofi.pinchito.com/eiciel/
Group:          System/GUI/GNOME
License:        GPLv2+
Summary:        GNOME ACL viewer and editor
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-po.tar.gz 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     %{name}-lang

%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 -a1
# 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 \
	--with-nautilus-extensions-dir=%{_libdir}/nautilus/extensions-2.0 
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
rm $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.*a
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf $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)
%{_libdir}/nautilus/extensions-2.0/*.so

%changelog
openSUSE Build Service is sponsored by