rename go and go-fmt to [-pie] for cohexistence woth gcc-go [release 1.11-2mamba;Mon Sep 10 2018]
This commit is contained in:
parent
839f442bdd
commit
75add14344
29
go.spec
29
go.spec
@ -1,7 +1,7 @@
|
|||||||
#% define with_pie 1
|
%define with_pie 1
|
||||||
Name: go
|
Name: go
|
||||||
Version: 1.11
|
Version: 1.11
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: The Go programming language
|
Summary: The Go programming language
|
||||||
Group: Applications/Development
|
Group: Applications/Development
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -14,17 +14,15 @@ Patch0: go-1.10.1-default-buildmode-pie.patch
|
|||||||
License: BSD
|
License: BSD
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: ldconfig
|
|
||||||
BuildRequires: libperl
|
|
||||||
BuildRequires: perl-devel
|
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: gcc-go >= 8.1.0
|
BuildRequires: gcc-go >= 8.1.0
|
||||||
Provides: go
|
Provides: go
|
||||||
%if "%{with_pie}" == "1"
|
Provides: go-pie
|
||||||
Conflicts: go
|
#%if "%{with_pie}" == "1"
|
||||||
%else
|
#Conflicts: go
|
||||||
Conflicts: go-pie
|
#%else
|
||||||
%endif
|
#Conflicts: go-pie
|
||||||
|
#%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -86,8 +84,8 @@ install -d %{buildroot}{%{_bindir},%{_libdir}/go,%{_docdir}/go}
|
|||||||
cp -a bin pkg src lib misc %{buildroot}%{_libdir}/go
|
cp -a bin pkg src lib misc %{buildroot}%{_libdir}/go
|
||||||
cp -r doc/* %{buildroot}%{_docdir}/go
|
cp -r doc/* %{buildroot}%{_docdir}/go
|
||||||
|
|
||||||
ln -sf %{_libdir}/go/bin/go %{buildroot}%{_bindir}/go
|
ln -sf %{_libdir}/go/bin/go %{buildroot}%{_bindir}/go-pie
|
||||||
ln -sf %{_libdir}/go/bin/gofmt %{buildroot}%{_bindir}/gofmt
|
ln -sf %{_libdir}/go/bin/gofmt %{buildroot}%{_bindir}/gofmt-pie
|
||||||
ln -sf %{_docdir}/go %{buildroot}%{_libdir}/go/doc
|
ln -sf %{_docdir}/go %{buildroot}%{_libdir}/go/doc
|
||||||
|
|
||||||
install -Dm644 LICENSE %{buildroot}%{_datadir}/licenses/go/LICENSE
|
install -Dm644 LICENSE %{buildroot}%{_datadir}/licenses/go/LICENSE
|
||||||
@ -106,8 +104,8 @@ rm -rf %{buildroot}%{_libdir}/go/src/*.rc
|
|||||||
%files
|
%files
|
||||||
%endif
|
%endif
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/go
|
%{_bindir}/go-pie
|
||||||
%{_bindir}/gofmt
|
%{_bindir}/gofmt-pie
|
||||||
%dir %{_libdir}/go
|
%dir %{_libdir}/go
|
||||||
%{_libdir}/go/*
|
%{_libdir}/go/*
|
||||||
%dir %{_datadir}/doc/go
|
%dir %{_datadir}/doc/go
|
||||||
@ -116,6 +114,9 @@ rm -rf %{buildroot}%{_libdir}/go/src/*.rc
|
|||||||
#%doc README.md
|
#%doc README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 10 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11-2mamba
|
||||||
|
- rename go and go-fmt to [-pie] for cohexistence woth gcc-go
|
||||||
|
|
||||||
* Tue Sep 04 2018 Automatic Build System <autodist@mambasoft.it> 1.11-1mamba
|
* Tue Sep 04 2018 Automatic Build System <autodist@mambasoft.it> 1.11-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user