File nautilus-ifolder3.spec of Package nautilus-ifolder3

#
# spec file for package nautilus-ifolder3 (Version 3.7.2.9141.1)
#
# Copyright (c) 2009 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/
#

# norootforbuild

BuildRequires:  aspell-en gconf2 gconf2-devel gdk-pixbuf gnutls-devel gtk-sharp2-complete ifolder3 intltool libgnomeprintui-devel libwnck-devel mDNSResponder nautilus-devel perl-XML-Parser update-desktop-files
%if %suse_version > 1110
BuildRequires:  gnome-vfs2-devel
%endif

Name:           nautilus-ifolder3
%define buildnum 9141
Url:            http://www.ifolder.com
%define prefix /usr
%define gnome_root /usr
%define extension extensions-2.0
License:        GPL v2 only
Group:          System/GUI/Other
AutoReqProv:    on
Version:        3.7.2.9141.1
Release:        5
Requires:       nautilus >= 2.10.0
Requires:       simias >= 1.8.2
Requires:       ifolder3 >= 3.7.2 
#Obsoletes:    %{name} < %{version}
Provides:       nautilus-ifolder
Obsoletes:      nautilus-ifolder
Summary:        Nautilus Plug-In to Add iFolder Support
Source:         nautilus-ifolder3.tar.gz
Patch:          nautilus-ifolder3-lib64.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#=============================================================================

%description
Provides the iFolder plug-in interface to the Nautilus File Manager.



%prep
export BUILDNUM=%{buildnum}
%setup -n %{name}
%patch
#=============================================================================

%build
export BUILDNUM=%{buildnum}
export CFLAGS="$RPM_OPT_FLAGS"
./autogen.sh --prefix=%{prefix} --libdir=%{prefix}/%_lib --with-newnautilus
make
#make dist
#=============================================================================

%install
export BUILDNUM=%{buildnum}
%{__rm} -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
#=============================================================================

%clean
%{__rm} -rf $RPM_BUILD_ROOT
#=============================================================================

%post
/usr/bin/gtk-update-icon-cache /usr/share/icons/gnome/
echo "Restart the system before you start using iFolder"
#=============================================================================

%files -f %{name}.lang
%defattr(-,root,root)
%dir %{gnome_root}/share/nautilus-ifolder3
%dir %{gnome_root}/share/nautilus-ifolder3/pixmaps
%dir %{gnome_root}/share/icons/gnome/48x48
%dir %{gnome_root}/share/icons/gnome/48x48/emblems
%dir %{gnome_root}/%_lib/nautilus/%{extension}
%{gnome_root}/%_lib/nautilus/%{extension}/libnautilus-ifolder*
%{prefix}/%_lib/nautilus-ifolder
%{prefix}/%_lib/nautilus-ifolder.exe
%attr(644,root,root) %{gnome_root}/share/icons/gnome/48x48/emblems/emblem-ifolder.icon
%attr(644,root,root) %{gnome_root}/share/icons/gnome/48x48/emblems/emblem-ifolder.png
%attr(644,root,root) %{gnome_root}/share/nautilus-ifolder3/pixmaps/ifolder-folder.png

%changelog
openSUSE Build Service is sponsored by