- strip binaries (removes 4MB/25% of the uncompressed size)

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/container-suseconnect?expand=0&rev=8
This commit is contained in:
Dirk Mueller 2021-03-27 08:19:27 +00:00 committed by Git OBS Bridge
parent 0a9388d844
commit 39f5425100
2 changed files with 22 additions and 22 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 27 08:18:08 UTC 2021 - Dirk Müller <dmueller@suse.com>
- strip binaries (removes 4MB/25% of the uncompressed size)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 30 14:14:49 UTC 2020 - Ralf Haferkamp <rhafer@suse.com> Tue Jun 30 14:14:49 UTC 2020 - Ralf Haferkamp <rhafer@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package container-suseconnect # spec file for package container-suseconnect
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,33 +12,29 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%global project container-suseconnect %global project container-suseconnect
%global import_path github.com/SUSE/%{project} %global import_path github.com/SUSE/%{project}
%global zypp_path /usr/lib/zypp/plugins %global zypp_path %{_prefix}/lib/zypp/plugins
%global zypp_services %{zypp_path}/services %global zypp_services %{zypp_path}/services
%global zypp_urlresolver %{zypp_path}/urlresolver %global zypp_urlresolver %{zypp_path}/urlresolver
Name: %{project} Name: %{project}
Version: 2.3.0 Version: 2.3.0
Release: 0 Release: 0
Summary: Provides access to repositories inside containers Summary: Provides access to repositories inside containers
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Other Group: Development/Languages/Other
Url: https://%{import_path} URL: https://%{import_path}
Source0: %{project}-%{version}.tar.bz2 Source0: %{project}-%{version}.tar.bz2
Source1: container-suseconnect-rpmlintrc Source1: container-suseconnect-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libzypp > 9.34
BuildRequires: libzypp > 9.34
BuildRequires: golang-packaging BuildRequires: golang-packaging
BuildRequires: libzypp > 9.34
%go_nostrip Requires: libzypp > 9.34
%go_provides %{go_provides}
%go_exclusivearch %{go_exclusivearch}
%description %description
container-suseconnect gives access to package repositories inside containers container-suseconnect gives access to package repositories inside containers
@ -49,19 +45,18 @@ using the host machine entitlements.
%build %build
export GO111MODULE=off export GO111MODULE=off
%goprep %{import_path} %{goprep} %{import_path}
%gobuild cmd/container-suseconnect %{gobuild} cmd/container-suseconnect
%install %install
%goinstall %{goinstall}
%gofilelist %{gofilelist}
%__mkdir_p %{buildroot}/%{zypp_services} mkdir -p %{buildroot}/%{zypp_services}
%__mkdir_p %{buildroot}/%{zypp_urlresolver} mkdir -p %{buildroot}/%{zypp_urlresolver}
%__ln_s %{_bindir}/%{project} %{buildroot}/%{zypp_services}/%{project}-zypp ln -s %{_bindir}/%{project} %{buildroot}/%{zypp_services}/%{project}-zypp
%__ln_s %{_bindir}/%{project} %{buildroot}/%{zypp_urlresolver}/susecloud ln -s %{_bindir}/%{project} %{buildroot}/%{zypp_urlresolver}/susecloud
%files -f file.lst %files -f file.lst
%defattr(-,root,root,-)
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{_bindir}/%{project} %{_bindir}/%{project}