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

Name:           gnome-user-share
Summary:        GNOME user file sharing
Version:        2.30.1
Release:        3
License:        GPLv2+
Group:          Productivity/Networking/File-Sharing
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE gnome-user-share-soft-dep-apache.patch -- Hide apache option in the UI if it's not available
Patch3:         gnome-user-share-soft-dep-apache.patch
BuildRequires:  gconf2-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  gnome-bluetooth-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libcanberra-devel
BuildRequires:  libnotify-devel
BuildRequires:  libunique-devel
BuildRequires:  nautilus-devel
BuildRequires:  update-desktop-files
Requires:       obex-data-server
Recommends:     %{name}-lang
Suggests:       apache2-prefork
Suggests:       apache2-worker
Suggests:       apache2-mod_dnssd
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

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.

%setup -q
%patch3 -p1

%configure \
    --with-modules-path=%{_libdir}/apache2/ \
    --disable-schemas-install \
    --disable-scrollkeeper \
make %{?jobs:-j%jobs}

%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
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 Settings X-GNOME-PersonalSettings X-SuSE-ControlCenter-Personal
%suse_update_desktop_file gnome-user-share
%find_lang %{name} %{?no_lang_C}


%pre -f %{name}.schemas_pre


%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun


%files -f %{name}.schemas_list
%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

%files lang -f %{name}.lang