Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 363269de034a06db17f95d6d5a969e1e > files > 2

mate-user-share-1.6.1-0.4.git20130919.77a6040.fc18.src.rpm

# Conditional for release and snapshot builds. Uncomment for release-builds.
# %%global rel_build 1

# This is needed, because src-url contains branched part of versioning-scheme.
%global branch 1.6

# Settings used for build from snapshots.
%{!?rel_build:%global commit 77a60402b58e004651f769b5baa98ab8574864f1}
%{!?rel_build:%global commit_date 20130919}
%{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})}
%{!?rel_build:%global git_ver git%{commit_date}-%{shortcommit}}
%{!?rel_build:%global git_rel .git%{commit_date}.%{shortcommit}}
%{!?rel_build:%global git_tar %{name}-%{version}-%{git_ver}.tar.xz}

Summary:     Mate user file sharing
Name:            mate-user-share
Version:        %{branch}.1
Release:        0.4%{?git_rel}%{?dist}
License:        GPLv2+
Group:          System Environment/Libraries
URL:              http://mate-desktop.org

# for downloading the tarball use 'spectool -g -R mate-user-share.spec'
# Source for release-builds.
%{?rel_build:Source0:     http://pub.mate-desktop.org/releases/%{branch}/%%{name}-%%{version}.tar.xz}
# Source for snapshot-builds.
%{!?rel_build:Source0:    http://git.mate-desktop.org/%{name}/snapshot/%{name}-%{commit}.tar.xz#/%{git_tar}}

# pull request at uptream to fix rhbz #(1031307)
# https://github.com/NiceandGently/mate-user-share/commit/906172b
%if 0%{?fedora} > 19
Patch0:  mate-user-share_download-dir.patch
%endif 

BuildRequires: gtk2-devel
BuildRequires: httpd  mod_dnssd
# disable bluetooth support for bluez5
%if 0%{?fedora} > 19
#BuildRequires: mate-bluetooth-devel
%else
BuildRequires: mate-bluetooth-devel
%endif
BuildRequires: libcanberra-devel
BuildRequires: desktop-file-utils
BuildRequires: mate-doc-utils
BuildRequires: libselinux-devel
BuildRequires: dbus-glib-devel
BuildRequires: libnotify-devel
%if 0%{?fedora} > 20
BuildRequires: caja-devel
%else
BuildRequires: mate-file-manager-devel
%endif
BuildRequires: unique-devel
BuildRequires: perl(XML::Parser)
BuildRequires: mate-common
BuildRequires: libICE-devel
BuildRequires: libSM-devel

Requires: httpd
# obsolete with bluez5
%if 0%{?fedora} > 19
#Requires: obex-data-server
%else
Requires: obex-data-server
%endif
Requires: mod_dnssd

%description
mate-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 MATE.

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

%prep
%setup -q%{!?rel_build:n %{name}-%{commit}}
%if 0%{?fedora} > 19
%patch0 -p1 -b .download-dir
%endif

# nedded to create missing configure and make files
NOCONFIGURE=1 ./autogen.sh

%build
# disable bluetooth support for bluez5
%if 0%{?fedora} > 19
%configure \
    --disable-scrollkeeper \
    --disable-static \
    --disable-bluetooth \
    --disable-schemas-compile
%else
%configure \
    --disable-scrollkeeper \
    --disable-static \
    --disable-schemas-compile
%endif
make %{?_smp_mflags}

%install
%{make_install}

rm -f $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la

# no need to provide a convert file for mateconf user settings,
# because Mate started with gsettings in f17/18
rm -f $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-user-share.convert

%find_lang %{name}

# disable bluetooth support for bluez5
%if 0%{?fedora} > 19
rm -f ${RPM_BUILD_ROOT}/%{_sysconfdir}/xdg/autostart/mate-user-share-obexftp.desktop
rm -f desktop-file-validate ${RPM_BUILD_ROOT}/%{_sysconfdir}/xdg/autostart/mate-user-share-obexpush.desktop
desktop-file-validate ${RPM_BUILD_ROOT}/%{_datadir}/applications/mate-user-share-properties.desktop
desktop-file-validate ${RPM_BUILD_ROOT}/%{_sysconfdir}/xdg/autostart/mate-user-share-webdav.desktop
%else
desktop-file-validate ${RPM_BUILD_ROOT}/%{_datadir}/applications/mate-user-share-properties.desktop
desktop-file-validate ${RPM_BUILD_ROOT}/%{_sysconfdir}/xdg/autostart/mate-user-share-obexftp.desktop
desktop-file-validate ${RPM_BUILD_ROOT}/%{_sysconfdir}/xdg/autostart/mate-user-share-obexpush.desktop
desktop-file-validate ${RPM_BUILD_ROOT}/%{_sysconfdir}/xdg/autostart/mate-user-share-webdav.desktop
%endif

%post
/bin/touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :

%postun
if [ $1 -eq 0 ]; then
  /bin/touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor >&/dev/null || :
  /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi

%posttrans
/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor >&/dev/null || :
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :


%files -f %{name}.lang
%doc README COPYING NEWS
%{_bindir}/mate-file-share-properties
%{_libexecdir}/mate-user-share
%{_datadir}/mate-user-share/
%{_datadir}/applications/mate-user-share-properties.desktop
# disable bluetooth support for bluez5
%if 0%{?fedora} > 19
%{_sysconfdir}/xdg/autostart/mate-user-share-webdav.desktop
%else
%{_sysconfdir}/xdg/autostart/mate-user-share-obexftp.desktop
%{_sysconfdir}/xdg/autostart/mate-user-share-obexpush.desktop
%{_sysconfdir}/xdg/autostart/mate-user-share-webdav.desktop
%endif
%{_datadir}/icons/hicolor/*/apps/mate-obex-server.png
%{_libdir}/caja/extensions-2.0/*.so
%{_datadir}/glib-2.0/schemas/org.mate.FileSharing.gschema.xml
%{_mandir}/man1/mate-file-share-properties.1.*


%changelog
* Sat Dec 21 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.1-0.4.git20130919.77a6040
- make Maintainers life easier and use better git snapshot usage, Thanks to Björn Esser
- use BR caja-devel for f21

* Thu Nov 21 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.1-0.3.git77a6040
- do not use download dir for incoming bluetooth downloads if mate-bluetooth
- isn't installed, rhbz #(1031307)

* Thu Sep 19 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.1-0.2.git77a6040
- update to latest git snapshot
- remove runtime require obex-data-server for > f19
- remove upstreamed patches

* Sun Aug 25 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.1-0.1.git48b2c97
- update latest git snapshot
- add manpage
- update to apache-2.24
- use mate-session to track the active session, remove consolkit
- add dbus requires patch
- add OpenBSD suffers from the same httpd race condition as the other BSDs patch
- add fix turning on sharing not starting mate-user-share
- add bluetooth support optional
- add BR libICE-devel
- add BR libSM-devel
- remove runtime require hicolor-icon-theme
- disable bluetooth support for fedora > f19
- update make install macro

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Mon May 20 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.0-3
- remove %%check
- add a comment for usage of autogen.sh

* Sat May 11 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.0-2
- remove gsettings.convert file
- add requires high-color-icon-theme
- add desktop file check for mate-user-share.desktop

* Wed Apr 03 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.0-1
- update to 1.6.0
- remove upstreamed desktop file fix
- switch to libnotify as BR

* Thu Mar 21 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.5.0-2
- initial build for fedora

* Thu Sep 27 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.5.0-1
- build against official fedora Mate-Desktop

* Sun Sep 16 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.4.1-0101
- fix desktop files

* Sun Sep 02 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.4.1-0100
- improve spec file
- security update

* Fri Jul 20 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.4.1-1
- remove mate-user-share_fix_rpm-scriplet-output.patch, it's upstreamed

* Thu Jul 19 2012 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.4.0-1
- initial package
- spec file is based on gnome-user-share-2.30.2-4.fc15 spec file
- add mate-user-share_fix_rpm-scriplet-output.patch