# 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.413.9f877350 # 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#9f877350086fffaf7978d9da062aba353a782d92: # 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-9f877350.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