File nautilus-ifolder3.spec of Package nautilus-ifolder3

#
# spec file for package nautilus-ifolder3 (Version 3.8.0.10091.1)
#
# Copyright (c) 2010 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:  gconf2 gconf2-devel gnome-sharp2 gtk-sharp2 ifolder3 intltool mono-devel nautilus-devel perl-XML-Parser update-desktop-files
%if 0%{suse_version} > 1120
BuildRequires:  simias-devel
%endif
%if %suse_version >= 1110
BuildRequires:  gnome-vfs2-devel
%endif

Name:           nautilus-ifolder3

%define buildnum 10091
Url:            http://www.ifolder.com
%define prefix /usr
%define gnome_root /usr
%define extension extensions-2.0
License:        GNU General Public License (GPL) v2
Group:          System/GUI/Other
AutoReqProv:    on
Version:        3.8.0.10091.1
Release:        1
Requires:       nautilus >= 2.10.0
Requires:       simias >= 1.8.3
Requires:       ifolder3 >= 3.8.0 
#Obsoletes:    %{name} < %{version}
Provides:       nautilus-ifolder = %{version}
Obsoletes:      nautilus-ifolder < %{version}
Summary:        Nautilus plugin to add iFolder support
Source:         nautilus-ifolder3.tar.gz
Patch:          nautilus-ifolder3-lib64.patch
Patch1:         nautilus-ifolder3-warnings.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#=============================================================================

%description
Provides the iFolder plugin interface to the Nautilus File Manager



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

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

%install
export BUILDNUM=%{buildnum}
make DESTDIR=$RPM_BUILD_ROOT install
# Do not install .la file
rm $RPM_BUILD_ROOT/%{gnome_root}/%_lib/nautilus/%{extension}/libnautilus-ifolder.la
%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.so
%{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