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

#
# spec file for mate-user-share
#
# Copyright (c) 2014 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:           mate-user-share
Version:        1.8.0
Release:        0
License:        GPL-2.0+
Summary:        MATE Desktop file sharing for the masses
Url:            http://mate-desktop.org
Group:          System/GUI/Other
Source:         http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
Requires:       apache2-mod_dnssd
Recommends:     %{name}-lang
%glib2_gsettings_schema_requires

BuildRequires:  apache2-devel
BuildRequires:  gnome-doc-utils
BuildRequires:  hicolor-icon-theme
BuildRequires:  mate-common
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(libcaja-extension) >= 1.8.0
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libcanberra-gtk)
BuildRequires:  pkgconfig(gdk-x11-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
#BuildRequires:  pkgconfig(mate-bluetooth-1.0)
BuildRequires:  pkgconfig(unique-1.0)
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools

%lang_package

%description
This package provides file sharing for the masses.

%prep
%setup -q

%build
# Disable bluetooth support; mate-user-share has not been ported to bluez5
# We will reenable it one time it's done
%configure --libexecdir=%{_libexecdir}/%{name} --disable-bluetooth
make %{?_smp_mflags}

%install
%makeinstall
%find_lang %{name}
%suse_update_desktop_file %{name}-properties
# wipe old MateConf stuff
if [ -d %{buildroot}%{_datadir}/MateConf/ ]; then
   rm -rf %{buildroot}%{_datadir}/MateConf/
fi
# Remove bluetooth stuff
rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/mate-user-share-obexftp.desktop
rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/mate-user-share-obexpush.desktop
# Remove static lib
rm %{buildroot}%{_libdir}/caja/extensions-2.0/libcaja-share-extension.la
%post
%icon_theme_cache_post
%desktop_database_post
%glib2_gsettings_schema_post

%postun
%icon_theme_cache_postun
%desktop_database_postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root,-)
%doc ChangeLog README COPYING
#%config(noreplace) %{_sysconfdir}/xdg/autostart/mate-user-share-obexftp.desktop
#%config(noreplace) %{_sysconfdir}/xdg/autostart/mate-user-share-obexpush.desktop
%config(noreplace) %{_sysconfdir}/xdg/autostart/mate-user-share-webdav.desktop
%{_bindir}/mate-file-share-properties
%{_mandir}/man1/mate-file-share-properties.1.gz
%{_libexecdir}/%{name}/
%{_libdir}/caja/extensions-2.0/libcaja-share-extension.so
%{_datadir}/%{name}/
%{_datadir}/applications/mate-user-share-properties.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/glib-2.0/schemas/org.mate.FileSharing.gschema.xml

%files lang -f %{name}.lang
%defattr(-,root,root,-)

%changelog
openSUSE Build Service is sponsored by