from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from confpy.api import BoolOption from confpy.api import Configuration from confpy.api import Namespace from confpy.api import StringOption from .. import interface cfg = Configuration(file_permissions=Namespace( description='Add default file permissions to files in buildroot.', user=StringOption( description='The owner user.', required=True, ), create_user=BoolOption( description='Create the user if it does not exist.', default=False, ), group=StringOption( description='The owner group.', required=True, ), create_group=BoolOption( description='Create the group if it does not exist.', default=False), ), ) class Extension(interface.Extension):
from __future__ import unicode_literals from confpy.api import Configuration from confpy.api import ListOption from confpy.api import Namespace from confpy.api import StringOption from confpy.api import BoolOption from .. import interface cfg = Configuration( python_venv=Namespace( description='Generate RPMs from Python virtualenv.', cmd=StringOption( description='The executable to use for creating a venv.', default='virtualenv', ), flags=ListOption( description='Flags to pass to the venv during creation.', option=StringOption(), default=('--always-copy',), ), name=StringOption( description='The name of the installed venv.', required=True, ), path=StringOption( description='The path in which to install the venv.', default='/usr/share/python', ), python=StringOption(
from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from confpy.api import Configuration from confpy.api import Namespace from confpy.api import StringOption from confpy.api import ListOption from . import interface cfg = Configuration(core=Namespace( description='Common core RPM metadata fields.', name=StringOption( description='The name of the RPM file which is generated.', required=True, ), version=StringOption( description='The RPM version to build.', required=True, ), release=StringOption( description=( 'The release number for the RPM. Default is 1. ' 'Supports strings to let free usage of, for example, %{?dist}.'), default='1', ), summary=StringOption( description='The short package summary.', required=False, ),
'post', 'postun', 'pre', 'preun', 'prep', 'build', 'install', 'clean', 'desc', 'files', ) OPTIONS = dict((block, ListOption( description='Lines to add to %{0}.'.format(block), option=StringOption(), default=(), )) for block in BLOCKS) cfg = Configuration(blocks=Namespace( description='Add custom lines to any RPM block.', **OPTIONS), ) class Extension(interface.Extension): """Extension which adds generic block additions.""" name = 'blocks' description = 'Add custom lines to an RPM block.' version = '1.0.0' requirements = {}
from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from confpy.api import Configuration from confpy.api import IntegerOption from confpy.api import Namespace from confpy.api import StringOption from . import interface cfg = Configuration(core=Namespace( description='Common core RPM metadata fields.', name=StringOption( description='The name of the RPM file which is generated.', required=True, ), version=StringOption( description='The RPM version to build.', required=True, ), release=IntegerOption( description='The release number for the RPM. Default is 1.', default=1, ), summary=StringOption( description='The short package summary.', required=False, ), group=StringOption( description='The RPM package group in which this package belongs.',