File backup-manager.spec of Package backup-manager
#
# spec file for package backup-manager (Version 0.1.0)
#
# Copyright (c) 2009 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: backup-manager
BuildRequires: PolicyKit dbus-1 gettext-tools hal intltool python >= 2.6 python-devel python-setuptools tango-icon-theme update-desktop-files
Url: http://code.google.com/p/wolfheads
License: X11/MIT
Group: System/Base
Requires: python >= 2.6 python-gtk python-setuptools rdiff-backup PolicyKit dbus-1 dbus-1-python libnotify tango-icon-theme
AutoReqProv: on
Version: 0.1.0
Release: 13.<RELEASE12>
Summary: A simple backup application for GNOME
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A simple backup application for GNOME
Authors:
--------
Chris Rivera <crivera@novell.com>
%lang_package
%prep
%setup -q
%build
python setup.py build
%install
python setup.py install --root=$RPM_BUILD_ROOT
%find_lang backup_manager
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/hal/scripts
ln -s %{_bindir}/backup-manager $RPM_BUILD_ROOT/%{_libdir}/hal/scripts/hal-backup-manager
# ugh
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
ln -s %{_datadir}/icons/Tango/24x24/devices/gtk-harddisk.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/gtk-harddisk.png
%suse_update_desktop_file -c backup-manager-settings "Backup Manager Settings" "Change your backup settings" "Backup Data" gtk-harddisk backup-manager-settings "GTK;GNOME;Utility;Archiving;"
%suse_update_desktop_file -c backup-manager-restore "Backup Manager Restore" "Restore your data" "Restore Data" gtk-harddisk backup-manager-restore "GTK;GNOME;Utility;Archiving;"
# Until /usr/lib/rpm/brp-dbus-autostart is changed, uncomment these to get it to build:
# rm $RPM_BUILD_ROOT/%{_sysconfdir}/dbus-1/system.d/*.conf
# rm $RPM_BUILD_ROOT/%{_datadir}/dbus-1/system-services/*.service
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/backup-manager
%{_bindir}/backup-manager-restore
%{_bindir}/backup-manager-settings
%attr(744, root, root) %{_libdir}/python2.*/site-packages/backup_manager/service.py
%{_libdir}/python2.*/site-packages/backup_manager/*
%{_libdir}/python2.*/site-packages/backup_manager*.egg-info/*
%dir %{_libdir}/python2.*/site-packages/backup_manager
%dir %{_libdir}/python2.*/site-packages/backup_manager*.egg-info
%{_libdir}/hal/scripts/hal-backup-manager
%dir %{_datadir}/doc/packages/backup-manager
%doc %{_datadir}/doc/packages/backup-manager/LICENSES
%{_datadir}/applications/backup-manager-settings.desktop
%{_datadir}/applications/backup-manager-restore.desktop
%config %{_datadir}/PolicyKit/policy/org.opensuse.backupmanager.policy
%{_datadir}/pixmaps/gtk-harddisk.png
%config %{_datadir}/hal/fdi/policy/10osvendor/99-backup-manager.fdi
# Until /usr/lib/rpm/brp-dbus-autostart is changed, comment out the following two lines to get it
# to build:
%config %{_sysconfdir}/dbus-1/system.d/backup-manager.conf
%config %{_datadir}/dbus-1/system-services/org.opensuse.BackupManager.service
%files lang -f backup_manager.lang
%changelog
* Fri Jan 16 2009 crivera@suse.de
- Make sure that the backup path doesn't start with a /,
handle the case where src and dest dirs are symlinks,
and clear saved file selections if we're restoring
everything. This fixes bnc#465883.
- Make the Select Files window modal. This fixes bnc#465897
- Improve searching for files in backup-manager-restore.
It's now possible to restore files that have been deleted.
This fixes bnc#459799.
- Remove the dependency for PolicyKit-gnome. This fixes
bnc#459045.
- Fix the order of arguments to suse_update_desktop_file. This
was causing the applications to not launch (bnc#456445).
- Fix a blocker with backup-manager-settings not starting.
(bnc#456889)
* Fri Nov 21 2008 crivera@suse.de
- Fix typos in exceptions that were causing crashes.
- Set file chooser paths correctly.
- Fix data purging of backup devices.
- Improve logging.
- Update translations.
- Fix the hal fdi used to detect backup devices.
* Thu Nov 13 2008 crivera@suse.de
- Set the correct folder in backup-manager-restore.
- Use pwd module instead of os.login ().
- Fix the detection of backup media
- Fix minor bugs in the UI.
* Fri Nov 07 2008 maw@suse.de
- Misc. build fixes
- Split out a -lang subpackage.
* Fri Nov 07 2008 crivera@suse.de
- Add .desktop files for backup-manager-settings and
backup-manager-restore.
* Mon Nov 03 2008 crivera@suse.de
- Move dbus service names to the opensuse namespace.
- Provide better visual feedback in the backup applet.
* Fri Oct 24 2008 crivera@suse.de
- Fix a bug in the PolicyKit usage.
- Re-direct output of backup-manager when running from cron
to avoid flooding the local mail spool.
* Tue Oct 14 2008 crivera@suse.de
- Fix a problem with how paths are handled when restoring individual
files.
- Allow the backup path to be a FUSE mount.
* Wed Oct 01 2008 crivera@suse.de
- Remove bundled json module and use python 2.6's
standard module.
- Fix restoration of specific files in the UI.
* Thu Sep 25 2008 crivera@suse.de
- Mark more strings for translation.
- Improve session discovery.
- Use the correct restore point format.
* Tue Sep 23 2008 crivera@suse.de
- Mark user visible strings for translation.
- Mark config files in the spec with %%config
- General cleanup.
* Fri Sep 12 2008 crivera@suse.de
- Add a LICENSES file. This fixes bnc#425796.
- Finish the restore UI.
* Tue Sep 09 2008 crivera@suse.de
- Initial import for backup-manager. This provides a simple
backup solution for GNOME. This is for FATE #305026.