Merged trunk changes r9797:9829 into 217update branch.
#
# spec file for package nautilus-open-terminal
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner:stephen
Name: nautilus-open-terminal
License: GPL
Group: System/GUI/GNOME
Version: 0.6
Release: 1
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: Nautilus terminal extension
Source: http://manny.cluecoder.org/packages/nautilus-open-terminal/%{name}-%{version}.tar.gz
#owner:gman date:2005-10-17 type:bug
Patch1: nautilus-open-terminal-01-werror.diff
URL: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/%{name}
Autoreqprov: on
%define nautilus_version 2.6.0
%define eel_version 2.6.0
%define gnome_desktop_version 2.9.91
Requires: nautilus >= %{nautilus_version}
Requires: eel >= %{eel_version}
Requires: gnome-desktop >= %{gnome_desktop_version}
BuildRequires: nautilus-devel >= %{nautilus_version}
BuildRequires: eel-devel >= %{eel_version}
BuildRequires: gnome-desktop-devel >= %{gnome_desktop_version}
%description
Nautilus extension allowing you to open a terminal in arbitrary folders.
%prep
%setup -q
%patch1 -p1
%build
libtoolize --force
aclocal $ACLOCAL_FLAGS
automake -a -c -f
autoconf
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
CFLAGS="$RPM_OPT_FLAGS" \
./configure \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir}
make -j $CPUS
%install
make -i install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/%{_libdir}/nautilus/extensions-1.0/*.a
rm -rf $RPM_BUILD_ROOT/%{_libdir}/nautilus/extensions-1.0/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%{_libdir}/nautilus/extensions-1.0/*.so
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%changelog
* Mon Oct 17 2005 - [email protected]
- Add werror patch
* Mon Oct 17 2005 - [email protected]
- Initial spec file