diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-23 06:16:22 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-23 06:16:22 +0000 |
commit | b28c8f230f563985faf4f66c543baed4fe32dde8 (patch) | |
tree | 3195c41f14f5d0626965c4128ce3c1e7d6068457 | |
parent | 48bed3e6a188082c1f6709798a5ae0752788e8b9 (diff) |
automatic import of netavark
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | netavark.spec | 84 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/netavark-dbdeb9a7.tar.gz diff --git a/netavark.spec b/netavark.spec new file mode 100644 index 0000000..bf59f2c --- /dev/null +++ b/netavark.spec @@ -0,0 +1,84 @@ +# For automatic rebuilds in COPR + +# The following tag is to get correct syntax highlighting for this file in vim text editor +# vim: syntax=spec + +%global with_debug 0 + +%if 0%{?with_debug} +%global _find_debuginfo_dwz_opts %{nil} +%global _dwz_low_mem_die_limit 0 +%else +%global debug_package %{nil} +%endif + +# git_dir_name returns repository name derived from remote Git repository URL +Name: netavark + +Epoch: 101 + +# git_dir_version returns version based on commit and tag history of the Git project +Version: 0.0.git.855.dbdeb9a7 + +# This can be useful later for adding downstream patches +Release: 1%{?dist} + +# Basic description of the package +Summary: OCI network stack + +# License. We assume GPLv2+ here. +License: ASL 2.0 and BSD and MIT + +# Home page of the project. Can also point to the public Git repository page. +URL: https://github.com/containers/netavark + +# Detailed information about the source Git repository and the source commit +# for the created rpm package +VCS: git+https://github.com/containers/netavark#dbdeb9a7969e5398a8431a192a278986e4e1ae36: + +# git_dir_pack macro places the repository content (the source files) into a tarball +# and returns its filename. The tarball will be used to build the rpm. +Source: netavark-dbdeb9a7.tar.gz + +BuildRequires: make +BuildRequires: cargo +BuildRequires: git-core +BuildRequires: golang-github-cpuguy83-md2man +Recommends: aardvark-dns +Provides: container-network-stack +ExclusiveArch: %{rust_arches} + +%global _description %{expand: +OCI network stack.} + +%description %{_description} + +# The following four sections already describe the rpm build process itself. +# prep will extract the tarball defined as Source above and descend into it. +%prep +#%setup -T -b 0 -q -n netavark +%autosetup -Sgit -T -b 0 -n %{name} + +# This will invoke `make` command in the directory with the extracted sources. +%build +%{__make} build +pushd docs +go-md2man -in %{name}.1.md -out %{name}.1 +popd + +# This will copy the files generated by the `make` command above into +# the installable rpm package. +%install +%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install + +# This lists all the files that are included in the rpm package and that +# are going to be installed into target system where the rpm is installed. +%files +%license LICENSE +%dir %{_libexecdir}/podman +%{_libexecdir}/podman/%{name} +%{_mandir}/man1/%{name}.1* + +# Finally, changes from the latest release of your application are generated from +# your project's Git history. It will be empty until you make first annotated Git tag. +%changelog @@ -0,0 +1 @@ +e3d95085ceb0bbda6e601214a14c9d29 netavark-dbdeb9a7.tar.gz |