File yast2-wagon.spec of Package yast2-wagon

#
# spec file for package yast2-wagon (Version 2.17.6)
#
# Copyright (c) 2008 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-wagon
Version:        2.17.6
Release:        1
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-wagon-2.17.6.tar.bz2
Prefix:         /usr
# PackagesUI::RunPackageSelector
Requires:       yast2 >= 2.17.40
Requires:       yast2-online-update-frontend >= 2.17.9
BuildRequires:  perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite yast2-update
Provides:       yast2-online-update-frontend:/usr/share/applications/YaST2/cd_update.desktop
BuildArch:      noarch
Summary:        YaST2 - Migration Tool for Service Packs

%description
Wagon is a convenience tool to guide the user through the migration. It
does not contain any extra functionality beyond what's available
through command line tools.



Authors:
--------
    Lukas Ocilka <locilka@suse.cz>

%prep
%setup -n yast2-wagon-2.17.6

%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}
make %{?jobs:-j%jobs}

%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)
%{_prefix}/sbin/wagon
/usr/share/YaST2/clients/*.ycp
/usr/share/YaST2/modules/*.ycp
/usr/share/YaST2/modules/*.ybc
%dir /usr/share/YaST2/control
%{prefix}/share/applications/YaST2/*.desktop
/usr/share/YaST2/control/*.xml
%doc %{prefix}/share/doc/packages/yast2-wagon
%changelog
* Tue Nov 25 2008 locilka@suse.cz
- Fixed potfile generation (bnc #446115).
- Text marked for translation (bnc #448634).
- 2.17.6
* Fri Nov 07 2008 locilka@suse.cz
- Using PackagesUI for opening a package selector (bnc #435479).
- 2.17.5
* Wed Oct 29 2008 locilka@suse.cz
- Restarting the very next step instead of the same step in case of
  restarting wagon after self-update (prevents from loop).
- Remembering and reusing adjusted wagon workflow.
- Fixed Provides for PatchCD desktop file - it was owned by
  yast2-online-update-frontend.
- Storing sources when restarting or correctly finishing wagon.
- 2.17.4
* Mon Oct 27 2008 locilka@suse.cz
- Calling inst_prepareprogress before inst_kickoff (bnc #438848).
- 2.17.3
* Wed Oct 22 2008 locilka@suse.cz
- Enhanced self-update mechanism to use packages as fallback when
  no patches (for package management) are installable.
* Fri Oct 17 2008 locilka@suse.cz
- PatchCD control file moved here from yast2-online-update.
* Fri Oct 17 2008 locilka@suse.cz
- Added wagon_update_proposal client and DUP proposal functions
  in Wagon module.
- Added inst_kickoff and inst_rpmcopy calls into control file.
- 2.17.2
* Thu Oct 16 2008 locilka@suse.cz
- Configuration of subworkflows added to the control file.
- Handling subworkflows - adjusted by command-line parameter or
  during module run.
- Added wagon_custom_url client that allows user to select custom
  update URL manually and for PatchCD.
* Tue Oct 14 2008 locilka@suse.cz
- Implemented self-update mechanism partly used from online_update.
- Added wagon_update_url client that offers to select the URL that
  is used for the upgrade.
* Mon Oct 13 2008 locilka@suse.cz
- Added command-line support.
- Added running_by_applet support - shortens the workflow.
* Sat Oct 11 2008 mvidner@suse.cz
- Merged /usr/sbin/wagon from wagon.rpm (bnc#430595).
- 2.17.1
* Mon Sep 29 2008 locilka@suse.cz
- Added possibility to restart YaST on request.
- 2.17.0
* Thu Sep 25 2008 locilka@suse.cz
- initial version
openSUSE Build Service is sponsored by