# Generated by go2rpm 1.12.0 %bcond_without check # https://gitlab.com/jackorp/specfile_parser_simple %global goipath gitlab.com/jackorp/specfile_parser_simple %global forgeurl https://gitlab.com/jackorp/specfile_parser_simple Version: 0.2.2 %gometa -L -f %global common_description %{expand:\ Parser library for static analysis of RPM specfile} %global golicenses LICENSE %global godocs README.md Name: golang-gitlab-jackorp-specfile-parser-simple Release: 1%{?dist} Summary: Parser library for static analysis of RPM specfile License: MIT URL: %{gourl} Source: %{gosource} BuildRequires: pkgconfig(libgit2) %description %{common_description} %gopkg %package -n check-spec-patches Summary: Simple program to check patches in your specfile %description -n check-spec-patches Static analysis for specfile's patch usage for specfiles that do not use %%autosetup. It also checks for whether the patches are present in git and that git does not have superfluous patches. %prep %goprep -A %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in bin/check-spec-patches; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %gopkgfiles %files -n check-spec-patches %{_bindir}/check-spec-patches %changelog * Wed May 15 2024 Jarek Prokop - 0.2.2-1 - Upgrade to 0.2.2. * Wed May 15 2024 Jarek Prokop - 0.2.1-1 - Correction update. * Wed May 15 2024 Jarek Prokop - 0.2.0-1 - Split out the binary into a dedicated package. * Mon May 13 2024 Jarek Prokop - 0.1.0-1 - Initial package.