1
0
gnome-user-share/gnome-user-share.spec

116 lines
3.7 KiB
RPMSpec

#
# spec file for package gnome-user-share
#
# Copyright (c) 2013 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
Version: 3.8.3
Release: 0
Summary: GNOME user file sharing
License: GPL-2.0+
Group: Productivity/Networking/File-Sharing
Url: http://www.gnome.org/
Source: http://download.gnome.org/sources/gnome-user-share/3.8/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(dbus-1) >= 1.1.1
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0) >= 2.28
BuildRequires: pkgconfig(gnome-bluetooth-1.0) >= 2.91.5
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libcanberra-gtk3)
BuildRequires: pkgconfig(libnautilus-extension)
BuildRequires: pkgconfig(libnotify)
Requires: obex-data-server
Recommends: %{name}-lang
Suggests: apache2-mod_dnssd
Suggests: apache2-prefork
Suggests: apache2-worker
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%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
%build
%configure \
--with-modules-path=%{_libdir}/apache2/ \
--disable-schemas-install \
--disable-scrollkeeper \
--libexecdir=%{_libexecdir}/gnome-user-share
make %{?_smp_mflags}
%install
%make_install
%if 0%{?suse_version} <= 1120
rm %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
%suse_update_desktop_file gnome-user-share-webdav
%suse_update_desktop_file gnome-user-share-obexftp
%suse_update_desktop_file gnome-user-share-obexpush
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc README COPYING NEWS
%doc %{_datadir}/help/C/%{name}/
%{_libexecdir}/gnome-user-share
%{_datadir}/gnome-user-share
%{_libdir}/nautilus/extensions-3.0/libnautilus-share-extension.so
%{_sysconfdir}/xdg/autostart/gnome-user-share-webdav.desktop
%{_sysconfdir}/xdg/autostart/gnome-user-share-obexftp.desktop
%{_sysconfdir}/xdg/autostart/gnome-user-share-obexpush.desktop
%{_datadir}/GConf/gsettings/gnome-user-share.convert
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.file-sharing.gschema.xml
%{_datadir}/icons/hicolor/*/apps/gnome-obex-server.png
%files lang -f %{name}.lang
%changelog