summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2025-09-01 02:30:59 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2025-09-01 02:30:59 +0000
commita0426feb2dcea01ef52d2422c4c175f5811692ff (patch)
treee85d549b699a35a0d05f485510c4160b5134fbeb
parent407b1d9dad15f2aec0918af2468208ace4f7a975 (diff)
automatic import of umoci
-rw-r--r--umoci.spec35
1 files changed, 13 insertions, 22 deletions
diff --git a/umoci.spec b/umoci.spec
index 7595ad7..a0c3f02 100644
--- a/umoci.spec
+++ b/umoci.spec
@@ -1,20 +1,10 @@
-## START: Set by rpmautospec
-## (rpmautospec version 0.8.1)
-## RPMAUTOSPEC: autorelease, autochangelog
-%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
- release_number = 1;
- base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
- print(release_number + base_release_number - 1);
-}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
-## END: Set by rpmautospec
-
# https://github.com/opencontainers/umoci
%global goipath github.com/opencontainers/umoci
Name: umoci
Version: 0.5.0
Release: %autorelease
-Summary: Umoci modifies Open Container images
+Summary: Open Container Image manipulation tool
# Main source code is Apache-2.0
@@ -26,9 +16,10 @@ Source1: umoci-%{version}-vendor.tar.gz
Source2: create-vendor-tarball.sh
Patch10: 0001-tests-fix-failures-on-SELinux-enabled-systems.patch
+BuildRequires: go-md2man
BuildRequires: go-rpm-macros
BuildRequires: golang >= 1.23
-BuildRequires: go-md2man
+
ExclusiveArch: %{golang_arches_future}
# Apache-2.0:
@@ -93,14 +84,18 @@ ln -s $PWD src/%{goipath}
%build
export GOPATH=$PWD
-export LDFLAGS="-X %{goipath}.CustomVersion=v%{version}"
+export LDFLAGS="-X %{goipath}.version=%{version}"
%gobuild -o bin/umoci %{goipath}/cmd/umoci
-# TODO: generate manpages
+for manpage in doc/man/*.md; do
+ go-md2man -in ${manpage} > ${manpage/.md/}
+done
%install
install -Dpm 0755 -t %{buildroot}%{_bindir} bin/umoci
+install -d %{buildroot}%{_mandir}/man1
+cp -p doc/man/*.1 %{buildroot}%{_mandir}/man1/
%check
@@ -111,15 +106,11 @@ cd src/%{goipath}
%files
%license COPYING contrib/logo/LICENSE
-%doc doc CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md GOVERNANCE.md README.md
-%doc RELEASES.md .site/README.md oci/README.md oci/cas/README.md
-%doc oci/config/convert/README.md oci/config/generate/README.md
-%doc oci/layer/README.md
+%doc CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md GOVERNANCE.md README.md
+%doc RELEASES.md MAINTAINERS
%{_bindir}/umoci
+%{_mandir}/man1/umoci*.1.*
%changelog
-## START: Generated by rpmautospec
-* Tue Aug 26 2025 John Doe <packager@example.com> - 0.5.0-1
-- Uncommitted changes
-## END: Generated by rpmautospec
+%autochangelog