File yast2-registration.spec of Package yast2-registration

#
# spec file for package yast2-registration (Version 2.17.17)
#
# 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-registration
Version:        2.17.17
Release:        1
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-registration-2.17.17.tar.bz2
Prefix:         /usr
Requires:       yast2 >= 2.17.0
Requires:       yast2-packager >= 2.17.0
Requires:       suseRegister
Requires:       perl-TimeDate limal limal-perl limal-ca-mgm-perl
Requires:       yast2-pkg-bindings >= 2.17.20
Requires:       yast2-registration-branding
PreReq:         %fillup_prereq
BuildRequires:  yast2 >= 2.17.0
BuildRequires:  perl-XML-Writer update-desktop-files yast2-devtools yast2-packager yast2-testsuite
BuildRequires:  limal limal-ca-mgm-perl limal-perl perl-TimeDate
BuildRequires:  yast2-pkg-bindings >= 2.17.20
BuildRequires:  suseRegister
BuildArch:      noarch
Summary:        YaST2 - Registration Module

%description
The registration module to register products and/or to fetch an update
source (mirror) automatically.



Authors:
--------
    J. Daniel Schmidt <jdsn@suse.de>

%prep
%setup -n yast2-registration-2.17.17

%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
#%if %sles_version
#    rm $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/suse_register.desktop
#%else
#    rm $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/customer_center.desktop
#%endif

%clean
rm -rf "$RPM_BUILD_ROOT"

%package branding-SLE
License:        GPL v2 or later
Requires:       yast2-registration
Provides:       yast2-registration-branding
Conflicts:      otherproviders(yast2-registration-branding)
Summary:        YaST2 - Registration Module
Group:          System/YaST

%description branding-SLE
The registration module to register products and/or to fetch an update
source (mirror) automatically.



Authors:
--------
    J. Daniel Schmidt <jdsn@suse.de>

%package branding-openSUSE
License:        GPL v2 or later
Requires:       yast2-registration
Provides:       yast2-registration-branding
Conflicts:      otherproviders(yast2-registration-branding)
Summary:        YaST2 - Registration Module
Group:          System/YaST

%description branding-openSUSE
The registration module to register products and/or to fetch an update
source (mirror) automatically.



Authors:
--------
    J. Daniel Schmidt <jdsn@suse.de>

%pre
/usr/sbin/groupadd -r suse-ncc 2> /dev/null || :
/usr/sbin/useradd -r -s /bin/bash -c "Novell Customer Center User" -d /var/lib/YaST2/suse-ncc-fakehome -g suse-ncc suse-ncc 2> /dev/null || :

%post
%{fillup_only -ns suse_register yast2-registration}

%files
%defattr(-,root,root)
%doc %{prefix}/share/doc/packages/yast2-registration
/usr/share/YaST2/clients/*.ycp
/usr/share/YaST2/modules/*.pm
/usr/share/YaST2/modules/*.ycp
/usr/share/YaST2/modules/*.ybc
%dir /usr/share/YaST2/include/registration
/usr/share/YaST2/include/registration/*.ycp
%{prefix}/share/applications/YaST2/online_update_configuration.desktop
/usr/share/YaST2/schema/autoyast/rnc/*.rnc
/usr/lib/YaST2/bin/online_update
/usr/share/YaST2/yastbrowser
# agents
/usr/share/YaST2/scrconf/cfg_suse_register.scr
/usr/share/YaST2/scrconf/cfg_automatic_online_update.scr
#fillup
/var/adm/fillup-templates/sysconfig.suse_register-yast2-registration
/var/adm/fillup-templates/sysconfig.automatic_online_update-yast2-registration

%files branding-SLE
%defattr(-,root,root)
%{prefix}/share/applications/YaST2/customer_center.desktop

%files branding-openSUSE
%defattr(-,root,root)
%{prefix}/share/applications/YaST2/suse_register.desktop
%changelog
* Mon Dec 01 2008 jdsn@suse.de
- fix detection of base product (bnc#449844)
- 2.17.17
* Thu Nov 27 2008 jdsn@suse.de
- fix restoring the default update repository (bnc#444301)
- 2.17.16
* Mon Nov 24 2008 jdsn@suse.de
- call other modules via WFM (bnc#447043)
- 2.17.15
* Fri Nov 21 2008 jdsn@suse.de
- adapt to new suseRegister states (bnc#446572)
- 2.17.14
* Thu Nov 20 2008 jdsn@suse.de
- finish sources when changed to enforce reload (bnc#447080)
- merge service repo flags instead overwriting them
* Fri Nov 14 2008 jdsn@suse.de
- fix repo type definition for adding sources (bnc#444770)
- remove deprecated unused function
- add more debug logging
- service changes should not enable all its catalogs
- refresh services prior to repositories
- 2.17.13
* Thu Nov 13 2008 jdsn@suse.de
- fix empty install message (bnc#444638)
* Tue Nov 11 2008 jdsn@suse.de
- fix error in sformat statement (bnc#443781)
- 2.17.12
* Tue Nov 11 2008 jdsn@suse.de
- fix registration code parameter (bnc#443704)
* Fri Nov 07 2008 jdsn@suse.de
- fix reading repo settings (bnc#427698)
- 2.17.11
* Thu Nov 06 2008 jdsn@suse.de
- split off branding packages (bnc#436644)
- fix error code handling of SuseRegister
- updated yastbrowser for xulrunner191 (bnc#383660)
* Wed Nov 05 2008 ug@suse.de
- desktop file changed
* Fri Oct 31 2008 mc@suse.de
- YSR module should return true
* Thu Oct 30 2008 jdsn@suse.de
- check for w3m in textmode registration (bnc#440289)
- reset registration backend before exiting
* Wed Oct 29 2008 jdsn@suse.de
- remove requires to sles-release
- 2.17.10
* Wed Oct 29 2008 jdsn@suse.de
- consistent naming in autoYaST profile
* Fri Oct 24 2008 jdsn@suse.de
- checking if registration runs on xen (bnc#418287)
- more verbose logging
- 2.17.9
* Mon Oct 20 2008 jdsn@suse.de
- activate autorefresh for new services
- remove requires to mozilla-xulrunner (bnc#436900)
- 2.17.8
* Fri Oct 17 2008 jdsn@suse.de
- changing repos and services only via pkg-bindings (bnc#435669)
- 2.17.7
* Fri Oct 17 2008 jdsn@suse.de
- fix to display correct text in manual interaction (bnc#435869)
- refresh services after creating them
- 2.17.6
* Fri Oct 17 2008 jdsn@suse.de
- display correct text during manual interaction (bnc#435869)
- fix repeated initializations of suseRegister
- ask to trust CA certificate of registration server (port from SP2)
- spec file clean up
- 2.17.5
* Thu Oct 16 2008 jdsn@suse.de
- call to saveLastZmdConfig added (bnc#435696)
- removed installing the certificate to zmd (bnc#435631)
- add credetials information to services url (bnc#435645)
- fix xulrunner dependency (bnc#435872)
- 2.17.4
* Tue Oct 14 2008 jdsn@suse.de
- check if initialization of SuseRegister succeeds (bnc#435188)
- initialize the target to prevent repeated key import (bnc#435192)
- adapting repo changes as well in autoYaST mode
- 2.17.3
* Mon Oct 13 2008 jdsn@suse.de
- support repository changes in catalogs (bnc#430896)
- added mandatory source refreshes
- 2.17.2
* Wed Oct 08 2008 jdsn@suse.de
- use new suse_register backend (bnc#430896)
- change registration server in UI
- 2.17.1
* Fri Sep 12 2008 jdsn@suse.de
- new module for online update configuration (fate#303458)
- simplifying/cleaning up sw management (fate#303458)
- 2.17.0
* Tue Jul 01 2008 jdsn@suse.de
- removed unused GetInstArgs call
* Fri May 30 2008 lslezak@suse.cz
- initialize the target to read the GPG keys (bnc#394662)
- 2.16.7
* Thu May 29 2008 locilka@suse.cz
- Lslezak's patch for inst_suse_register to save all sources but
  not to disable them (bnc #395333).
- 2.16.6
* Thu May 29 2008 jdsn@suse.de
- call Pkg::SourceRestore before adding new source (bnc#395333)
- 2.16.5
* Tue May 27 2008 jdsn@suse.de
- handling cancel event in info window (bnc#217249)
* Mon May 26 2008 jdsn@suse.de
- fix preselected checkboxes (bnc#390367)
- create repositories with proper umask (bnc#392072)
- 2.16.4
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Fri May 09 2008 jdsn@suse.de
- removed online update from piwo (bnc#386633)
- adapted version compatibility flag of yastbrowser (bnc#383660)
- 2.16.3
* Fri Apr 25 2008 jdsn@suse.de
- show error output behind details button on error 101 (bnc#308117)
* Fri Apr 25 2008 jdsn@suse.de
- adding alternative strings using repository instead of source
* Thu Apr 24 2008 jdsn@suse.de
- fixed SMT autoyast bug (bnc#377929)
- integrated SMT renaming (bnc#376000)
- removed dependencies to limal for SMT support (bnc#380060)
- cleaned gui layout
- initial release of postinstallation workflow (piwo) (fate#303359)
- 2.16.2
* Tue Apr 01 2008 jdsn@suse.de
- proper pluralization in autoYaST (bnc#184893)
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc #304964)
* Wed Mar 05 2008 jdsn@suse.de
- added support for SMT (registration proxy)
- 2.16.1
* Fri Nov 02 2007 locilka@suse.cz
- Removed dependency on yast2-network, Internet YCP module has been
  moved to yast2.rpm.
- 2.16.0
* Fri Sep 07 2007 jdsn@suse.de
- importing PackageCallbacks (#307764)
- 2.15.3
* Sat Sep 01 2007 jdsn@suse.de
- adapted source management changes (#304310)
- wrapping of detailled error messages (#239570)
- 2.15.2
* Tue Aug 21 2007 jdsn@suse.de
- handling sysconfig file with fillup (#300064)
- code cleanup - nonroot user not supported
- 2.15.1
* Fri Aug 03 2007 jdsn@suse.de
- new version
- 2.15.0
* Tue Jul 17 2007 jdsn@suse.de
- made multiline texts gettext compatible (#230388)
- reactivated skip button in case of error (#240174)
- ensure that Sources are initialized on startup (#270899)
- 2.14.6
* Fri May 25 2007 jsrain@suse.cz
- removed X-SuSE-translate in order to build
- 2.14.5
* Mon Apr 02 2007 jdsn@suse.de
- fixed category in desktop files (#259914)
- 2.14.4
* Mon Mar 19 2007 jdsn@suse.de
- improved dependecies in spec file (#253975)
- 2.14.3
* Tue Nov 21 2006 jdsn@suse.de
- added autoyast schema file (#219408)
- 2.14.2
* Fri Nov 17 2006 jdsn@suse.de
- yastbrowser update, support for mozilla-xulrunner181 (#219354)
- removed dependencies to rug and zmd for openSUSE (#220807)
- hard dependencies to rug and zmd for SLE (#220807)
- check for wrong proxy settings (#208651)
- removed SuSEregister.pango call (FATE #300947)
- 2.14.1
* Mon Nov 13 2006 jsrain@suse.cz
- 2.14.0
* Thu Nov 09 2006 jsrain@suse.cz
- fixed textdomain (#219378)
- 2.13.4
* Tue Oct 31 2006 jdsn@suse.de
- using own icon in installation workflow (#211552)
- check for rug and zmd to be installed (#191135)
- show message if no product to be registered (#191258)
- avoid missing file error in log (#211899)
- do not log sensitive data from autoyast (#195624)
- renamed the _not_ missing file (inst_)suse_register.ycp
- 2.13.3
* Wed Oct 04 2006 jsrain@suse.cz
- added missing inst_suse_register.ycp
- 2.13.2
* Mon Oct 02 2006 locilka@suse.cz
- Added missing yast2-packager into BuildRequires
- 2.13.1
* Sat Aug 26 2006 jdsn@suse.de
- initial version
- split off registration from installation (#203551)
- fixed desktop files (#165891)
- fixed proxy bug under Gnome (#207332)
openSUSE Build Service is sponsored by