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.
183 lines
5.3 KiB
RPMSpec
183 lines
5.3 KiB
RPMSpec
%global forgeurl https://github.com/osbuild/osbuild
|
|
|
|
Version: 14
|
|
|
|
%forgemeta
|
|
|
|
%global pypi_name osbuild
|
|
%global pkgdir %{_prefix}/lib/%{pypi_name}
|
|
|
|
Name: %{pypi_name}
|
|
Release: 1%{?dist}
|
|
License: ASL 2.0
|
|
|
|
URL: %{forgeurl}
|
|
|
|
Source0: %{forgesource}
|
|
BuildArch: noarch
|
|
Summary: A build system for OS images
|
|
|
|
BuildRequires: make
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-docutils
|
|
|
|
Requires: bash
|
|
Requires: coreutils
|
|
Requires: curl
|
|
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} = %{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}
|
|
|
|
%description
|
|
A build system for OS images
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
%{?python_provide:%python_provide 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
|
|
%forgesetup
|
|
|
|
%build
|
|
%py3_build
|
|
make man
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
mkdir -p %{buildroot}%{pkgdir}/stages
|
|
install -p -m 0755 $(find stages -type f) %{buildroot}%{pkgdir}/stages/
|
|
|
|
mkdir -p %{buildroot}%{pkgdir}/assemblers
|
|
install -p -m 0755 $(find assemblers -type f) %{buildroot}%{pkgdir}/assemblers/
|
|
|
|
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
|
|
|
|
# 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
|
|
# We have some integration tests, but those require running a VM, so that would
|
|
# be an overkill for RPM check script.
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{_bindir}/osbuild
|
|
%{_mandir}/man1/%{name}.1*
|
|
%{_mandir}/man5/%{name}-manifest.5*
|
|
%{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}
|
|
%license LICENSE
|
|
%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
|
|
* 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 Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1-3
|
|
- Rebuilt for Python 3.8
|
|
|
|
* Mon Jul 29 2019 Martin Sehnoutka <msehnout@redhat.com> - 1-2
|
|
- update upstream URL to the new Github organization
|
|
|
|
* Wed Jul 17 2019 Martin Sehnoutka <msehnout@redhat.com> - 1-1
|
|
- Initial package
|