File nautilus-terminal.spec of Package nautilus-terminal

#
# spec file for package nautilus-terminal
#
# 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/
#


%define have_lang 0

Name:           nautilus-terminal
# This is a checkout of the current version in bzr (revision 9)
Version:        0.99_bzr9
Release:        1
License:        GPLv3+
Summary:        Integrated Terminal for the Nautilus File Browser
Url:            http://software.flogisoft.com/nautilus-terminal/
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM nautilus-terminal-gi-gobject.patch lp#841381 vuntz@opensuse.org -- Finish port to pygobject 3.0
Patch0:         nautilus-terminal-gi-gobject.patch
# For directory ownership:
BuildRequires:  python-nautilus
Requires:       nautilus
Requires:       python-gobject
Requires:       python-nautilus
%if %{have_lang}
Recommends:     %{name}-lang
%endif
Recommends:     python-xdg
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Nautilus Terminal is an integrated terminal for the Nautilus file browser.

%if %{have_lang}
%lang_package
%endif

%prep
%setup -q -n %{name}
%patch0 -p1
sed -i '
s:/usr/share/doc:%{_docdir}/%{name}:
s:/usr/share:%{_datadir}:
s:/usr/lib:%{_libdir}:
' install.sh

%build

%install
./install.sh --package %{buildroot}
%if %{have_lang}
%find_lang %{name}
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}/
%{_datadir}/nautilus-python/extensions/nautilus_terminal.py

%if %{have_lang}

%files lang -f %{name}.lang
%endif

%changelog
openSUSE Build Service is sponsored by