714fc91
Summary: Gnome user file sharing
714fc91
Name: gnome-user-share
7c6dde8
Version: 2.28.1
Tomas Bzatek e52f9c5
Release: 5%{?dist}
053977e
License: GPLv2+
714fc91
Group: System Environment/Libraries
714fc91
URL: http://www.gnome.org
986d66c
Source0: http://download.gnome.org/sources/gnome-user-share/2.28/%{name}-%{version}.tar.bz2
0293dac
# http://bugzilla.gnome.org/show_bug.cgi?id=578090
0293dac
Patch0: menu-path.patch
65b7057
# http://bugzilla.gnome.org/show_bug.cgi?id=558244
3b95e79
# https://bugzilla.gnome.org/show_bug.cgi?id=600499
4609b7d
Patch1: 0001-Bug-558244-Enabling-gnome-user-share-requires-cha.patch
3b95e79
%define		_default_patch_fuzz 2
3b95e79
Patch2: 0001-Use-same-directories-in-nautilus-bar-and-app.patch
dfe8958
BuildRequires: intltool automake autoconf libtool
44bcbe8
# https://bugzilla.redhat.com/show_bug.cgi?id=533977
44bcbe8
Patch3: 0001-Avoid-crashing-when-dbus_g_proxy_call-fails-but-with.patch
Tomas Bzatek e52f9c5
Patch4: gnome-user-share-2.29.xx-httpd-dont-localize-realm.patch
3c8fc0a
3b95e79
d3438d2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
09f4960
Requires: httpd >= 2.2.0
cf8edea
Requires: obex-data-server >= 0.3
0cac4b4
Requires: mod_dnssd
0cac4b4
BuildRequires: GConf2-devel pkgconfig
fa03e88
BuildRequires: gtk2-devel >= 2.4.0
fd9d51f
BuildRequires: httpd >= 2.2.0 mod_dnssd >= 0.6
64c4a95
BuildRequires: gnome-bluetooth-libs-devel
3b95e79
BuildRequires: libcanberra-devel
40236c3
BuildRequires: desktop-file-utils
0cac4b4
BuildRequires: gnome-doc-utils
fa03e88
BuildRequires: libselinux-devel
d234714
BuildRequires: dbus-glib-devel
d60af05
BuildRequires: libnotify-devel
dfe8958
BuildRequires: nautilus-devel
7d6d4b2
BuildRequires: gettext
f11e834
BuildRequires: perl(XML::Parser) intltool
4850cd6
BuildRequires: scrollkeeper
fc208fd
Requires(post): GConf2
fc208fd
Requires(pre): GConf2
fc208fd
Requires(preun): GConf2
714fc91
714fc91
%description
148524a
148524a
gnome-user-share is a small package that binds together various free
148524a
software projects to bring easy to use user-level file sharing to the
148524a
masses.
148524a
148524a
The program is meant to run in the background when the user is logged
148524a
in, and when file sharing is enabled a webdav server is started that
148524a
shares the $HOME/Public folder. The share is then published to all
148524a
computers on the local network using mDNS/rendezvous, so that it shows
148524a
up in the Network location in GNOME.
714fc91
e68790e
The program also allows to share files using ObexFTP over Bluetooth.
e68790e
714fc91
%prep
714fc91
%setup -q
0293dac
%patch0 -p1 -b .menu-path
4609b7d
%patch1 -p1 -b .cluebar
3b95e79
%patch2 -p1 -b .dirs
44bcbe8
%patch3 -p1 -b .exit-crash
Tomas Bzatek e52f9c5
%patch4 -p1 -b .httpd-realm
65b7057
65b7057
autoreconf -f -i
714fc91
714fc91
%build
714fc91
%configure
714fc91
make %{?_smp_mflags}
714fc91
714fc91
%install
714fc91
rm -rf $RPM_BUILD_ROOT
714fc91
714fc91
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
714fc91
make install DESTDIR=$RPM_BUILD_ROOT
714fc91
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
714fc91
7470f45
rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la
7470f45
40236c3
desktop-file-install --vendor gnome --delete-original                   \
40236c3
  --dir $RPM_BUILD_ROOT%{_datadir}/applications			        \
40236c3
  --add-only-show-in GNOME                                              \
40236c3
  --add-category X-Red-Hat-Base                                         \
40236c3
  $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
40236c3
0cac4b4
%find_lang gnome-user-share --with-gnome
0cac4b4
0cac4b4
# save space by linking identical images in translated docs
0cac4b4
helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
0cac4b4
for f in $helpdir/C/figures/*.png; do
0cac4b4
  b="$(basename $f)"
0cac4b4
  for d in $helpdir/*; do
0cac4b4
    if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
0cac4b4
      g="$d/figures/$b"
0cac4b4
      if [ -f "$g" ]; then
0cac4b4
        if cmp -s $f $g; then
0cac4b4
          rm "$g"; ln -s "../../C/figures/$b" "$g"
0cac4b4
        fi
0cac4b4
      fi
0cac4b4
    fi
0cac4b4
  done
0cac4b4
done
714fc91
714fc91
%clean
714fc91
rm -rf $RPM_BUILD_ROOT
714fc91
714fc91
%post
714fc91
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
fc208fd
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_file_sharing.schemas > /dev/null || :
4850cd6
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
fc208fd
fc208fd
%pre
fc208fd
if [ "$1" -gt 1 ]; then
fc208fd
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
fc208fd
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_file_sharing.schemas > /dev/null || :
fc208fd
fi
fc208fd
fc208fd
%preun
fc208fd
if [ "$1" -eq 0 ]; then
fc208fd
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
fc208fd
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_file_sharing.schemas > /dev/null || :
fc208fd
fi
714fc91
cf8edea
%postun
4850cd6
if [ $1 -eq 0 ]; then
4850cd6
  touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
4850cd6
  gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor >&/dev/null || :
cf8edea
fi
cf8edea
4850cd6
%posttrans
4850cd6
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor >&/dev/null || :
4850cd6
714fc91
%files -f gnome-user-share.lang
714fc91
%defattr(-,root,root,-)
053977e
%doc README COPYING NEWS AUTHORS
714fc91
%{_bindir}/*
714fc91
%{_libexecdir}/*
714fc91
%{_datadir}/gnome-user-share
40236c3
%{_datadir}/applications/*
3b7523f
%{_sysconfdir}/xdg/autostart/gnome-user-share.desktop
714fc91
%{_sysconfdir}/gconf/schemas/*
cf8edea
%{_datadir}/icons/hicolor/*/apps/gnome-obex-server.png
7470f45
%{_libdir}/nautilus/extensions-2.0/*.so
714fc91
714fc91
%changelog
Tomas Bzatek e52f9c5
* Mon Feb 22 2010 Tomas Bzatek <tbzatek@redhat.com> 2.28.1-5
Tomas Bzatek e52f9c5
- Don't use localized realm string when starting httpd
Tomas Bzatek e52f9c5
4850cd6
* Sun Feb 14 2010 Matthias Clasen <mclasen@redhat.com> 2.28.1-4
4850cd6
- Modernize scripts
4850cd6
- Fix build
4850cd6
44bcbe8
* Tue Nov 10 2009 Bastien Nocera <bnocera@redhat.com> 2.28.1-3
44bcbe8
- Fix crasher on exit when ObexFTP isn't started (#533977)
44bcbe8
3b95e79
* Tue Nov 03 2009 Bastien Nocera <bnocera@redhat.com> 2.28.1-2
3b95e79
- Update share bar code to use the same directories as
3b95e79
  the sharing code itself
3b95e79
7c6dde8
* Mon Oct 26 2009 Bastien Nocera <bnocera@redhat.com> 2.28.1-1
7c6dde8
- Update to 2.28.1
7c6dde8
4609b7d
* Mon Sep 21 2009 Bastien Nocera <bnocera@redhat.com> 2.28.0-1
4609b7d
- Update to 2.28.0
4609b7d
65b7057
* Tue Sep 08 2009 Bastien Nocera <bnocera@redhat.com> 2.27.0-3
65b7057
- Add a cluebar to have easy access to the file sharing preferences
65b7057
4178f1d
* Mon Sep 07 2009 Bastien Nocera <bnocera@redhat.com> 2.27.0-2
4178f1d
- Init i18n system for gnome-user-share
4178f1d
64c4a95
* Wed Sep 02 2009 Bastien Nocera <bnocera@redhat.com> 2.27.0-1
64c4a95
- Update to 2.27.0
64c4a95
Tomas Bzatek f8d42c7
* Thu Aug 20 2009 Tomas Bzatek <tbzatek@redhat.com> - 2.26.0-6
Tomas Bzatek f8d42c7
- Do not localize realm in passwd files (#500123)
Tomas Bzatek f8d42c7
ce301d4
* Tue Aug 11 2009 Bastien Nocera <bnocera@redhat.com> 2.26.0-5
ce301d4
- Fix source URL
ce301d4
c838941
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.26.0-4
c838941
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c838941
1cec440
* Thu Jul  2 2009 Matthias Clasen <mclasen@redhat.com> - 2.26.0-3
1cec440
- Rebuild to shrink GConf schemas
1cec440
0293dac
* Sun Apr  5 2009 Matthias Clasen <mclasen@redhat.com> - 2.26.0-2
0293dac
- Fix a menu reference in the docs (#494253)
0293dac
e417348
* Mon Mar 16 2009 - Bastien Nocera <bnocera@redhat.com> - 2.26.0-1
e417348
- Update to 2.26.0
e417348
430acd9
* Tue Mar 03 2009 - Bastien Nocera <bnocera@redhat.com> - 2.25.92-1
430acd9
- Update to 2.25.92
430acd9
af0e138
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25.91-2
af0e138
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
af0e138
44313e4
* Tue Feb 03 2009 - Bastien Nocera <bnocera@redhat.com> - 2.25.91-1
44313e4
- Update to 2.25.91
44313e4
ae1f585
* Tue Feb 03 2009 - Bastien Nocera <bnocera@redhat.com> - 2.25.90-1
ae1f585
- Update to 2.25.90
ae1f585
fd9d51f
* Thu Jan 29 2009 - Bastien Nocera <bnocera@redhat.com> - 2.25.5-2
fd9d51f
- Export the user through the TXT record with the new mod_dnssd
fd9d51f
0cac4b4
* Tue Jan 27 2009 - Bastien Nocera <bnocera@redhat.com> - 2.25.5-1
0cac4b4
- Update to 2.25.5
0cac4b4
686d7e3
* Wed Dec 17 2008 - Bastien Nocera <bnocera@redhat.com> - 0.41-1
686d7e3
- Update to 0.41
686d7e3
d60af05
* Mon Sep 22 2008 - Bastien Nocera <bnocera@redhat.com> - 0.40-3
d60af05
- Add missing libnotify BR
d60af05
f11e834
* Mon Sep 22 2008 - Bastien Nocera <bnocera@redhat.com> - 0.40-2
f11e834
- Add missing intltool BR
f11e834
137d5ef
* Mon Sep 22 2008 - Bastien Nocera <bnocera@redhat.com> - 0.40-1
137d5ef
- Update to 0.40
137d5ef
53a1ea4
* Mon Sep 22 2008 - Bastien Nocera <bnocera@redhat.com> - 0.31-3
53a1ea4
- Add patch to port to BlueZ 4.x API
53a1ea4
4d25739
* Sun May  4 2008 Matthias Clasen <mclasen@redhat.com> - 0.31-2
4d25739
- Fix source url
4d25739
066273a
* Thu Apr 03 2008 - Bastien Nocera <bnocera@redhat.com> - 0.31-1
066273a
- Update to 0.31
6b7e9eb
34cb4a2
* Mon Mar 31 2008 - Bastien Nocera <bnocera@redhat.com> - 0.30-1
34cb4a2
- Update to 0.30
34cb4a2
- Fixes left-over httpd processes after logout
34cb4a2
cf8edea
* Sun Feb 24 2008 - Bastien Nocera <bnocera@redhat.com> - 0.22-1
cf8edea
- Update to 0.22
cf8edea
0b4f497
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.21-2
0b4f497
- Autorebuild for GCC 4.3
0b4f497
1afd5d5
* Fri Jan 25 2008 - Bastien Nocera <bnocera@redhat.com> - 0.21-1
1afd5d5
- Update to 0.21
1afd5d5
e68790e
* Tue Jan 22 2008 - Bastien Nocera <bnocera@redhat.com> - 0.20-1
e68790e
- Update to 0.20
e68790e
- Remove obsolete patches
e68790e
b8c56a1
* Tue Sep 11 2007 Matthias Clasen <mclasen@redhat.com> - 0.11-9
b8c56a1
- Fix a memory leak
b8c56a1
07a0b3a
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.11-8
07a0b3a
- Rebuild for selinux ppc32 issue.
07a0b3a
053977e
* Tue Aug  7 2007 Matthias Clasen <mclasen@redhat.com> - 0.11-7
053977e
- Update license field
053977e
f627a63
* Thu Jul 12 2007 Matthias Clasen <mclasen@redhat.com> - 0.11-6
f627a63
- Disable the password entry for "never"
f627a63
100eac5
* Thu Jul 12 2007 Owen Taylor <otaylor@redhat.com> - 0.11-5
100eac5
- Regenerate configure since patch1 changes configure.in
100eac5
9b22bab
* Thu Jul 12 2007 Owen Taylor <otaylor@redhat.com> - 0.11-4
9b22bab
- Add a patch from SVN to export DBUS session ID via Avahi (b.g.o #455307)
9b22bab
148524a
* Mon Apr 23 2007 Matthias Clasen  <mclasen@redhat.com> - 0.11-3
148524a
- Improve %%description (#235677)
148524a
3c8fc0a
* Fri Mar 23 2007 Matthias Clasen  <mclasen@redhat.com> - 0.11-2
3c8fc0a
- Don't hardwire invisible char (#233676)
3c8fc0a
85f188e
* Tue Mar  6 2007 Alexander Larsson <alexl@redhat.com> - 0.11-1
85f188e
- Update to 0.11 with xdg-user-dirs support
85f188e
c24035d
* Wed Jan 24 2007 Matthias Clasen <mclasen@redhat.com> 0.10-6
c24035d
- Add better categories to the desktop file
c24035d
541ee8f
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 0.10-5
541ee8f
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
541ee8f
33777ed
* Thu Sep 21 2006 Nalin Dahyabhai <nalin@redhat.com> - 0.10-4
33777ed
- add missing BuildRequires: on httpd, so that the configure script can find
33777ed
  the binary
33777ed
10a3648
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.10-3.1
10a3648
- rebuild
10a3648
7d6d4b2
* Mon May 29 2006 Alexander Larsson <alexl@redhat.com> - 0.10-3
7d6d4b2
- buildrequire gettext and perl-XML-Parser (#193391)
7d6d4b2
14833d9
* Thu Apr 20 2006 Matthias Clasen <mclasen@redhat.com> 0.10-2
14833d9
- Update to 0.10
14833d9
fa03e88
* Wed Mar 01 2006 Karsten Hopp <karsten@redhat.de> 0.9-3
fa03e88
- BuildRequires: gtk2-devel, libglade2-devel, libselinux-devel
fa03e88
6199d91
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.9-2.2
6199d91
- bump again for double-long bug on ppc(64)
6199d91
6499c34
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.9-2.1
6499c34
- rebuilt for new gcc4.1 snapshot and glibc changes
6499c34
4d77619
* Fri Feb  3 2006 Alexander Larsson <alexl@redhat.com> 0.9-2
4d77619
- Patch config for apache 2.2
4d77619
c083b85
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c083b85
- rebuilt
c083b85
5a78b9d
* Tue Nov 22 2005 Alexander Larsson <alexl@redhat.com> - 0.9-1
5a78b9d
- New release with avahi 0.6 support
5a78b9d
58b801e
* Mon Nov 14 2005 Alexander Larsson <alexl@redhat.com> - 0.8-1
58b801e
- update to 0.8
58b801e
40236c3
* Wed Nov  9 2005 Alexander Larsson <alexl@redhat.com> - 0.7-1
40236c3
- New version, with desktop file
40236c3
714fc91
* Wed Nov  9 2005 Alexander Larsson <alexl@redhat.com> - 0.6-1
714fc91
- New version, switch to avahi
714fc91
- Handle translations
714fc91
714fc91
* Fri Dec  3 2004 Alexander Larsson <alexl@redhat.com> - 0.4-1
714fc91
- New version
714fc91
714fc91
* Fri Nov 26 2004 Alexander Larsson <alexl@redhat.com> - 0.3-1
714fc91
- New version
714fc91
714fc91
* Thu Sep  9 2004 Alexander Larsson <alexl@redhat.com> - 0.2-1
714fc91
- New version
714fc91
714fc91
* Wed Sep  8 2004 Alexander Larsson <alexl@redhat.com> - 0.1-1
714fc91
- Initial Build
714fc91