spec: Add a separate subpackage for extra utils
This subpackage currently includes: * pungi-config-validate * pungi-create-unified-isos * pungi-fedmsg-notification Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
e260fe5581
commit
20d035befa
@ -8,6 +8,7 @@ include share/*
|
|||||||
include share/multilib/*
|
include share/multilib/*
|
||||||
include doc/*
|
include doc/*
|
||||||
include tests/*
|
include tests/*
|
||||||
|
exclude tests/*.pyc
|
||||||
include tests/data/*
|
include tests/data/*
|
||||||
include tests/data/*/*
|
include tests/data/*/*
|
||||||
recursive-include tests/fixtures *.json *.xml *.bz2 *.gz *.iso *.log MD5SUM SHA1SUM SHA256SUM treeinfo
|
recursive-include tests/fixtures *.json *.xml *.bz2 *.gz *.iso *.log MD5SUM SHA1SUM SHA256SUM treeinfo
|
||||||
|
25
pungi.spec
25
pungi.spec
@ -44,6 +44,16 @@ BuildArch: noarch
|
|||||||
%description
|
%description
|
||||||
A tool to create anaconda based installation trees/isos of a set of rpms.
|
A tool to create anaconda based installation trees/isos of a set of rpms.
|
||||||
|
|
||||||
|
%package utils
|
||||||
|
Summary: Utilities for working with finished composes
|
||||||
|
Requires: pungi = %{version}-%{release}
|
||||||
|
|
||||||
|
%description utils
|
||||||
|
These utilities work with finished composes produced by Pungi. They can be used
|
||||||
|
for creating unified ISO images, validating config file or sending progress
|
||||||
|
notification to Fedora Message Bus.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
@ -62,9 +72,18 @@ rm -rf %{buildroot}
|
|||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
%{python_sitelib}/%{name}
|
%{python_sitelib}/%{name}
|
||||||
%{python_sitelib}/%{name}-%{version}-py?.?.egg-info
|
%{python_sitelib}/%{name}-%{version}-py?.?.egg-info
|
||||||
%{_bindir}/*
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/pungi
|
%{_bindir}/%{name}-koji
|
||||||
/var/cache/pungi
|
%{_bindir}/comps_filter
|
||||||
|
%{_bindir}/%{name}-make-ostree
|
||||||
|
%{_datadir}/%{name}
|
||||||
|
/var/cache/%{name}
|
||||||
|
|
||||||
|
%files utils
|
||||||
|
%{python_sitelib}/%{name}_utils
|
||||||
|
%{_bindir}/%{name}-create-unified-isos
|
||||||
|
%{_bindir}/%{name}-config-validate
|
||||||
|
%{_bindir}/%{name}-fedmsg-notification
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./tests/data/specs/build.sh
|
./tests/data/specs/build.sh
|
||||||
|
3
setup.py
3
setup.py
@ -14,7 +14,7 @@ distutils.command.sdist.sdist.default_format = {"posix": "bztar"}
|
|||||||
|
|
||||||
|
|
||||||
# recursively scan for python modules to be included
|
# recursively scan for python modules to be included
|
||||||
package_root_dirs = ["pungi"]
|
package_root_dirs = ["pungi", "pungi_utils"]
|
||||||
packages = set()
|
packages = set()
|
||||||
for package_root_dir in package_root_dirs:
|
for package_root_dir in package_root_dirs:
|
||||||
for root, dirs, files in os.walk(package_root_dir):
|
for root, dirs, files in os.walk(package_root_dir):
|
||||||
@ -37,6 +37,7 @@ setup(
|
|||||||
'bin/comps_filter',
|
'bin/comps_filter',
|
||||||
'bin/pungi',
|
'bin/pungi',
|
||||||
'bin/pungi-config-validate',
|
'bin/pungi-config-validate',
|
||||||
|
'bin/pungi-create-unified-isos',
|
||||||
'bin/pungi-fedmsg-notification',
|
'bin/pungi-fedmsg-notification',
|
||||||
'bin/pungi-koji',
|
'bin/pungi-koji',
|
||||||
'bin/pungi-make-ostree',
|
'bin/pungi-make-ostree',
|
||||||
|
Loading…
Reference in New Issue
Block a user