File yast2-restore.spec of Package yast2-restore

#
# spec file for package yast2-restore (Version 2.17.4)
#
# 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/
#

# norootforbuild


Name:           yast2-restore
Version:        2.17.4
Release:        0.1.79
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-restore-2.17.4.tar.bz2
Prefix:         /usr
BuildRequires:  perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite
Requires:       aaa_base
Requires:       bzip2
Requires:       gzip
Requires:       tar
Requires:       yast2
Requires:       yast2-bootloader
BuildArch:      noarch
Summary:        YaST2 - System Restore

%description
This YaST2 module can restore a system from an archive created by the
Backup module.



Authors:
--------
    Ladislav Slezak <lslezak@suse.cz>

%prep
%setup -n yast2-restore-2.17.4

%build
%{prefix}/bin/y2tool y2autoconf
%{prefix}/bin/y2tool y2automake
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir}
# V=1: verbose build in case we used AM_SILENT_RULES(yes)
# so that RPM_OPT_FLAGS check works
make %{?jobs:-j%jobs} V=1

%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
    d=${f##*/}
    %suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/restore
/usr/share/YaST2/include/restore/*
/usr/share/YaST2/clients/restore.ycp
/usr/share/YaST2/clients/restore_*.ycp
/usr/share/YaST2/modules/Restore.ycp
/usr/share/YaST2/modules/Restore.ybc
%{prefix}/share/applications/YaST2/restore.desktop
%{prefix}/lib/YaST2/bin/restore_parse_pkginfo.pl
%doc %{prefix}/share/doc/packages/yast2-restore
%changelog
* Mon Dec 14 2009 locilka@suse.cz
- Fixed restoration of unavailable packages (bnc #553400).
- Fixed dialog for selecting packages to restore (bnc #553400).
- 2.17.4
* Wed Jun 24 2009 locilka@suse.cz
- Fixed 'Archive Properties' scrolling (bnc #459657).
- 2.17.3
* Thu Feb 19 2009 locilka@suse.cz
- A correct patch for i18n characters in summary (bnc #460674).
- 2.17.2
* Thu Jan 29 2009 locilka@suse.cz
- Fixed displaying i18n characters in summary (bnc #460674).
- Save summary to file - huge speedup (bnc #460674).
- 2.17.1
* Tue Dec 16 2008 locilka@suse.cz
- Fixed alignment of buttons (bnc #447102).
- 2.17.0
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Mon Apr 14 2008 locilka@suse.cz
- Unified Button Labels: OK instead of Accept (fate #120373).
- 2.16.2
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc #304964)
- 2.16.1
* Wed Jan  9 2008 locilka@suse.cz
- Help moved to a proper place (#351035).
* Thu Nov  1 2007 locilka@suse.cz
- All Bootloader function calls were moved to a separate YCP client
  restore_bootloader to break the build-dependency on
  yast2-bootloader.
- 2.16.0
* Wed Aug 29 2007 locilka@suse.cz
- Fixed evaluation of 'nil' value that prevented the restore from
  displaying the final dialog before restoration started (#301031).
- 2.15.4
* Tue Aug 28 2007 locilka@suse.cz
- Fixed restoration in autoyast (#199657).
- 2.15.3
* Mon Jul 30 2007 locilka@suse.cz
- 2.15.2
* Fri May 25 2007 jsrain@suse.cz
- removed outdated translations from .desktop-files (#271209)
* Fri Mar  9 2007 locilka@suse.cz
- Adjusted RPM dependencies: yast2-installation is not needed.
- 2.15.1
* Mon Dec  4 2006 locilka@suse.cz
- Fixed restoration of archives containing files with quotes,
  spaces, backslashes or other special characters (#220172).
- 2.15.0
* Tue Oct 10 2006 locilka@suse.cz
- New version for maintenance
- 2.14.0
* Mon Mar  6 2006 locilka@suse.cz
- Adjusting BuildRequires for package
- 2.13.1
* Fri Jan  6 2006 locilka@suse.cz
- New version for maintenance
- 2.13.0
* Tue Aug 16 2005 locilka@suse.cz
- Merged proofread texts (2nd round)
- 2.12.5
* Thu Jul 28 2005 locilka@suse.cz
- Merged proofread texts
- 2.12.4
* Wed Jul 20 2005 jsrain@suse.cz
- fixed neededforbuld (added limal stuff for bootloader)
- 2.12.3
* Wed Jul 20 2005 arvin@suse.de
- added yast2-storage-lib to neededforbuild
- 2.12.2
* Tue Jul 12 2005 locilka@suse.cz
- Changed texts and helps to be YaST Style Guide compatible
- 2.12.1
* Thu Apr 21 2005 locilka@suse.cz
- Added Command Line Interface support (actually only information
  that CMDLine is not supported)
- Removed deprecated 'lookup' and 'select' builtin commands
- 2.12.0
* Fri Nov  5 2004 locilka@suse.cz
- Adjusted for new Mode implementation
- 2.11.1
* Tue Oct 19 2004 locilka@suse.cz
- using global text-messages anywhere it is possible
- 2.11.0
* Mon Sep 20 2004 lslezak@suse.cz
- added Set/GetModified functions (autoyast API)
- version 2.10.1
* Fri Aug 27 2004 lslezak@suse.cz
- merged proofread text
- version 2.10.0
* Mon May 24 2004 lslezak@suse.cz
- ignore gpg-pubkey packages - they are not real RPMs
  and cannot be reinstalled (#40324)
- version 2.9.12
* Wed May 12 2004 lslezak@suse.cz
- fixed star archive detection (#40325), ignore warnings in
  star output
- don't read backup archive in autoyast config mode (#40190)
- version 2.9.11
* Fri Apr  2 2004 uml6@suse.cz
- changed license to GPL
- version 2.9.10
* Tue Mar 30 2004 nashif@suse.de
- Also add sequence for atexit
* Tue Mar 30 2004 nashif@suse.de
- Added missing alias to autoyast workflow
* Wed Mar 10 2004 nashif@suse.de
- Adapt for new wizard
* Mon Mar  8 2004 lslezak@suse.cz
- use Sequencer::, Package::
- set icon
- version 2.9.6
* Sun Mar  7 2004 kkaempf@suse.de
- fix typing
* Mon Mar  1 2004 lslezak@suse.cz
- more strict data types
- merged proofread texts
- removed Product::
- version 2.9.4
* Wed Feb 18 2004 lslezak@suse.cz
- reading of the archive in autoyast config mode
  is optional (#34367)
* Tue Feb 10 2004 lslezak@suse.cz
- removed *.y2cc file
- version 2.9.3
* Fri Jan 30 2004 lslezak@suse.cz
- fixes for new interpreter (removed globals, nil checking)
- mount also floppies and CDs read-only
- use URL:: module for parsing
- build fix (ycp hook)
- version 2.9.2
* Fri Jan  9 2004 lslezak@suse.cz
- fixes for the new interpreter
- use Service:: module
- version 2.9.1
* Wed Nov 19 2003 lslezak@suse.cz
- use UI:: file popup builtins
- version 2.9.0
* Thu Sep 25 2003 lslezak@suse.cz
- use Require module (#31673)
* Sun Sep 14 2003 adrian@suse.de
- make it working in kcontrol
* Fri Sep  5 2003 lslezak@suse.de
- mount devices read-only
- unmount source in the autoinstallation mode
- merged texts from proofread
- fixed RPMv4 database name
- logging fixed
- version 2.8.4
* Mon Sep  1 2003 lslezak@suse.de
- parse archive content by perl script (for big archives it is
  much faster)
- added missing imports
- use NetworkPopup::NFSServer
- version 2.8.3
* Mon Aug 25 2003 lslezak@suse.de
- backup current RPM DB before restoration
- removed "Initializing..." dialog
- read commpressed package descriptions
- propose and check RPM restoration status
- version 2.8.2
* Mon Aug 18 2003 lslezak@suse.cz
- use Label:: and Popup:: modules
- version 2.8.1
* Wed Aug  6 2003 lslezak@suse.de
- added help text
- added .desktop file
- version 2.8.0
* Wed Mar 12 2003 lslezak@suse.de
- fixed extra } at the end of src/restore_auto.ycp file
- version 2.7.5
* Mon Mar 10 2003 lslezak@suse.de
- start portmapper if it isn't runnig (needed at autoinstallation
  if non-NFS installation source and NFS backup archive is used)
- copy y2logs to directory /var/log/YaST2.before_restore before
  restoring files (y2logs are overwritten by archived files)
- version 2.7.4
* Mon Mar  3 2003 lslezak@suse.de
- fixed archive search, restore files to the root
  directory (#24470)
- fixed star archiver installation
- boot loader reinstallation fix (force installation even if
  configuration is unchanged)
- version 2.7.3
* Mon Feb 24 2003 lslezak@suse.de
- autoinstallation client bugfix
- version 2.7.2
* Mon Feb 10 2003 lslezak@suse.de
- merged proofread texts
- version 2.7.1
* Mon Feb  3 2003 lslezak@suse.cz
- updated autoinstallation support
- added function keys shortcuts
- fixed autoinstallation configuration bug (files in partially
  selected packages were lost)
- star archiver support
- update to the new Bootloader:: API
- merged proof-read texts
- version 2.7.0
* Wed Sep 18 2002 lslezak@suse.cz
- fixed unstranslated message in help text
- version 2.6.11
* Wed Sep  4 2002 lslezak@suse.cz
- fixed importing
- new icon in y2cc
- version 2.6.10
* Mon Aug 26 2002 lslezak@suse.cz
- use Pkg::GetPackages to get list of installed packages
- version 2.6.9
* Fri Aug 23 2002 lslezak@suse.cz
- better autoyast configuration (fixed behaviour, added summary)
- use Pkg::PkgSummary to get package description
- version 2.6.8
* Mon Aug 19 2002 lslezak@suse.cz
- unpack files from archive to root dir
- system.png icon in Y2CC (temporary)
- version 2.6.7
* Wed Aug 14 2002 lslezak@suse.cz
- merged proofread texts
- version 2.6.6
* Fri Aug  9 2002 lslezak@suse.de
- fixed summary dialog
- fixed bootloader configuration
- added help texts for translators
- version 2.6.5
* Mon Aug  5 2002 lslezak@suse.cz
- added help texts for translators
- fixed NFS source bug
- grub bootloader support
- use (old) package manager
- fixed #neededforbuild and Requires - yast2-devel-packages, tar
- version 2.6.4
* Mon Jul 22 2002 jsrain@suse.cz
- merged proofread texts
- version 2.6.3
* Fri Jul 12 2002 arvin@suse.de
- use proper namespace for Args and CallFunction (#16776)
* Fri Jul  5 2002 arvin@suse.de
- moved non binary files to /usr/share/YaST2
* Thu May  2 2002 lslezak@suse.cz
- initial version