118 lines
3.0 KiB
RPMSpec
118 lines
3.0 KiB
RPMSpec
%global pypi_name osbuild
|
|
%global pkgdir %{_prefix}/lib/%{pypi_name}
|
|
|
|
Name: %{pypi_name}
|
|
Version: 7
|
|
Release: 2%{?dist}
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/osbuild/osbuild
|
|
|
|
Source0: https://github.com/osbuild/%{pypi_name}/archive/%{version}.tar.gz
|
|
BuildArch: noarch
|
|
Summary: A build system for OS images
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
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}
|
|
|
|
%{?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
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%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) %{buildroot}%{pkgdir}/runners
|
|
|
|
# mount points for bind mounting the osbuild library
|
|
mkdir -p %{buildroot}%{pkgdir}/stages/osbuild
|
|
mkdir -p %{buildroot}%{pkgdir}/assemblers/osbuild
|
|
|
|
# install host runner
|
|
%if 0%{?fc30}
|
|
ln -s org.osbuild.fedora30 %{buildroot}%{pkgdir}/runners/org.osbuild.host
|
|
%endif
|
|
%if 0%{?el8}
|
|
ln -s org.osbuild.rhel82 %{buildroot}%{pkgdir}/runners/org.osbuild.host
|
|
%endif
|
|
|
|
%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
|
|
%{pkgdir}
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
|
%{python3_sitelib}/%{pypi_name}/
|
|
|
|
%changelog
|
|
* 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
|