This repository has been archived by the owner on Jan 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spec: Add a basic spec and Makefile targets
This adds the srpm and rpm build makefile targets (borrowed from osbuild), and uses the pyproject rpm macros to support pyproject.toml The version is hard-coded into the spec so it will need to be changed at the same time as the version in pyproject.toml Fixes #44
- Loading branch information
Showing
2 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
%global forgeurl https://github.com/osbuild/otk | ||
|
||
Version: 2024.0.0 | ||
%forgemeta | ||
|
||
Name: otk | ||
Release: 1 | ||
License: Apache-2.0 | ||
URL: %{forgeurl} | ||
Source0: %{forgesource} | ||
BuildArch: noarch | ||
|
||
BuildRequires: python3-devel | ||
BuildRequires: python3-wheel | ||
BuildRequires: pyproject-rpm-macros | ||
|
||
|
||
Summary: The omnifest toolkit | ||
|
||
%generate_buildrequires | ||
%pyproject_buildrequires | ||
|
||
%description | ||
The omnifest toolkit is a YAML transpiler to take omnifest inputs and | ||
translate them into osbuild manifests. | ||
|
||
%prep | ||
%forgeautosetup | ||
|
||
%build | ||
%pyproject_wheel | ||
|
||
%install | ||
%pyproject_install | ||
|
||
# Install the examples | ||
mkdir -p %{buildroot}%{_datadir}/otk/example/ | ||
cp -a example/* %{buildroot}%{_datadir}/otk/example/ | ||
|
||
|
||
%files | ||
%license LICENSE | ||
%doc doc | ||
%{_datadir}/otk | ||
%{_bindir}/otk | ||
%{_bindir}/otk-osbuild | ||
%{python3_sitelib}/otk | ||
%{python3_sitelib}/otk_osbuild | ||
%{python3_sitelib}/otk-%{version}.dist-info | ||
|
||
|
||
%changelog | ||
* Wed May 08 2024 Brian C. Lane <[email protected]> - 2024.0.0-1 | ||
- Initial package creation |