Accepting request 954732 from home:dimstar:Factory

- Move rpm macros from /etc/rpm to /usr/lib/rpm/macros.d
  (boo#1191383).

OBS-URL: https://build.opensuse.org/request/show/954732
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/golang-packaging?expand=0&rev=74
This commit is contained in:
Jeff Kowalczyk 2022-02-15 19:50:44 +00:00 committed by Git OBS Bridge
parent 23c90a7ac9
commit afd13ccc5b
2 changed files with 19 additions and 13 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 15 12:33:38 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- Move rpm macros from /etc/rpm to /usr/lib/rpm/macros.d
(boo#1191383).
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 01 05:39:58 UTC 2022 - jkowalczyk@suse.com Tue Feb 01 05:39:58 UTC 2022 - jkowalczyk@suse.com

View File

@ -40,30 +40,30 @@ A toolchain to help packaging golang, written in bash.
%build %build
%install %install
mkdir -p %{buildroot}%{_sysconfdir}/rpm/ mkdir -p %{buildroot}%{_rpmmacrodir}
mkdir -p %{buildroot}%{_prefix}/lib/rpm/ mkdir -p %{buildroot}%{_rpmconfigdir}
install -m0755 golang.prov %{buildroot}%{_prefix}/lib/rpm/ install -m0755 golang.prov %{buildroot}%{_rpmconfigdir}
install -m0755 golang.req %{buildroot}%{_prefix}/lib/rpm/ install -m0755 golang.req %{buildroot}%{_rpmconfigdir}
install -m0755 golang.sh %{buildroot}%{_prefix}/lib/rpm/ install -m0755 golang.sh %{buildroot}%{_rpmconfigdir}
install -m0644 macros.go %{buildroot}%{_sysconfdir}/rpm/ install -m0644 macros.go %{buildroot}%{_rpmmacrodir}
%if 0%{?suse_version} >= 1320 %if 0%{?suse_version} >= 1320
mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs
install -m0644 golang.attr %{buildroot}%{_prefix}/lib/rpm/fileattrs/ install -m0644 golang.attr %{buildroot}%{_rpmconfigdir}/fileattrs/
%endif %endif
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README.md CHANGELOG %doc README.md CHANGELOG
%license COPYING %license COPYING
%{_prefix}/lib/rpm/golang.prov %{_rpmconfigdir}/golang.prov
%{_prefix}/lib/rpm/golang.req %{_rpmconfigdir}/golang.req
%{_prefix}/lib/rpm/golang.sh %{_rpmconfigdir}/golang.sh
%config %{_sysconfdir}/rpm/macros.go %{_rpmmacrodir}/macros.go
%if 0%{?suse_version} >= 1320 %if 0%{?suse_version} >= 1320
%{_prefix}/lib/rpm/fileattrs/golang.attr %{_rpmconfigdir}/fileattrs/golang.attr
%endif %endif
%changelog %changelog