Compare commits

...
Sign in to create a new pull request.

30 commits

Author SHA1 Message Date
Christian Kellner
05394da2b2 22 upstream release
no spec file changes.
2020-10-12 16:39:41 +02:00
Christian Kellner
2a8c87aa83 21 upstream release 2020-09-10 15:20:57 +02:00
Christian Kellner
3279d1f999 20 upstream release 2020-08-13 18:59:50 +02:00
Christian Kellner
0720c5d0ca 19 upstream release
Sandboxing mechanism changed from systemd-nspawn to bubblewrap,
change requirements accordingly.
Drop no-floats-in-sources.patch, included in the release.
2020-08-07 14:47:52 +02:00
Christian Kellner
7a935cefc7 sources: fix missing newline 2020-06-26 14:29:38 +02:00
Christian Kellner
1b9ae1e305 Add a patch to not use floats in sources
Do not pass floats to curl, because the format of the float is
locale specific (comma vs dot) but curl only likes dots. See
the patch for details.
2020-06-26 14:17:47 +02:00
Christian Kellner
44cef34e6a 18 upstream release
All RHEL runners use platform-python now.
Add a custom SELinux policy, shipped in a new osbuild-selinux
subpackage, to allow setting labels unknown to the host.
2020-06-26 14:17:45 +02:00
Christian Kellner
2028c5016a 16 upstream release
Drop sources-fix-break-when-secrets-is-None.patch patch included
upstream.
2020-06-05 10:41:44 +02:00
Christian Kellner
c038953185 Patch added to allow new files source format
Add a patch to allow org.osbuild.files source in the new format
but without actually containing the secrets key.
Taken from merged PR: https://github.com/osbuild/osbuild/pull/416
2020-05-26 19:33:34 +02:00
Christian Kellner
036cd44b00 15 upstream release
no spec file changes.
2020-05-21 11:41:24 +02:00
Christian Kellner
a07f776641 gating: don't gate on dist.*
Taskotron is End-of-Life since 2020-04-30 and thus we don't have
any dist.* checks; at least for now. Remove it.

https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/TRQZCXI5IZH3GLJTCO56SMBX5UY6J6LL/
2020-05-21 11:41:24 +02:00
Christian Kellner
3a5d1e994d Install schemata
Install schemata to <datadir>/osbuild/schemas and include a
symlink to it in /usr/lib/osbuild/schemas.
This is needed otherwise schema validation will not work.
2020-05-06 21:06:45 +02:00
Christian Kellner
4a7f089bb3 14 upstream release
Remove the /usr/lib/osbuild/{assemblers, stages}/osbuild dirs.
NB: Release 13 got skipped since it replaced aforementioned
directories with symlinks and that would have required a
%pretrans script. osbuild was adjusted to use a different
mechanism to locate the osbuild module inside the container
rendering the symlinks (or 'osbuild' directories) obsolete.
2020-05-06 20:45:55 +02:00
Christian Kellner
7d308c7f7f 12 upstream release
Specify the exact version in the 'python3-osbuild' requirement
to avoid the library and the main binary being out of sync.
Add osbuild-ostree sub-package with the necessary bits to create
OSTree based images.
2020-04-15 21:51:10 +02:00
Christian Kellner
926c5e271b tests: adjust image test name
The sample file got renamed: base-rpm-qcow2.json → base-qcow2.json
Do the same in the test or gating will file.
2020-04-15 21:51:10 +02:00
Christian Kellner
e88a07e6b1 gating: drop dist.depcheck
Although mentioned in the docs, this check is obsolete[1] but the
replacement[2] seems to be not running as well, so just drop that
check.

[1] https://fedoraproject.org/wiki/Taskotron/Tasks/dist.depcheck
[2] https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmdeplint
2020-04-02 15:57:52 +02:00
Christian Kellner
b2fbab5486 tests: try to actually build an image
Run osbuild and try to build one of the samples provided, i.e.
source/samples/base-rpm-qcow2.json.
2020-04-02 15:55:48 +02:00
Christian Kellner
24d24233f4 11 upstream release
Turn of dependency generator for internal components since those
were generating a dependency for python3.6 due to the rhel runner.
2020-04-02 14:37:42 +02:00
Christian Kellner
fda246374e ci: add smoke test and enable gating
Add a simple smoke test that currently just executes osbuild with
the '--help' option to check that it can run at all.
Gate for rawhide (via bodhi_update_push_stable) and for stable
(via bodhi_update_push_testing) on a minimum of dist checks as
well as the smoke test above.
2020-04-02 14:37:42 +02:00
Christian Kellner
c91f4a19ec 10 upstream release
Following changes:
  - build and include man pages, this adds 'make' and
    'python3-docutils' to the build requirements
  - add NEWS.md file with the release notes

Minor whitespace cleanups and correction of the previous changelog
entry that had the wrong version number.
2020-03-19 11:00:06 +01:00
Christian Kellner
96f875e749 9 upstream release
- Remove host runner links, now being auto-detected
- Cleanup spec file to not mix spaces and tabs
2020-03-05 14:06:59 +01:00
Tom Gundersen
c8a262b0be 8: new sources
Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-02-24 13:22:12 +01:00
Tom Gundersen
f7e04adaf5 8 upstream release
Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-02-24 13:22:12 +01:00
Fedora Release Engineering
aafcd86209 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-02-24 13:22:12 +01:00
Packit Service
18d8e3ac5e [packit] 7 upstream release
Upstream tag: 7
Upstream commit: 5b77048e9753b36005704bf44dfcfb773d207d3b

Signed-off-by: Packit Service <user-cont-team+packit-service@redhat.com>
2020-02-24 13:22:12 +01:00
Tom Gundersen
59f3bb5370 6 upstream release
Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-02-24 13:22:12 +01:00
Lars Karlitski
058fc5fbea [packit] 5 upstream release
Upstream tag: 5
Upstream commit: 1f526477d27ead42360c5bf2e499f3d0f90c0ef2

Signed-off-by: Lars Karlitski <lars@karlitski.net>
2019-10-30 19:27:47 +01:00
Tom Gundersen
910ee65ce2 [packit] 4 upstream release
Upstream tag: 4
Upstream commit: f87e1bfb9887462f5a193c80422e59e653b5d52a

Signed-off-by: Tom Gundersen <teg@jklm.no>
2019-10-16 16:12:51 +01:00
Lars Karlitski
12af8a5f24 [packit] 3 upstream release
Upstream tag: 3
Upstream commit: cd49e2407c83f7fcdf30566af5f7ab470d801e19

Signed-off-by: Lars Karlitski <lars@karlitski.net>
2019-10-16 16:12:40 +01:00
Martin Sehnoutka
b5d5b56b66 [packit] 2 upstream release
Upstream tag: 2
Upstream commit: 209d3fa437678eb79da30ac21659fb01321eeb1a

Signed-off-by: Martin Sehnoutka <msehnout@redhat.com>
2019-09-18 10:43:06 +02:00
7 changed files with 268 additions and 27 deletions

21
.gitignore vendored
View file

@ -1 +1,22 @@
/1.tar.gz
/2.tar.gz
/3.tar.gz
/4.tar.gz
/5.tar.gz
/6.tar.gz
/7.tar.gz
/osbuild-8.tar.gz
/osbuild-9.tar.gz
/osbuild-10.tar.gz
/osbuild-11.tar.gz
/osbuild-12.tar.gz
/osbuild-13.tar.gz
/osbuild-14.tar.gz
/osbuild-15.tar.gz
/osbuild-16.tar.gz
/osbuild-17.tar.gz
/osbuild-18.tar.gz
/osbuild-19.tar.gz
/osbuild-20.tar.gz
/osbuild-21.tar.gz
/osbuild-22.tar.gz

37
.packit.yaml Normal file
View file

@ -0,0 +1,37 @@
# we have the specfile in the root of our repository
specfile_path: osbuild.spec
# when doing an update in Fedora, we want to copy the spec file and the config file
synced_files:
- osbuild.spec
- .packit.yaml
upstream_project_name: osbuild
downstream_package_name: osbuild
jobs:
# trigger a COPR build for push events in open PRs
- job: copr_build
trigger: pull_request
metadata:
targets:
- fedora-30-x86_64
- fedora-31-x86_64
- fedora-rawhide-x86_64
# this is triggered by a commit on src.fedoraproject.org, not Github!
# e.g. in case of mass rebuild or automated changes of spec file (e.g. Python packagers)
# it will create a PR on Github with changes in synchronized files
- job: sync_from_downstream
trigger: commit
# create a PR on src.fedoraproject.org containing updated spec file and new sources (tarball)
# triggered by Github release
- job: propose_downstream
trigger: release
metadata:
dist-git-branch: master
# The same as above only for f31
- job: propose_downstream
trigger: release
metadata:
dist-git-branch: f31
- job: propose_downstream
trigger: release
metadata:
dist-git-branch: f30

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.7.2.dev96+g8ed72cd.

12
gating.yaml Normal file
View file

@ -0,0 +1,12 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View file

@ -1,30 +1,46 @@
%global forgeurl https://github.com/osbuild/osbuild
%global selinuxtype targeted
Version: 22
%forgemeta
%global pypi_name osbuild
%global pkgdir %{_prefix}/lib/%{pypi_name}
Name: %{pypi_name}
Version: 1
Release: 2%{?dist}
Release: 1%{?dist}
License: ASL 2.0
URL: https://github.com/osbuild/osbuild
URL: %{forgeurl}
Source0: https://github.com/osbuild/%{pypi_name}/archive/%{version}.tar.gz
Source0: %{forgesource}
BuildArch: noarch
Summary: A build system for OS images
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3-docutils
Requires: bash
Requires: coreutils
Requires: dnf
Requires: e2fsprogs
Requires: glibc
Requires: policycoreutils
Requires: qemu-img
Requires: systemd
Requires: systemd-container
Requires: tar
Requires: util-linux
Requires: python3-%{pypi_name}
Requires: bash
Requires: bubblewrap
Requires: coreutils
Requires: curl
Requires: dnf
Requires: e2fsprogs
Requires: glibc
Requires: policycoreutils
Requires: qemu-img
Requires: systemd
Requires: tar
Requires: util-linux
Requires: python3-%{pypi_name} = %{version}-%{release}
# Turn off dependency generators for assemblers, runners and stages.
# They run in a container, so there's no reason to generate dependencies
# from them. As of 2020-03-25 this filters out python3.6 dependency generated
# by rhel runner.
%global __requires_exclude_from ^%{pkgdir}/(assemblers|runners|stages)/.*$
%{?python_enable_dependency_generator}
@ -35,25 +51,54 @@ A build system for OS images
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%description -n python3-%{pypi_name}
A build system for OS images
%package ostree
Summary: OSTree support
Requires: %{name} = %{version}-%{release}
Requires: ostree
Requires: rpm-ostree
%description ostree
Contains the necessary stages, assembler and source
to build OSTree based images.
%prep
%autosetup -n %{name}-%{version}
%forgesetup
%build
%py3_build
make man
%install
%py3_install
mkdir -p %{buildroot}%{_libexecdir}/%{pypi_name}/stages
install -p -m 0755 $(find stages -type f) %{buildroot}%{_libexecdir}/%{pypi_name}/stages/
mkdir -p %{buildroot}%{pkgdir}/stages
install -p -m 0755 $(find stages -type f) %{buildroot}%{pkgdir}/stages/
mkdir -p %{buildroot}%{_libexecdir}/%{pypi_name}/assemblers
install -p -m 0755 $(find assemblers -type f) %{buildroot}%{_libexecdir}/%{pypi_name}/assemblers/
mkdir -p %{buildroot}%{pkgdir}/assemblers
install -p -m 0755 $(find assemblers -type f) %{buildroot}%{pkgdir}/assemblers/
install -p -m 0755 osbuild-run %{buildroot}%{_libexecdir}/%{pypi_name}/
mkdir -p %{buildroot}%{pkgdir}/runners
install -p -m 0755 $(find runners -type f -or -type l) %{buildroot}%{pkgdir}/runners
mkdir -p %{buildroot}%{pkgdir}/sources
install -p -m 0755 $(find sources -type f) %{buildroot}%{pkgdir}/sources
# mount point for bind mounting the osbuild library
mkdir -p %{buildroot}%{pkgdir}/osbuild
# schemata
mkdir -p %{buildroot}%{_datadir}/osbuild/schemas
install -p -m 0755 $(find schemas/*.json) %{buildroot}%{_datadir}/osbuild/schemas
ln -s %{_datadir}/osbuild/schemas %{buildroot}%{pkgdir}/schemas
# documentation
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
install -p -m 0644 -t %{buildroot}%{_mandir}/man1/ docs/*.1
install -p -m 0644 -t %{buildroot}%{_mandir}/man5/ docs/*.5
%check
exit 0
@ -63,15 +108,119 @@ exit 0
%files
%license LICENSE
%{_bindir}/osbuild
%{_libexecdir}/%{pypi_name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}-manifest.5*
%{_datadir}/osbuild/schemas
%{pkgdir}
# the following files are in the ostree sub-package
%exclude %{pkgdir}/assemblers/org.osbuild.ostree.commit
%exclude %{pkgdir}/sources/org.osbuild.ostree
%exclude %{pkgdir}/stages/org.osbuild.ostree
%exclude %{pkgdir}/stages/org.osbuild.rpm-ostree
%files -n python3-%{pypi_name}
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%doc README.md NEWS.md
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%{python3_sitelib}/%{pypi_name}/
%files ostree
%{pkgdir}/assemblers/org.osbuild.ostree.commit
%{pkgdir}/sources/org.osbuild.ostree
%{pkgdir}/stages/org.osbuild.ostree
%{pkgdir}/stages/org.osbuild.rpm-ostree
%changelog
* Mon Oct 12 2020 Christian Kellner <ckellner@redhat.com> - 22-1
- Upstream release 22
* Thu Sep 10 2020 Christian Kellner <ckellner@redhat.com> - 21-1
- Upstream reelase 21
* Thu Aug 13 2020 Christian Kellner <ckellner@redhat.com> - 20-1
- Upstream reelase 20
* Fri Aug 7 2020 Christian Kellner <ckellner@redhat.com> - 19-1
- Upstream release 19
- Drop no-floats-in-sources.patch included in release 19
- bubblewrap replaced systemd-nspawn for sandboxing; change the
requirements accordingly.
* Fri Jun 26 2020 Christian Kellner <ckellner@redhat.com> - 18-2
- Add patch to not pass floats to curl in the files source
https://github.com/osbuild/osbuild/pull/459
* Tue Jun 23 2020 Christian Kellner <ckellner@redhat.com> - 18-1
- Upstream release 18
- Add custom SELinux policy that lets osbuild set labels inside
the build root that are unknown to the host.
- All RHEL runners now use platform-python.
* Thu Jun 4 2020 Christian Kellner <ckellner@redhat.com> - 16-1
- new upstream release 16
- Drop sources-fix-break-when-secrets-is-None.patch included in
the new upstream reelase.
* Tue May 26 2020 Christian Kellner <ckellner@redhat.com> - 15-2
- Add a patch to allow org.osbuild.files source in the new format
but without actually containing the secrets key.
Taken from merged PR: https://github.com/osbuild/osbuild/pull/416
* Thu May 21 2020 Christian Kellner <ckellner@redhat.com> - 15-1
- new upstream release 15
* Wed May 6 2020 Christian Kellner <christian@kellner.me> - 14-2
- Install schemata to <datadir>/osbuild/schemas and include a
symlink to it in /usr/lib/osbuild/schemas
* Wed May 6 2020 Christian Kellner <christian@kellner.me> - 14-1
- new upstream release 14
- The directories /usr/lib/osbuild/{assemblers, stages}/osbuild
got removed. Changes to osbuild made them obsolete.
* Wed Apr 15 2020 Christian Kellner <ckellner@redhat.com> - 12-1
- new upstream release 12
- Specify the exact version in the 'python3-osbuild' requirement
to avoid the library and the main binary being out of sync.
- osbuild-ostree sub-package with the necessary bits to create
OSTree based images
* Thu Apr 2 2020 Christian Kellner <ckellner@redhat.com> - 11-1
- new upstream release 11
- Turn of dependency generator for internal components
* Thu Mar 19 2020 Christian Kellner <ckellner@redhat.com> - 10-1
- new upstream release 10
- build and include man pages, this adds 'make' and 'python3-docutils'
to the build requirements
- add NEWS.md file with the release notes
* Thu Mar 5 2020 Christian Kellner <ckellner@redhat.com> - 9-1
- new upstream release: 9
- Remove host runner link, it now is being auto-detected
- Cleanup use of mixed use of spaces/tabs
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Dec 16 2019 Packit Service <user-cont-team+packit-service@redhat.com> - 7-1
- new upstream release: 7
* Sat Nov 30 2019 Tom Gundersen <teg@jklm.no> - 6-1
- new upstream release: 6
* Wed Oct 30 2019 Lars Karlitski <lars@karlitski.net> - 5-1
- new upstream release: 5
* Wed Oct 16 2019 Tom Gundersen <tgunders@redhat.com> - 4-1
- new upstream release: 4
* Fri Oct 04 2019 Lars Karlitski <lars@karlitski.net> - 3-1
- new upstream release: 3
* Wed Sep 18 2019 Martin Sehnoutka <msehnout@redhat.com> - 2-1
- new upstream release: 2
* Mon Jul 29 2019 Martin Sehnoutka <msehnout@redhat.com> - 1-2
- update upstream URL to the new Github organization

View file

@ -1 +1 @@
SHA512 (1.tar.gz) = 24339d7d121f01f18a21a026dd495555b119b4c5f7a4d80b7c0a94392bbadcc21cc92439f0035faf39d7fb3921e17d85676db9ff4683be22255b9cd9844b1f2b
SHA512 (osbuild-22.tar.gz) = 76b2efb083b2c372251b20185f76d59336fd3ddb4dfcf9b33f825a9f93c5dd2449ae2321fcdca1d9d3b0fc9f4547e5850d11b7137e92793d766c6e9383cb2703

19
tests/tests.yml Normal file
View file

@ -0,0 +1,19 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- atomic
- classic
required_packages:
- osbuild
tests:
- smoke:
dir: smoke
run: osbuild --help
- image:
dir: .
run: osbuild source/samples/base-qcow2.json