File gnome-user-share.spec of Package gnome-user-share

#
# spec file for package gnome-user-share
#
# 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:           gnome-user-share
Summary:        GNOME user file sharing
Version:        3.0.1
Release:        1
License:        GPLv2+
Group:          Productivity/Networking/File-Sharing
Source:         http://download.gnome.org/sources/gnome-user-share/3.0/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE gnome-user-share-soft-dep-apache.patch vuntz@novell.com -- Hide apache option in the UI if it's not available
Patch3:         gnome-user-share-soft-dep-apache.patch
Url:            http://www.gnome.org/
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gnome-bluetooth-1.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libcanberra-gtk3)
BuildRequires:  pkgconfig(libnautilus-extension)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(unique-3.0)
Requires:       obex-data-server
Recommends:     %{name}-lang
Suggests:       apache2-prefork
Suggests:       apache2-worker
Suggests:       apache2-mod_dnssd
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
gnome-user-share is a small package that binds together various free
software projects to bring easy to use user-level file sharing to the
masses.

The program is meant to run in the background when the user is logged
in, and when file sharing is enabled a webdav server is started that
shares the $HOME/Public folder. The share is then published to all
computers on the local network using mDNS/rendezvous, so that it shows
up in the Network location in GNOME.

The program also allows to share files using ObexFTP over Bluetooth.

%lang_package
%prep
%setup -q
translation-update-upstream
%patch3 -p1

%build
%configure \
    --with-modules-path=%{_libdir}/apache2/ \
    --disable-schemas-install \
    --disable-scrollkeeper \
    --libexecdir=%{_libexecdir}/gnome-user-share
make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
# X-GNOME-NetworkSettings is okay upstream, but it makes the item appear misplaced with our menu structure
grep -q X-GNOME-NetworkSettings %{buildroot}%{_datadir}/applications/gnome-user-share-properties.desktop
%suse_update_desktop_file -r gnome-user-share-properties GNOME System X-SuSE-ControlCenter-Personal
%suse_update_desktop_file gnome-user-share
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%post
%desktop_database_post
%icon_theme_cache_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files -f %{name}.schemas_list
%defattr(-,root,root,-)
%doc README COPYING NEWS
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/*
%{_libexecdir}/gnome-user-share
%{_datadir}/applications/*
%{_datadir}/gnome-user-share
%{_libdir}/nautilus/extensions-3.0/libnautilus-share-extension.so
%{_sysconfdir}/xdg/autostart/gnome-user-share.desktop
%{_datadir}/icons/hicolor/*/apps/gnome-obex-server.png

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by