[yast-commit] r42553 - in /trunk/devtools/devtools/skeletons/config-python: ./ agents/ doc/ doc/autodocs/ package/ src/ testsuite/ testsuite/tests/
Author: dfiser Date: Fri Nov 30 13:54:06 2007 New Revision: 42553 URL: http://svn.opensuse.org/viewcvs/yast?rev=42553&view=rev Log: Added skeleton for yast modules written completely in python. Added: trunk/devtools/devtools/skeletons/config-python/ trunk/devtools/devtools/skeletons/config-python/.cvsignore trunk/devtools/devtools/skeletons/config-python/MAINTAINER trunk/devtools/devtools/skeletons/config-python/Makefile.cvs trunk/devtools/devtools/skeletons/config-python/RPMNAME trunk/devtools/devtools/skeletons/config-python/VERSION trunk/devtools/devtools/skeletons/config-python/agents/ trunk/devtools/devtools/skeletons/config-python/agents/.cvsignore trunk/devtools/devtools/skeletons/config-python/agents/Makefile.am trunk/devtools/devtools/skeletons/config-python/configure.in.in trunk/devtools/devtools/skeletons/config-python/doc/ trunk/devtools/devtools/skeletons/config-python/doc/.cvsignore trunk/devtools/devtools/skeletons/config-python/doc/Makefile.am trunk/devtools/devtools/skeletons/config-python/doc/autodocs/ trunk/devtools/devtools/skeletons/config-python/doc/autodocs/.cvsignore trunk/devtools/devtools/skeletons/config-python/doc/autodocs/Makefile.am trunk/devtools/devtools/skeletons/config-python/package/ trunk/devtools/devtools/skeletons/config-python/package/.cvsignore trunk/devtools/devtools/skeletons/config-python/package/yast2-XXpkgXX.changes trunk/devtools/devtools/skeletons/config-python/src/ trunk/devtools/devtools/skeletons/config-python/src/.cvsignore trunk/devtools/devtools/skeletons/config-python/src/Makefile.am trunk/devtools/devtools/skeletons/config-python/src/XXPkgXX.py trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.desktop trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.py trunk/devtools/devtools/skeletons/config-python/src/complex.py trunk/devtools/devtools/skeletons/config-python/src/dialogs.py trunk/devtools/devtools/skeletons/config-python/src/helps.py trunk/devtools/devtools/skeletons/config-python/src/wizards.py trunk/devtools/devtools/skeletons/config-python/testsuite/ trunk/devtools/devtools/skeletons/config-python/testsuite/.cvsignore trunk/devtools/devtools/skeletons/config-python/testsuite/Makefile.am trunk/devtools/devtools/skeletons/config-python/testsuite/tests/ trunk/devtools/devtools/skeletons/config-python/testsuite/tests/.cvsignore trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.err trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.out trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.ycp trunk/devtools/devtools/skeletons/config-python/yast2-XXpkgXX.spec.in Added: trunk/devtools/devtools/skeletons/config-python/.cvsignore URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/.cvsignore?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/.cvsignore (added) +++ trunk/devtools/devtools/skeletons/config-python/.cvsignore Fri Nov 30 13:54:06 2007 @@ -0,0 +1,20 @@ +Makefile +Makefile.am +Makefile.am.common +Makefile.in +aclocal.m4 +config.cache +config.guess +config.h.in +config.log +config.status +config.sub +configure +configure.in +depcomp +install-sh +missing +mkinstalldirs +stamp-h +XXpkgXX.pot +autom4te.cache Added: trunk/devtools/devtools/skeletons/config-python/MAINTAINER URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/MAINTAINER?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/MAINTAINER (added) +++ trunk/devtools/devtools/skeletons/config-python/MAINTAINER Fri Nov 30 13:54:06 2007 @@ -0,0 +1 @@ +XXmaintainerXX <XXemailXX> Added: trunk/devtools/devtools/skeletons/config-python/Makefile.cvs URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/Makefile.cvs?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/Makefile.cvs (added) +++ trunk/devtools/devtools/skeletons/config-python/Makefile.cvs Fri Nov 30 13:54:06 2007 @@ -0,0 +1,22 @@ +# +# Makefile.cvs +# +PREFIX = /usr + +LIB = $(shell y2tool get-lib) + +configure: all + ./configure --prefix=$(PREFIX) --libdir=$(PREFIX)/$(LIB) + +all: + y2tool y2autoconf + y2tool y2automake + autoreconf --force --install + +install: configure + make + make install + +reconf: all + ./config.status --recheck + ./config.status Added: trunk/devtools/devtools/skeletons/config-python/RPMNAME URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/RPMNAME?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/RPMNAME (added) +++ trunk/devtools/devtools/skeletons/config-python/RPMNAME Fri Nov 30 13:54:06 2007 @@ -0,0 +1 @@ +yast2-XXpkgXX Added: trunk/devtools/devtools/skeletons/config-python/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/VERSION?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/VERSION (added) +++ trunk/devtools/devtools/skeletons/config-python/VERSION Fri Nov 30 13:54:06 2007 @@ -0,0 +1 @@ +2.15.0 Added: trunk/devtools/devtools/skeletons/config-python/agents/.cvsignore URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/agents/.cvsignore?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/agents/.cvsignore (added) +++ trunk/devtools/devtools/skeletons/config-python/agents/.cvsignore Fri Nov 30 13:54:06 2007 @@ -0,0 +1,2 @@ +Makefile +Makefile.in Added: trunk/devtools/devtools/skeletons/config-python/agents/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/agents/Makefile.am?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/agents/Makefile.am (added) +++ trunk/devtools/devtools/skeletons/config-python/agents/Makefile.am Fri Nov 30 13:54:06 2007 @@ -0,0 +1,7 @@ +# Makefile.am for XXpkgXX/agents + +agent_SCRIPTS = + +scrconf_DATA = + +EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA) Added: trunk/devtools/devtools/skeletons/config-python/configure.in.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/configure.in.in?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/configure.in.in (added) +++ trunk/devtools/devtools/skeletons/config-python/configure.in.in Fri Nov 30 13:54:06 2007 @@ -0,0 +1,12 @@ +## YCP module configure.in.in + +## Initialize +@YAST2-INIT-COMMON@ +@YAST2-INIT-YCP@ + +## some common checks +@YAST2-CHECKS-COMMON@ +@YAST2-CHECKS-YCP@ + +## and generate the output... +@YAST2-OUTPUT@ Added: trunk/devtools/devtools/skeletons/config-python/doc/.cvsignore URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/doc/.cvsignore?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/doc/.cvsignore (added) +++ trunk/devtools/devtools/skeletons/config-python/doc/.cvsignore Fri Nov 30 13:54:06 2007 @@ -0,0 +1,2 @@ +Makefile +Makefile.in Added: trunk/devtools/devtools/skeletons/config-python/doc/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/doc/Makefile.am?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/doc/Makefile.am (added) +++ trunk/devtools/devtools/skeletons/config-python/doc/Makefile.am Fri Nov 30 13:54:06 2007 @@ -0,0 +1,10 @@ +# Makefile.am for XXpkgXX/doc + +SUBDIRS = + +htmldir = $(docdir) + +doc_DATA = +html_DATA = + +EXTRA_DIST = $(doc_DATA) $(html_DATA) Added: trunk/devtools/devtools/skeletons/config-python/doc/autodocs/.cvsignore URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/doc/autodocs/.cvsignore?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/doc/autodocs/.cvsignore (added) +++ trunk/devtools/devtools/skeletons/config-python/doc/autodocs/.cvsignore Fri Nov 30 13:54:06 2007 @@ -0,0 +1,3 @@ +Makefile +Makefile.in +*.html Added: trunk/devtools/devtools/skeletons/config-python/doc/autodocs/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/doc/autodocs/Makefile.am?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/doc/autodocs/Makefile.am (added) +++ trunk/devtools/devtools/skeletons/config-python/doc/autodocs/Makefile.am Fri Nov 30 13:54:06 2007 @@ -0,0 +1,3 @@ +# Makefile.am for XXpkgXX/doc/autodocs + +include $(top_srcdir)/autodocs-ycp.ami Added: trunk/devtools/devtools/skeletons/config-python/package/.cvsignore URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/package/.cvsignore?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/package/.cvsignore (added) +++ trunk/devtools/devtools/skeletons/config-python/package/.cvsignore Fri Nov 30 13:54:06 2007 @@ -0,0 +1,2 @@ +*.spec +*.bz2 Added: trunk/devtools/devtools/skeletons/config-python/package/yast2-XXpkgXX.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/package/yast2-XXpkgXX.changes?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/package/yast2-XXpkgXX.changes (added) +++ trunk/devtools/devtools/skeletons/config-python/package/yast2-XXpkgXX.changes Fri Nov 30 13:54:06 2007 @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +XXdateXX - XXemailXX + +- initial version Added: trunk/devtools/devtools/skeletons/config-python/src/.cvsignore URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/src/.cvsignore?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/src/.cvsignore (added) +++ trunk/devtools/devtools/skeletons/config-python/src/.cvsignore Fri Nov 30 13:54:06 2007 @@ -0,0 +1,4 @@ +Makefile +Makefile.in +*.ybc +.dep Added: trunk/devtools/devtools/skeletons/config-python/src/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/src/Makefile.am?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/src/Makefile.am (added) +++ trunk/devtools/devtools/skeletons/config-python/src/Makefile.am Fri Nov 30 13:54:06 2007 @@ -0,0 +1,27 @@ +# Makefile.am for XXpkgXX/src + +yncludedir = @yncludedir@/XXpkgXX + +client_DATA = \ + XXpkgXX.py + +#TODO: This must be modified to python can know from where can import! +ynclude_DATA = \ + helps.py \ + wizards.py \ + dialogs.py \ + complex.py + +desktop_DATA = \ + XXpkgXX.desktop + +module_DATA = XXPkgXX.py + +# create a symlink for local build, #145327 +XXpkgXX: + ln -sf . $@ +ycpchook = XXpkgXX + +EXTRA_DIST = $(client_DATA) $(ynclude_DATA) $(module_DATA) $(desktop_DATA) + +include $(top_srcdir)/Makefile.am.common Added: trunk/devtools/devtools/skeletons/config-python/src/XXPkgXX.py URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/src/XXPkgXX.py?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/src/XXPkgXX.py (added) +++ trunk/devtools/devtools/skeletons/config-python/src/XXPkgXX.py Fri Nov 30 13:54:06 2007 @@ -0,0 +1,301 @@ +#!/usr/bin/env python + +# ------------------------------------------------------------------------------ +# Copyright (c) 2006 Novell, Inc. All Rights Reserved. +# +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of version 2 of the GNU General Public License as published by the +# Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, contact Novell, Inc. +# +# To contact Novell about this file by physical or electronic mail, you may find +# current contact information at www.novell.com. +# ------------------------------------------------------------------------------ + +# File: modules/XXPkgXX3.py +# Package: Configuration of XXpkgXX +# Summary: XXPkgXX settings, input and output functions +# Authors: XXmaintainerXX <XXemailXX> +# +# $Id: XXPkgXX3.py 27914 2006-02-13 14:32:08Z locilka $ +# +# Representation of the configuration of XXpkgXX. +# Input and output routines. + + +from time import sleep +from YCPDeclarations import YCPDeclare +import ycp +from ycp import Term, Symbol, Path +from ycp import y2internal, y2security, y2error, y2warning, y2milestone, y2debug + +## + # Set textdomain + # +import gettext +gettext.install("XXpkgXX") + +ycp.import_module("Progress") +ycp.import_module("Report") +ycp.import_module("Summary") +ycp.import_module("Message") + +## + # Data was modified? + # +modified = False + +## + # +proposal_valid = False + +## + # Write only, used during autoinstallation. + # Don't run services and SuSEconfig, it's all done at one place. + # +write_only = False + +## + # Data was modified? + # @return true if modified + # +@YCPDeclare("boolean") +def Modified(): + global modified + y2debug ("modified=%d" % (modified)); + return modified + +## + # Mark as modified, for Autoyast. + # +@YCPDeclare("void", "boolean") +def SetModified(value): + global modified + modified = value + +@YCPDeclare("boolean") +def ProposalValid(): + global proposal_valid + return proposal_valid + +@YCPDeclare("void", "boolean") +def SetProposalValid(value): + global proposal_valid + proposal_valid = value + +@YCPDeclare("boolean") +def WriteOnly(): + global write_only + return write_only + +@YCPDeclare("void", "boolean") +def SetWriteOnly(value): + global write_only + write_only = value + + +# Settings: Define all variables needed for configuration of XXpkgXX +# TODO FIXME: Define all the variables necessary to hold +# TODO FIXME: the configuration here (with the appropriate +# TODO FIXME: description) +# TODO FIXME: For example: +# ## +# # List of the configured cards. +# # +# cards = [] +# +# ## +# # Some additional parameter needed for the configuration. +# # +# additional_parameter = 1 + +## + # Read all XXpkgXX settings + # @return true on success + # +@YCPDeclare("boolean") +def Read(): + global modified + + # XXPkgXX read dialog caption + caption = _("Initializing XXpkgXX Configuration") + + # TODO FIXME Set the right number of stages + steps = 4 + + sl = 0.5 + sleep(sl) + + # TODO FIXME Names of real stages + # We do not set help text here, because it was set outside + ycp.Progress.New(caption, " ", steps, [ + # Progress stage 1/3 + _("Read the database"), + # Progress stage 2/3 + _("Read the previous settings"), + # Progress stage 3/3 + _("Detect the devices") + ], [ + # Progress step 1/3 + _("Reading the database..."), + # Progress step 2/3 + _("Reading the previous settings..."), + # Progress step 3/3 + _("Detecting the devices..."), + # Progress finished + _("Finished") + ], + "" + ) + + # read database + ycp.Progress.NextStage(); + # Error message + if False: + ycp.Report.Error(_("Cannot read the database1.")) + sleep(sl) + + # read another database + ycp.Progress.NextStep() + # Error message + if False: + ycp.Report.Error(_("Cannot read the database2.")) + sleep(sl) + + # read current settings + ycp.Progress.NextStage() + # Error message + if False: + ycp.Report.Error(ycp.Message.CannotReadCurrentSettings()) + sleep(sl) + + # detect devices + ycp.Progress.NextStage() + # Error message + if False: + ycp.Report.Warning(_("Cannot detect devices.")) + sleep(sl) + + # Progress finished + ycp.Progress.NextStage() + sleep(sl) + + modified = False + + return True + +## + # Write all XXpkgXX settings + # @return true on success + # +@YCPDeclare("boolean") +def Write(): + # XXPkgXX read dialog caption + caption = _("Saving XXpkgXX Configuration") + + # TODO FIXME And set the right number of stages + steps = 2 + + sl = 0.5 + sleep(sl) + + # TODO FIXME Names of real stages + # We do not set help text here, because it was set outside + ycp.Progress.New(caption, " ", steps, [ + # Progress stage 1/2 + _("Write the settings"), + # Progress stage 2/2 + _("Run SuSEconfig") + ], [ + # Progress step 1/2 + _("Writing the settings..."), + # Progress step 2/2 + _("Running SuSEconfig..."), + # Progress finished + _("Finished") + ], + "" + ) + + # write settings + ycp.Progress.NextStage() + # Error message + if False: + ycp.Report.Error (_("Cannot write settings.")) + sleep(sl) + + # run SuSEconfig + ycp.Progress.NextStage() + # Error message + if False: + ycp.Report.Error(ycp.Message.SuSEConfigFailed()) + sleep(sl) + + # Progress finished + ycp.Progress.NextStage() + sleep(sl) + + return True + +## + # Get all XXpkgXX settings from the first parameter + # (For use by autoinstallation.) + # @param settings The YCP structure to be imported. + # @return boolean True on success + # +@YCPDeclare("boolean", "map") +def Import(map_settings): + # TODO FIXME: your code here (fill the above mentioned variables)... + return True + +## + # Dump the XXpkgXX settings to a single map + # (For use by autoinstallation.) + # @return map Dumped settings (later acceptable by Import ()) + # +@YCPDeclare("map") +def Export(): + # TODO FIXME: your code here (return the above mentioned variables)... + return {} + +## + # Create a textual summary and a list of unconfigured cards + # @return summary of the current configuration + # +@YCPDeclare("list") +def Summary(): + # TODO FIXME: your code here... + # Configuration summary text for autoyast + return [ _("Configuration summary ..."), "" ] + +## + # Create an overview table with all configured cards + # @return table items + # +@YCPDeclare("list") +def Overview(): + # TODO FIXME: your code here... + return [] + +## + # Return packages needed to be installed and removed during + # Autoinstallation to insure module has all needed software + # installed. + # @return map with 2 lists. + # +@YCPDeclare("map") +def AutoPackages(): + # TODO FIXME: your code here... + return { + "install" : [], + "remove" : [] + } + +# EOF Added: trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.desktop URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.desktop?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.desktop (added) +++ trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.desktop Fri Nov 30 13:54:06 2007 @@ -0,0 +1,24 @@ +[Desktop Entry] +Type=Application +Categories=Qt;X-SuSE-YaST;X-SuSE-YaST-Misc; + +X-KDE-ModuleType=Library +X-KDE-RootOnly=true +X-KDE-HasReadOnlyMode=true +X-KDE-Library=yast2 +X-SuSE-YaST-Call=XXpkgXX + +X-SuSE-YaST-Group=Misc +X-SuSE-YaST-Argument= +X-SuSE-YaST-RootOnly=true +X-SuSE-YaST-AutoInst= +X-SuSE-YaST-Geometry= +X-SuSE-YaST-SortKey= +X-SuSE-YaST-AutoInstResource=XXpkgXX + +Icon=yast-XXpkgXX +Exec=/sbin/yast2 XXpkgXX + +Name=XXPkgXX +GenericName=XXpkgXX +X-KDE-SubstituteUID=true Added: trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.py URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.py?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.py (added) +++ trunk/devtools/devtools/skeletons/config-python/src/XXpkgXX.py Fri Nov 30 13:54:06 2007 @@ -0,0 +1,102 @@ +#!/usr/bin/env python + +# ------------------------------------------------------------------------------ +# Copyright (c) 2006 Novell, Inc. All Rights Reserved. +# +# +# This program is free software; you can redistribute it andor modify it under +# the terms of version 2 of the GNU General Public License as published by the +# Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program; if not, contact Novell, Inc. +# +# To contact Novell about this file by physical or electronic mail, you may find +# current contact information at www.novell.com. +# ------------------------------------------------------------------------------ +# + +# +# File: clientsXXpkgXX.py +# Package: Configuration of XXpkgXX +# Summary: Main file +# Authors: XXmaintainerXX <XXemailXX> +# +# $Id: XXpkgXX.ycp 27914 2006-02-13 14:32:08Z locilka $ +# +# Main file for XXpkgXX configuration. Uses all other files. +# + +import sys +import ycp +from ycp import Term, Symbol, Path +from ycp import y2internal, y2security, y2error, y2warning, y2milestone, y2debug + +import gettext +gettext.install("XXpkgXX") + +ycp.init_ui("qt") + +## +# <h3>Configuration of XXpkgXX</h3> +# + + +# The main () +y2milestone("----------------------------------------") +y2milestone("XXPkgXX module started") + +ycp.import_module("Progress") +ycp.import_module("Report") +ycp.import_module("Summary") +ycp.import_module("XXPkgXX") + +ycp.import_module("CommandLine") + +#TODO +import wizards + +cmdline_description = { + "id" : "XXpkgXX", + # Command line help text for the XXXpkgXX module + "help" : _("Configuration of XXpkgXX"), + "guihandler" : wizards.XXPkgXXSequence, + "initialize" : ycp.XXPkgXX.Read, + "finish" : ycp.XXPkgXX.Write, + "actions" : { + # FIXME TODO: fill the functionality description here + }, + "options" : { + # FIXME TODO: fill the option descriptions here + }, + "mappings" : { + # FIXME TODO: fill the mappings of actions and options here + } +} + +# TODO +# is this proposal or not? +#propose = False +#args = ycp.WFM.Args() +#if len(args) > 0): +# if ycp.isPath(ycp.WFM.Args(0)) and ycp.WFM.Args(0) == Path(".propose"): +# y2milestone("Using PROPOSE mode"); +# propose = True; + +# main ui function +ret = None + +#if propose: ret = XXPkgXXAutoSequence() +#else: ret = ycp.CommandLine.Run(cmdline_description) +#y2debug("ret=%d" % (ret)) +ycp.CommandLine.Run(cmdline_description) + +# Finish +y2milestone("XXPkgXX module finished"); +y2milestone("----------------------------------------"); + +sys.exit(ret) Added: trunk/devtools/devtools/skeletons/config-python/src/complex.py URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/src/complex.py?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/src/complex.py (added) +++ trunk/devtools/devtools/skeletons/config-python/src/complex.py Fri Nov 30 13:54:06 2007 @@ -0,0 +1,206 @@ +#/* ------------------------------------------------------------------------------ +# * Copyright (c) 2006 Novell, Inc. All Rights Reserved. +# * +# * +# * This program is free software; you can redistribute it and/or modify it under +# * the terms of version 2 of the GNU General Public License as published by the +# * Free Software Foundation. +# * +# * This program is distributed in the hope that it will be useful, but WITHOUT +# * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# * +# * You should have received a copy of the GNU General Public License along with +# * this program; if not, contact Novell, Inc. +# * +# * To contact Novell about this file by physical or electronic mail, you may find +# * current contact information at www.novell.com. +# * ------------------------------------------------------------------------------ +# +# +#/** +# * File: include/XXpkgXX/complex.ycp +# * Package: Configuration of XXpkgXX +# * Summary: Dialogs definitions +# * Authors: XXmaintainerXX <XXemailXX> +# * +# * $Id: complex.ycp 41350 2007-10-10 16:59:00Z dfiser $ +# */ + +import ycp +from ycp import Symbol, Term, Path +from YCPDeclarations import YCPDeclare + +## + # Set textdomain + # +import gettext +gettext.install("XXpkgXX") + +ycp.import_module("Label") +ycp.import_module("Popup") +ycp.import_module("Wizard") +ycp.import_module("Wizard_hw") +ycp.import_module("Confirm") +ycp.import_module("UI") +ycp.import_module("XXPkgXX") + +from helps import HELPS + +#include "XXpkgXX/helps.ycp"; + +#/** +# * Return a modification status +# * @return true if data was modified +# */ +def Modified(): + return ycp.XXPkgXX.Modified() + +def ReallyAbort(): + return not ycp.XXPkgXX.Modified() or ycp.Popup.ReallyAbort(True) + +def PollAbort(): + return ycp.UI.PollInput() == Symbol("abort") + +#/** +# * Read settings dialog +# * @return `abort if aborted and `next otherwise +# */ +@YCPDeclare("symbol") +def ReadDialog(): + ycp.Wizard.RestoreHelp(HELPS["read"]) + #// XXPkgXX::SetAbortFunction(PollAbort); + if not ycp.Confirm.MustBeRoot(): return Symbol("abort") + + ret = ycp.XXPkgXX.Read() + if ret: + return Symbol("next") + else: + return Symbol("abort") + +#/** +# * Write settings dialog +# * @return `abort if aborted and `next otherwise +# */ +@YCPDeclare("symbol") +def WriteDialog(): + ycp.Wizard.RestoreHelp(HELPS["write"]) + #// XXPkgXX::SetAbortFunction(PollAbort); + + ret = ycp.XXPkgXX.Write() + if ret: + return Symbol("next") + else: + return Symbol("abort") + +#/** +# * Summary dialog +# * @return dialog result +# */ +@YCPDeclare("symbol") +def SummaryDialog(): + #/* XXPkgXX summary dialog caption */ + caption = _("XXPkgXX Configuration"); + + #/* FIXME */ + summary = ycp.XXPkgXX.Summary(); + unconfigured = summary[1]; + configured = summary[0]; + + #/* Frame label */ + contents = ycp.Wizard_hw.DetectedContent(_("XXPkgXX to Configure"), + unconfigured, False, configured); + + ycp.Wizard.SetContentsButtons(caption, contents, HELPS["summary"], + ycp.Label.BackButton(), ycp.Label.FinishButton()) + + ret = None + while True: + ret = ycp.UI.UserInput() + + #/* abort? */ + if ret == Symbol("abort") or ret == Symbol("cancel") or ret == Symbol("back"): + if ReallyAbort(): break + else: continue + + #/* overview dialog */ + elif ret == Symbol("edit_button"): + ret = Symbol("overview") + break + + #/* configure the selected device */ + elif ret == Symbol("configure_button"): + #// TODO FIXME: check for change of the configuration + selected = ycp.UI.QueryWidget(Term("id", Symbol("detected_selbox")), Symbol("CurrentItem")) + if selected == Symbol("other"): + ret = Symbol("other") + else: + ret = Symbol("configure") + break + + elif ret == Symbol("next"): + break + else: + y2error("unexpected retcode: %s" % (ret)) + continue + + return ret + +#/** +# * Overview dialog +# * @return dialog result +# */ +@YCPDeclare("symbol") +def OverviewDialog(): + # XXPkgXX overview dialog caption + caption = _("XXPkgXX Overview") + + overview = ycp.XXPkgXX.Overview() + + #/* FIXME table header */ + contents = ycp.Wizard_hw.ConfiguredContent( + #/* Table header */ + Term("header", _("Number"), _("XXPkgXX")), + overview, None, None, None, None) + + contents = ycp.Wizard_hw.SpacingAround(contents, 1.5, 1.5, 1.0, 1.0); + + ycp.Wizard.SetContentsButtons(caption, contents, HELPS["overview"], + ycp.Label.BackButton(), ycp.Label.FinishButton()) + + ret = None + + while True: + ret = ycp.UI.UserInput() + + #/* abort? */ + if ret == Symbol("abort") or ret == Symbol("cancel"): + if ReallyAbort(): break + else: continue + + #/* add */ + elif ret == Symbol("add_button"): + #/* FIXME */ + ret = Symbol("add") + break + + #/* edit */ + elif ret == Symbol("edit_button"): + #/* FIXME */ + ret = Symbol("edit") + break + + #/* delete */ + elif ret == Symbol("delete_button"): + #/* FIXME */ + continue + + elif ret == Symbol("next") or ret == Symbol("back"): + break + + else: + y2error("unexpected retcode: %s", ret); + continue + + return ret + Added: trunk/devtools/devtools/skeletons/config-python/src/dialogs.py URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/src/dialogs.py?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/src/dialogs.py (added) +++ trunk/devtools/devtools/skeletons/config-python/src/dialogs.py Fri Nov 30 13:54:06 2007 @@ -0,0 +1,111 @@ +#/* ------------------------------------------------------------------------------ +# * Copyright (c) 2006 Novell, Inc. All Rights Reserved. +# * +# * +# * This program is free software; you can redistribute it and/or modify it under +# * the terms of version 2 of the GNU General Public License as published by the +# * Free Software Foundation. +# * +# * This program is distributed in the hope that it will be useful, but WITHOUT +# * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# * +# * You should have received a copy of the GNU General Public License along with +# * this program; if not, contact Novell, Inc. +# * +# * To contact Novell about this file by physical or electronic mail, you may find +# * current contact information at www.novell.com. +# * ------------------------------------------------------------------------------ +# */ +# +#/** +# * File: include/XXpkgXX/dialogs.ycp +# * Package: Configuration of XXpkgXX +# * Summary: Dialogs definitions +# * Authors: XXmaintainerXX <XXemailXX> +# * +# * $Id: dialogs.ycp 27914 2006-02-13 14:32:08Z locilka $ +# */ + +import ycp +from ycp import Symbol, Term, Path +from YCPDeclarations import YCPDeclare + +ycp.import_module("Label") +ycp.import_module("Wizard") +ycp.import_module("UI") + +## + # Set textdomain + # +import gettext +gettext.install("XXpkgXX") + +from helps import HELPS +import complex + +#/** +# * Configure1 dialog +# * @return dialog result +# */ +@YCPDeclare("symbol") +def Configure1Dialog(): + #/* XXPkgXX configure1 dialog caption */ + caption = _("XXPkgXX Configuration"); + + #/* XXPkgXX configure1 dialog contents */ + contents = Term("Label", _("First part of configuration of XXpkgXX")) + + ycp.Wizard.SetContentsButtons(caption, contents, HELPS["c1"], + ycp.Label.BackButton(), ycp.Label.NextButton()) + + ret = None + while True: + ret = ycp.UI.UserInput() + + #/* abort? */ + if ret == Symbol("abort") or ret == Symbol("cancel"): + if complex.ReallyAbort(): break + else: continue + + elif ret == Symbol("next") or ret == Symbol("back"): + break + + else: + y2error("unexpected retcode: %s", ret) + continue + + return ret + +#/** +# * Configure2 dialog +# * @return dialog result +# */ +@YCPDeclare("symbol") +def Configure2Dialog(): + #/* XXPkgXX configure2 dialog caption */ + caption = _("XXPkgXX Configuration") + + #/* XXPkgXX configure2 dialog contents */ + contents = Term("Label", _("Second part of configuration of XXpkgXX")) + + ycp.Wizard.SetContentsButtons(caption, contents, HELPS["c2"], + ycp.Label.BackButton(), ycp.Label.NextButton()) + + ret = None + while True: + ret = ycp.UI.UserInput() + + #/* abort? */ + if ret == Symbol("abort") or ret == Symbol("cancel"): + if complex.ReallyAbort(): break + else: continue + + elif ret == Symbol("next") or ret == Symbol("back"): + break + + else: + y2error("unexpected retcode: %s", ret) + continue + + return ret Added: trunk/devtools/devtools/skeletons/config-python/src/helps.py URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/src/helps.py?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/src/helps.py (added) +++ trunk/devtools/devtools/skeletons/config-python/src/helps.py Fri Nov 30 13:54:06 2007 @@ -0,0 +1,118 @@ +#/* ------------------------------------------------------------------------------ +# * Copyright (c) 2006 Novell, Inc. All Rights Reserved. +# * +# * +# * This program is free software; you can redistribute it and/or modify it under +# * the terms of version 2 of the GNU General Public License as published by the +# * Free Software Foundation. +# * +# * This program is distributed in the hope that it will be useful, but WITHOUT +# * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# * +# * You should have received a copy of the GNU General Public License along with +# * this program; if not, contact Novell, Inc. +# * +# * To contact Novell about this file by physical or electronic mail, you may find +# * current contact information at www.novell.com. +# * ------------------------------------------------------------------------------ +# */ +# +#/** +# * File: include/XXpkgXX/helps.ycp +# * Package: Configuration of XXpkgXX +# * Summary: Help texts of all the dialogs +# * Authors: XXmaintainerXX <XXemailXX> +# * +# * $Id: helps.ycp 27914 2006-02-13 14:32:08Z locilka $ +# */ + +## + # Set textdomain + # +import gettext +gettext.install("XXpkgXX""") + +#/** +# * All helps are here +# */ +HELPS = { + + #/* Read dialog help 1/2 */ + "read" : _("""<p><b><big>Initializing XXpkgXX Configuration</big></b><br> +Please wait...<br></p> +""") + + + #/* Read dialog help 2/2 */ + _("""<p><b><big>Aborting Initialization:</big></b><br> +Safely abort the configuration utility by pressing <b>Abort</b> now.</p> +"""), + + #/* Write dialog help 1/2 */ + "write" : _("""<p><b><big>Saving XXpkgXX Configuration</big></b><br> +Please wait...<br></p> +""") + + + #/* Write dialog help 2/2 */ +_("""<p><b><big>Aborting Saving:</big></b><br> +Abort the save procedure by pressing <b>Abort</b>. +An additional dialog informs whether it is safe to do so. +</p> +"""), + + #/* Summary dialog help 1/3 */ + "summary" : _("""<p><b><big>XXPkgXX Configuration</big></b><br> +Configure XXpkgXX here.<br></p> +""") + + + #/* Summary dialog help 2/3 */ + _("""<p><b><big>Adding a XXpkgXX:</big></b><br> +Choose an XXpkgXX from the list of detected XXpkgXXs. +If your XXpkgXX was not detected, use <b>Other (not detected)</b>. +Then press <b>Configure</b>.</p> +""") + + + #/* Summary dialog help 3/3 */ + _("""<p><b><big>Editing or Deleting:</big></b><br> +If you press <b>Edit</b>, an additional dialog in which to change +the configuration opens.</p> +"""), + + #/* Ovreview dialog help 1/3 */ + "overview" : _("""<p><b><big>XXPkgXX Configuration Overview</big></b><br> +Obtain an overview of installed XXpkgXXs. Additionally +edit their configurations.<br></p> +""") + + + #/* Ovreview dialog help 2/3 */ +_("""<p><b><big>Adding a XXpkgXX:</big></b><br> +Press <b>Add</b> to configure a XXpkgXX.</p>""") + + + #/* Ovreview dialog help 3/3 */ +_("""<p><b><big>Editing or Deleting:</big></b><br> +Choose a XXpkgXX to change or remove. +Then press <b>Edit</b> or <b>Delete</b> as desired.</p> +"""), + + #/* Configure1 dialog help 1/2 */ + "c1" : _("""<p><b><big>Configuration Part One</big></b><br> +Press <b>Next</b> to continue. +<br></p>""") + + + #/* Configure1 dialog help 2/2 */ +_("""<p><b><big>Selecting Something</big></b><br> +It is not possible. You must code it first. :-) +</p>"""), + + #/* Configure2 dialog help 1/2 */ + "c2" : _("""<p><b><big>Configuration Part Two</big></b><br> +Press <b>Next</b> to continue. +<br></p> +""") + + + #/* Configure2 dialog help 2/2 */ +_("""<p><b><big>Selecting Something</big></b><br> +It is not possible. You must code it first. :-) +</p>"""), + +} Added: trunk/devtools/devtools/skeletons/config-python/src/wizards.py URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/src/wizards.py?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/src/wizards.py (added) +++ trunk/devtools/devtools/skeletons/config-python/src/wizards.py Fri Nov 30 13:54:06 2007 @@ -0,0 +1,174 @@ +#/* ------------------------------------------------------------------------------ +# * Copyright (c) 2006 Novell, Inc. All Rights Reserved. +# * +# * +# * This program is free software; you can redistribute it and/or modify it under +# * the terms of version 2 of the GNU General Public License as published by the +# * Free Software Foundation. +# * +# * This program is distributed in the hope that it will be useful, but WITHOUT +# * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# * +# * You should have received a copy of the GNU General Public License along with +# * this program; if not, contact Novell, Inc. +# * +# * To contact Novell about this file by physical or electronic mail, you may find +# * current contact information at www.novell.com. +# * ------------------------------------------------------------------------------ +# */ +# +#/** +# * File: include/XXpkgXX/wizards.ycp +# * Package: Configuration of XXpkgXX +# * Summary: Wizards definitions +# * Authors: XXmaintainerXX <XXemailXX> +# * +# * $Id: wizards.ycp 27914 2006-02-13 14:32:08Z locilka $ +# */ + +import ycp +from ycp import Symbol, Path, Term + +ycp.import_module("Sequencer2") +ycp.import_module("Wizard") +ycp.import_module("UI") + +import complex +import dialogs + +## + # Set textdomain + # +import gettext +gettext.install("XXpkgXX") + + +#/** +# * Add a configuration of XXpkgXX +# * @return sequence result +# */ +def AddSequence(): + # FIXME: adapt to your needs + aliases = { + "config1" : dialogs.Configure1Dialog, + "config2" : dialogs.Configure2Dialog, + } + + # FIXME: adapt to your needs + sequence = { + "ws_start" : "config1", + "config1" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : "config2" + }, + "config2" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : Symbol("next") + } + } + + return ycp.Sequencer2.Run(aliases, sequence); + +#/** +# * Main workflow of the XXpkgXX configuration +# * @return sequence result +# */ +def MainSequence(): + # FIXME: adapt to your needs + aliases = { + "summary" : complex.SummaryDialog, + "overview" : complex.OverviewDialog, + "configure" : [AddSequence, True ], + "add" : [AddSequence, True ], + "edit" : [AddSequence, True ] + } + + # FIXME: adapt to your needs + sequence = { + "ws_start" : "summary", + "summary" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : Symbol("next"), + Symbol("overview") : "overview", + Symbol("configure") : "configure", + Symbol("other") : "configure", + }, + "overview" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : Symbol("next"), + Symbol("add") : "add", + Symbol("edit") : "edit", + }, + "configure" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : "summary", + }, + "add" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : "overview", + }, + "edit" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : "overview", + } + } + + ret = ycp.Sequencer2.Run(aliases, sequence); + + return ret + +#/** +# * Whole configuration of XXpkgXX +# * @return sequence result +# */ +def XXPkgXXSequence(): + aliases = { + "read" : [complex.ReadDialog, True ], + "main" : MainSequence, + "write" : [complex.WriteDialog, True ] + } + + sequence = { + "ws_start" : "read", + "read" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : "main" + }, + "main" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : "write" + }, + "write" : { + Symbol("abort") : Symbol("abort"), + Symbol("next") : Symbol("next") + } + } + + ycp.Wizard.CreateDialog() + + ret = ycp.Sequencer2.Run(aliases, sequence) + + ycp.UI.CloseDialog() + return ret + +#/** +# * Whole configuration of XXpkgXX but without reading and writing. +# * For use with autoinstallation. +# * @return sequence result +# */ +def XXPkgXXAutoSequence(): + # Initialization dialog caption + caption = _("XXPkgXX Configuration"); + # Initialization dialog contents + contents = Term("Label", _("Initializing...")); + + ycp.Wizard.CreateDialog() + ycp.Wizard.SetContentsButtons(caption, contents, "", + ycp.Label.BackButton(), ycp.Label.NextButton()) + + ret = MainSequence() + + ycp.UI.CloseDialog() + return ret + Added: trunk/devtools/devtools/skeletons/config-python/testsuite/.cvsignore URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/testsuite/.cvsignore?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/testsuite/.cvsignore (added) +++ trunk/devtools/devtools/skeletons/config-python/testsuite/.cvsignore Fri Nov 30 13:54:06 2007 @@ -0,0 +1,11 @@ +Makefile +Makefile.in +site.exp +*.sum +*.log +tmp.out* +tmp.err* +tmp.log* +config +run +*.test Added: trunk/devtools/devtools/skeletons/config-python/testsuite/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/testsuite/Makefile.am?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/testsuite/Makefile.am (added) +++ trunk/devtools/devtools/skeletons/config-python/testsuite/Makefile.am Fri Nov 30 13:54:06 2007 @@ -0,0 +1,21 @@ +# +# Makefile.am for .../testsuite +# +# Do not edit this file (Makefile.am) as it will be overwritten! +# + +AUTOMAKE_OPTIONS = dejagnu +EXTRA_DIST = $(wildcard tests/*.out) $(wildcard tests/*.err) $(wildcard tests/*.ycp) $(wildcard tests/*.yh) + +testsuite_prepare = @ydatadir@/testsuite/Makefile.testsuite + +all-local: $(testsuite_prepare) + make -f $(testsuite_prepare) RPMNAME=$(RPMNAME) srcdir=$(srcdir) + +clean-local: $(testsuite_prepare) + make -f $(testsuite_prepare) RPMNAME=$(RPMNAME) srcdir=$(srcdir) clean + +check-local: $(testsuite_prepare) + make -f $(testsuite_prepare) RPMNAME=$(RPMNAME) srcdir=$(srcdir) check + +# EOF Added: trunk/devtools/devtools/skeletons/config-python/testsuite/tests/.cvsignore URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/testsuite/tests/.cvsignore?rev=42553&view=auto ============================================================================== (empty) Added: trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.err URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.err?rev=42553&view=auto ============================================================================== (empty) Added: trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.out URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.out?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.out (added) +++ trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.out Fri Nov 30 13:54:06 2007 @@ -0,0 +1,2 @@ +Dump XXPkgXX::Modified +Return false Added: trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.ycp?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.ycp (added) +++ trunk/devtools/devtools/skeletons/config-python/testsuite/tests/XXPkgXX.ycp Fri Nov 30 13:54:06 2007 @@ -0,0 +1,13 @@ +{ + +// testedfiles: XXPkgXX.ycp + +include "testsuite.ycp"; +TESTSUITE_INIT([], nil); + +import "XXPkgXX"; + +DUMP("XXPkgXX::Modified"); +TEST(``(XXPkgXX::Modified()), [], nil); + +} Added: trunk/devtools/devtools/skeletons/config-python/yast2-XXpkgXX.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/devtools/devtools/skeletons/config-python/yast2-XXpkgXX.spec.in?rev=42553&view=auto ============================================================================== --- trunk/devtools/devtools/skeletons/config-python/yast2-XXpkgXX.spec.in (added) +++ trunk/devtools/devtools/skeletons/config-python/yast2-XXpkgXX.spec.in Fri Nov 30 13:54:06 2007 @@ -0,0 +1,31 @@ +@HEADER-COMMENT@ + +@HEADER@ +Requires: yast2 +BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite + +BuildArchitectures: noarch + +Summary: Configuration of XXpkgXX + +%description +- + +@PREP@ + +@BUILD@ + +@INSTALL@ + +@CLEAN@ + +%files +%defattr(-,root,root) +%dir @yncludedir@/XXpkgXX +@yncludedir@/XXpkgXX/* +@clientdir@/XXpkgXX.ycp +@clientdir@/XXpkgXX_*.ycp +@moduledir@/XXPkgXX.* +@moduledir@/XXPkgXX2.* +@desktopdir@/XXpkgXX.desktop +%doc @docdir@ -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
dfiser@svn.opensuse.org