File yast2-product-creator.spec of Package yast2-product-creator

#
# spec file for package yast2-product-creator (Version 2.17.17)
#
# 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-product-creator
Version:        2.17.17
Release:        0.<RELEASE1>
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-product-creator-2.17.17.tar.bz2
Prefix:         /usr
BuildRequires:  autoyast2-installation perl-XML-Writer update-desktop-files yast2 yast2-add-on-creator yast2-devtools yast2-packager yast2-security yast2-testsuite
PreReq:         %fillup_prereq
Requires:       autoyast2-installation yast2-security
# ag_pattern handling gzipped files
Requires:       yast2-add-on-creator >= 2.17.1
# SourceDialogs::IsPlainDir()
Requires:       yast2-packager >= 2.16.20
# changes in ag_anyxml agent
Requires:       yast2 >= 2.17.8
# Pkg::SourceForceRefreshNow()
Requires:       yast2-pkg-bindings >= 2.17.6
# New API of StorageDevices.ycp
Conflicts:      yast2-storage < 2.16.1
BuildArch:      noarch
Summary:        YaST2 - Module for Creating New Products

%description
A wizard for creating your own product (installation images, live ISO,
XEN images etc.), based on existing installation sources.



%prep
%setup -n yast2-product-creator-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
install -d $RPM_BUILD_ROOT/var/lib/YaST2/product-creator

%clean
rm -rf "$RPM_BUILD_ROOT"

%post
%{fillup_only -n product-creator}

%files
%defattr(-,root,root)
%dir /usr/share/YaST2/include/product-creator
/usr/share/YaST2/include/product-creator/*
/usr/share/YaST2/clients/product-creator.ycp
/usr/share/YaST2/clients/image-creator.ycp
/usr/share/YaST2/clients/kiwi.ycp
/usr/share/YaST2/modules/*.ycp
/usr/share/YaST2/modules/*.ybc
%{prefix}/share/applications/YaST2/product-creator.desktop
%{prefix}/share/applications/YaST2/image-creator.desktop
%{prefix}/lib/YaST2/bin/y2mkiso
%doc %{prefix}/share/doc/packages/yast2-product-creator
%dir /usr/share/YaST2/data/product-creator
/usr/share/YaST2/data/product-creator/*
#%dir /etc/YaST2/product-creator
/usr/share/YaST2/scrconf/*.scr
/var/adm/fillup-templates/sysconfig.product-creator
%changelog
* Thu Mar 12 2009 jsuchome@suse.cz
- escape URL of base product when saving to XML (bnc#482395)
- copy optional files as optional (bnc#482329)
- sign and create a checksum for add_on_products file (bnc#481470)
- bring all required patterns into the final product (bnc#482540)
- 2.17.17
* Wed Mar 04 2009 jsuchome@suse.cz
- add GPG key correctly to the installkey.gpg keyring inside initrd
  (bnc#478975)
- before signing a file check for its existence (bnc#481838)
- 2.17.16
* Thu Feb 19 2009 jsuchome@suse.cz
- Image Creator: use SLES11 as a default target in template
  (bnc#477645)
- 2.17.15
* Fri Jan 30 2009 lslezak@suse.cz
- unload all sources after changing a configuration to reset the
  internal state so the correct "cross-ppc-binutils" package is
  installed (bnc#469191)
- 2.17.14
* Tue Jan 27 2009 lslezak@suse.cz
- PPC boot files are optional (SLES11 does not contain 'inst32'
  file) (bnc#469272)
* Wed Nov 19 2008 lslezak@suse.cz
- fixed creating cross-arch PPC product (cross-ppc-binutils,
  updated lilo and util-linux packages are needed) (bnc#443859)
- 2.17.13
* Tue Nov 11 2008 lslezak@suse.cz
- fixed architecture check of CODE11 repositories (bnc#438732)
- 2.17.12
* Fri Oct 31 2008 jsuchome@suse.cz
- image-creator template: install pattern packages by default
  (bnc#404022)
- 2.17.11
* Fri Oct 31 2008 lslezak@suse.cz
- read and set the product name (bnc#440609)
* Fri Oct 24 2008 lslezak@suse.cz
- File "/PS3/otheros/otheros.bld" is optional when creating a PPC
  product (bnc#438210)
* Thu Oct 23 2008 lslezak@suse.cz
- added a help text describing linuxrc option insecure=1
* Wed Oct 15 2008 jsuchome@suse.cz
- Image Creator: added widgets for locale, timezone and keytable
  (bnc#435208)
- 2.17.10
* Tue Oct 14 2008 lslezak@suse.cz
- use Pkg::ResolvableProperties() instead of
  Pkg::PkgPropertiesAll() when verifying availablity of all
  packages, that's much faster
- add 'Insecure: 1' to linuxrc.config file when the product is not
  signed (bnc#421571)
- 2.17.9
* Mon Oct 13 2008 lslezak@suse.cz
- mark taboo packages when creating a product (bnc#421180)
- 2.17.8
* Mon Oct 13 2008 jsuchome@suse.cz
- Image Creator: include packagemanager in templates (bnc#434692)
* Mon Oct 13 2008 lslezak@suse.cz
- fixed source ID checks (0 is a valid ID)
- do not automatically add kernel-pae (i386 only) package into
  x86_64 product (bnc#421995)
- properly convert repo URL to ID
* Tue Sep 09 2008 jsuchome@suse.cz
- merged texts from proofread
- 2.17.7
* Mon Aug 11 2008 lslezak@suse.cz
- added cross-architecture support (e.g. create a PPC installation
  iso image on an i386 machine, but does not work in the kiwi part)
  (fate#301883)
- 2.17.6
* Fri Aug 01 2008 jsuchome@suse.cz
- Image Creator: added GUI to configure image compression
- 2.17.5
* Fri Jul 25 2008 jsuchome@suse.cz
- read the default information for new type from the template
- .background agent replaced by .process
* Thu Jul 24 2008 jsuchome@suse.cz
- adapted to last version of ag_anyxml (bnc#409491)
- Image Creator: allow more configurations with same name
- added new image type that was not in previous config.xml
- 2.17.4
* Mon Jul 07 2008 jsuchome@suse.cz
- create a path to the defaultroot directory if it doesn't exists
  (bnc#406731)
- 2.17.3
* Wed Jun 18 2008 jsuchome@suse.cz
- handle pattern file with more patterns when deleting unused
  ones (bnc#393515)
- do not delete patters required by selected ones
- 2.17.2
* Mon Jun 16 2008 jsuchome@suse.cz
- image-creator: removed dependency on ag_kiwi, use generci ag_anyxml
  agent for reading config.xml
- correctly handle plaindir repository type
- 2.17.1
* Wed Jun 11 2008 jsuchome@suse.cz
- image-creator: added support for UID, GID and user's full name
- 2.17.0
* Tue Jun 03 2008 jsuchome@suse.cz
- check if map key exists before removing it (bnc#396666)
- 2.16.19
* Thu May 22 2008 jsuchome@suse.cz
- added support for profiles (bnc#343212)
- do not install yast2-instserver
- 2.16.18
* Fri May 16 2008 jsrain@suse.cz
- added categories Settings and System into desktop file
  (bnc #382778)
* Fri May 16 2008 jsuchome@suse.cz
- updated kiwi templates, added support for spit section,
  fixed handling of ignored and deleted packages (bnc#343212)
- 2.16.17
* Tue May 06 2008 ug@suse.de
- set "implicit" to "1" in the isolinux.cfg
* Wed Apr 30 2008 lslezak@suse.cz
- added missing ')' in a help text (bnc#384166)
- 2.16.16
* Wed Apr 30 2008 jsuchome@suse.cz
- fixed kiwi templates
- text fixes (software selection labels)
- 2.16.15
* Tue Apr 29 2008 lslezak@suse.cz
- do not require yast2-instserver package, ag_content agent is now
  in yast2 package (bnc#339126)
- 2.16.14
* Thu Apr 17 2008 lslezak@suse.cz
- fixed texts ('CD Creator' -> 'Product Creator')
* Wed Apr 16 2008 lslezak@suse.cz
- use relurl:// schema in 'add_on_products' file instead of cd://,
  the addons will be used automatically also over FTP/HTTP/...
* Fri Apr 04 2008 jsuchome@suse.cz
- write the full URL into config.xml for https sources (bnc#376666)
- 2.16.13
* Wed Apr 02 2008 lslezak@suse.cz
- adapted to the new callback registration scheme (fate#302296)
- 2.16.12
* Fri Mar 28 2008 jsuchome@suse.cz
- use new ag_anyxml to read parts of config.xml (WIP)
- show package lists in different kiwi profiles
- neutralize package and pattern selection before opening package
  selector
- do not return patterns selected by dependencies from package
  selector (requires transact_by in Pkg:ResolvableProperties)
- 2.16.11
* Tue Mar 25 2008 jsuchome@suse.cz
- fixes for bnc#364838:
- save modification of target image type
- set the default value of format attribute for vmx image
- check for kiwi-desc-* packages after selecting image type
* Tue Mar 25 2008 lslezak@suse.cz
- always update metadata in content files (bnc#368146)
- 2.16.10
* Mon Mar 17 2008 jsrain@suse.cz
- added 'StartupNotify=true' to the desktop file (bnc #304964)
* Wed Mar 12 2008 lslezak@suse.cz
- do not use StorageDevices:: module, not needed anymore
- fixed the architecture check
- better check product dependency, added a new dialog for selecting
  the base product (#368580)
* Tue Mar 11 2008 lslezak@suse.cz
- adapted to the new ProgressDownload callback signature (#168935)
- 2.16.9
* Mon Feb 18 2008 lslezak@suse.cz
- adapted to the new plaindir API in SourceDialogs module
  (use SourceDialogs::IsPlainDir() to get the plaindir flag)
* Wed Feb 06 2008 jsuchome@suse.cz
- save user password when importing configuration (bnc#357922)
- 2.16.8
* Fri Jan 25 2008 jsuchome@suse.cz
- added support for keytable and timezone keys; save preferences
  section with correct ordering (#355568)
- 2.16.7
* Thu Jan 17 2008 jsuchome@suse.cz
- support more user groups in kiwi configuration (#346501)
* Fri Jan 04 2008 lslezak@suse.cz
- do not call Pkg::SaveState() and Pkg::RestoreState(), the state
  is saved/restored by the package selector widget
* Wed Dec 05 2007 jsuchome@suse.cz
- added command line support (F302395)
- fixed generating configuration path name (#346152)
- 2.16.6
* Mon Dec 03 2007 jsuchome@suse.cz
- perl-XML-LibXML required for ag_kiwi
- merged texts from proofread
* Mon Nov 12 2007 lslezak@suse.cz
- select the current language if there is no language selected,
  prevent the solver from allocating too much resources (#339756)
- 2.16.5
* Mon Nov 12 2007 jsuchome@suse.cz
- image-creator:
  do not allow importing non-system configurations (#340495)
* Fri Nov 09 2007 lslezak@suse.cz
- y2mkiso - updated and enhanced help text (#336821)
* Fri Nov 09 2007 lslezak@suse.cz
- properly download /boot, /docu and slideshow files (#338625)
- compress metadata if needed, replace the old one, support
  compressed patter files, generate packages.DU only up to
  the 3rd directory level (#335183)
- copy PPC boot files in /suseboot, /ppc and /PS3 (#335177)
- add GPG key to installation initrd on PPC architecture (#339449)
- install required package createrepo (#331530), install additional
  packages on PPC
- fixed ISO image creation on PPC when the path contained spaces
  (#335164)
- skip isolinux configuration when the architecture is not i386
  or x86_64 (#335167)
- display download callbacks in the main window, no flashing popups
  (#338626)
* Fri Nov 02 2007 jsuchome@suse.cz
- correctly escape strings which should be written to config.xml
  (seen in #338090)
* Thu Nov 01 2007 jsuchome@suse.cz
- fixed checking if repository has 'plaindir' format (#338115)
- show which repositories YaST failed to add (#337618)
- added support for "format" and "locale" tags in config.xml
- added support for OEM image type
- call kiwi with --nocolor to shorten the output
- 2.16.4
* Mon Oct 29 2007 jsuchome@suse.cz
- package kernel-bigsmp has been renamed to kernel-pae
- make a conflict with old yast2-storage
- 2.16.3
* Fri Oct 26 2007 jsuchome@suse.cz
- fix the sequence for going to kiwi image from main summary
- do not read the template name when going from main summary
- 2.16.2
* Thu Oct 25 2007 jsuchome@suse.cz
- adapted for the API change of StorageDevices.ycp
- merged features done in SLE10SP version 2.13.17, mostly the
  SLEPOS requirements (F302370, F302371) and related bugfixes:
    - allow more characters in the image name
    - fix modifying of repository (#334208)
    - check for duplicates in the list of boot images (#332581)
    - disable Delete button when there's nothing to delete (#334255)
    - update defaultroot only for new configurations (#327057)
    - check for absolute paths in boot image entry
    - fix initializing when going Back (#332581)
    - fix adding CD/DVD/SLP repositories (#333106)
    - show correct list of repositories when going back (#332253)
    - use system repositories when none is specified (#332253)
    - menubutton for adding system repositories (#332253)
    - added SUPPORTED_BOOT_IMAGES to /etc/sysconfig/product-creator:
  possibility to limit list of offered boot images (#331733)
    - append image name to defaultdestination and defaultroot (#327057)
    - copy whole content of imported kiwi config directory (#330052)
    - save defaultroot value to config.xml (#330059)
    - don't ignore 'inherit' tag (#330079)
    - added support for "this://" in repository paths (#330095)
    - destination directory specified in sysconfig file (#327055)
    - tell zypper to ignore zypp lock (#310581)
    - remove 'prepare' directory before calling kiwi (#325664)
    - added /etc/sysconfig/product-creator config file
- 2.16.1
* Thu Oct 04 2007 jsuchome@suse.cz
- add a default user to the iso template (#328145)
- new template based on current kiwi-desc-livesystem (#328003)
- do not allow configuration without name (#328003)
- 2.16.0
* Thu Sep 27 2007 lslezak@suse.cz
- fixed a typo in the description of "passphrase_file" option
  (#309537)
* Mon Sep 24 2007 jsuchome@suse.cz
- do not close module after kiwi failure (#327593)
- check stderr and stdout after kiwi finish/failure (#327610)
- count the maximum size in package selector (#327901)
- kiwi.ycp requires kiwi-desc-*boot
- simpler kiwi template for iso
- 2.15.8
* Sun Sep 02 2007 jsuchome@suse.cz
- write schemeversion to config.xml
- save new kiwi image configurations to vardir/product-creator
- do not import already imported and modified configuration
- enable modifications of configurations without creating images
- require root for running yast2 kiwi (#309456)
- 2.15.7
* Tue Aug 28 2007 jsuchome@suse.cz
- include the package from "post-packages" section of autoyast
  profile (#291776)
* Mon Aug 27 2007 jsuchome@suse.cz
- do not require packages with image descriptions, include required
  files (originally created by ms@suse.de for kiwi-desc-buildservice
  and kiwi-desc-livesystem) as templates (#289552)
- show kiwi error output in separate window
- enable Browse button for output directory
- 2.15.6
* Tue Aug 14 2007 jsuchome@suse.cz
- enable double-clicks in tables
- 2.15.5
* Fri Aug 10 2007 jsuchome@suse.cz
- helptext for kiwi UI
- CLI option for gpg passphrase (patch by daniel.rahn and lslezak,
  [#287477])
- 2.15.4
* Thu Aug 09 2007 jsuchome@suse.cz
- kiwi UI: enable creating config from scratch, with default
  YaST sources
- 2.15.3
* Wed Aug 08 2007 jsuchome@suse.cz
- yet another fix for "Back" button behavior (#289524)
- enable editing of isolinux.cfg in case of autoYaST usage (#287443)
- 2.15.2
* Thu Aug 02 2007 jsuchome@suse.cz
- "installation source" changed to "repository"
- mark the output product as "base"
- added simplified UI for kiwi
- 2.15.1
* Wed Jul 25 2007 lslezak@suse.cz
- fixed "Back" button behavior in the Isolinux configuration
  dialog (#289524)
* Thu Jun 21 2007 jsuchome@suse.cz
- new version for openSUSE
- 2.15.0
* Mon Jun 18 2007 jsuchome@suse.cz
- changed "Create ISO image" button label, added missing help text
  (#284276)
- 2.13.7
* Wed Jun 13 2007 jsuchome@suse.cz
- merged texts from proofreading
- fixed the help text for signing (#283235)
- 2.13.6
* Tue Jun 05 2007 jsuchome@suse.cz
- kiwi UI: create output directly in output directory to prevent
  problems with kernel symlink (#279981)
- 2.13.5
* Thu May 31 2007 lslezak@suse.cz
- if the product is not bootable do not create /boot directory,
  skip isolinux.cfg configuration and display a warning message
  (#278731)
- update directory.yast in /media.1 directory
- display error message when a configured source is not found
- 2.13.4
* Wed May 30 2007 jsuchome@suse.cz
- select the boot image automaticaly, according to the base product
  (#270881)
- 2.13.3
* Tue May 29 2007 lslezak@suse.cz
- 2.13.2
* Mon May 28 2007 lslezak@suse.cz
- reinitialize the package manager before creating another image
* Mon May 28 2007 lslezak@suse.cz
- install "yast2-instserver" package (.content_file agent)
- fixed signing of addon products
- allow spaces in the file names (#275918)
* Wed May 23 2007 lslezak@suse.cz
- 2.13.1
* Wed May 23 2007 lslezak@suse.cz
- copy the downloaded packages (moving might fail due to restricted
  permissions)
- use cd:/// URL scheme in add_on_products file to automatically
  add the addons during installation
* Tue May 22 2007 lslezak@suse.cz
- run the package selector when there is an unresolved dependency
  when creating installation ISO
* Tue May 22 2007 lslezak@suse.cz
- escape XML entities in URL when writing the config file
  (fixed saving of ISO file URL)
* Mon May 21 2007 lslezak@suse.cz
- fixed the default boot item in isolinux.cfg for AutoYast
  installation (#275911)
* Mon May 21 2007 lslezak@suse.cz
- fixed workflow: display the GPG dialog also if an AutoYast
  profile is used for package selection (#275913)
* Mon May 21 2007 lslezak@suse.cz
- always store isolinux.cfg into the config file, even if there
  is no change (#275914)
* Wed May 16 2007 jsuchome@suse.cz
- added widgets for 'root' and 'config' directory editation
- updated 'type' value of config.xml to kiwi 1.33
- 2.13.0
* Fri Apr 27 2007 jsuchome@suse.cz
- added support for virtual disk systems (qemu, VMware)
* Thu Apr 26 2007 jsuchome@suse.cz
- added support for USB stick images
* Thu Apr 26 2007 lslezak@suse.cz
- added runPackageSelector() function - general package selection
- start "add" workflow if there is no configuration
- added CDCreator::LoadConfig()/CommitConfig()
* Thu Apr 26 2007 jsuchome@suse.cz
- save the configuration to cd-creator xml
- read the kiwi configuration from config.xml (ag_kiwi)
- added support for more values (size, unit)
- added XEN image support
* Thu Apr 19 2007 jsuchome@suse.cz
- run add-on-creator to create new installation sources
- dialogs for Live ISO configuration (F301945)
- install inst-source-utils instead of autoyast2-utils
* Thu Apr 19 2007 lslezak@suse.cz
- remember and set "taboo" packages
- don't loose user selected packages when changing software selection
- added content file cache - download each content file only once
- detect base product
- copy addons to Addons subdirectory
- create "add_on_products" file
- move downloaded packages (save space, might be faster)
- fixed help text (network sources can be used as the package repository)
- display source aliases
openSUSE Build Service is sponsored by