forked from pool/suseconnect-ng
Accepting request 902846 from home:jzerebecki:branches:systemsmanagement:SCC
package https://github.com/SUSE/connect-ng OBS-URL: https://build.opensuse.org/request/show/902846 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:SCC/suseconnect-ng?expand=0&rev=1
This commit is contained in:
commit
c176361a09
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
36
_service
Normal file
36
_service
Normal file
@ -0,0 +1,36 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/SUSE/connect-ng.git</param>
|
||||
<param name="revision">main</param>
|
||||
<param name="version">_auto_</param>
|
||||
<param name="versionformat">0.0.0~git.%h</param>
|
||||
<!--
|
||||
<param name="version">_auto_</param>
|
||||
<param name="versionformat">@PARENT_TAG@~git@TAG_OFFSET@.%h</param>
|
||||
<param name="match-tag">v*</param>
|
||||
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
-->
|
||||
<param name="exclude">vendor</param>
|
||||
</service>
|
||||
<service name="tar" mode="manual" />
|
||||
<service name="recompress" mode="manual">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<!--
|
||||
<service name="extract_file" mode="manual">
|
||||
<para name="archive">connect-ng*.tar.xz</param>
|
||||
<para name="files">suseconnect-ng.spec</para>
|
||||
<para name="files">suseconnect-ng-rpmlintrc</para>
|
||||
</service>
|
||||
-->
|
||||
<service name="set_version" mode="manual">
|
||||
<param name="file">suseconnect-ng.spec</param>
|
||||
</service>
|
||||
<!--
|
||||
<service name="go_modules" mode="disabled">
|
||||
</service>
|
||||
-->
|
||||
</services>
|
3
connect-ng-0.0.0~git.d73f68f.tar.xz
Normal file
3
connect-ng-0.0.0~git.d73f68f.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bfee3795da67833aab7f16f286b7777e57d6ea5614d7911482292b0e86e6c6a3
|
||||
size 29920
|
5
connect-ng.obsinfo
Normal file
5
connect-ng.obsinfo
Normal file
@ -0,0 +1,5 @@
|
||||
name: connect-ng
|
||||
version: 0.0.0~git.d73f68f
|
||||
mtime: 1624635740
|
||||
commit: d73f68f5f951e388511080368d5b17da34b8495a
|
||||
|
1
suseconnect-ng-rpmlintrc
Normal file
1
suseconnect-ng-rpmlintrc
Normal file
@ -0,0 +1 @@
|
||||
addFilter("unstripped-binary-or-object /usr/bin/cmd")
|
4
suseconnect-ng.changes
Normal file
4
suseconnect-ng.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 25 17:45:10 UTC 2021 - Jan Zerebecki <jzerebecki@suse.com>
|
||||
|
||||
- Initial package of suseconnect-ng
|
76
suseconnect-ng.spec
Normal file
76
suseconnect-ng.spec
Normal file
@ -0,0 +1,76 @@
|
||||
#
|
||||
# spec file for package suseconnect-ng
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%global provider_prefix github.com/SUSE/connect-ng
|
||||
%global import_path %{provider_prefix}
|
||||
|
||||
Name: suseconnect-ng
|
||||
Version: 0.0.0~git.d73f68f
|
||||
Release: 0
|
||||
URL: https://github.com/SUSE/connect-ng
|
||||
License: LGPL-2.1-or-later
|
||||
Summary: Utility to register a system with the SUSE Customer Center
|
||||
Group: System/Management
|
||||
Source: connect-ng-%{version}.tar.xz
|
||||
Source1: %name-rpmlintrc
|
||||
BuildRequires: golang-packaging
|
||||
|
||||
%description
|
||||
This package provides a command line tool for connecting a
|
||||
client system to the SUSE Customer Center. It will connect the system to your
|
||||
product subscriptions and enable the product repositories/services locally.
|
||||
|
||||
|
||||
%{go_nostrip}
|
||||
%{go_provides}
|
||||
|
||||
%prep
|
||||
%setup -q -n connect-ng-%{version}
|
||||
|
||||
%build
|
||||
find %_builddir/..
|
||||
%goprep %{import_path}
|
||||
find %_builddir/..
|
||||
go list -m all
|
||||
%gobuild cmd
|
||||
go build -buildmode=c-shared -o %_builddir/go/src/github.com/SUSE/connect-ng/ext/libsuseconnect.so ext/main.go
|
||||
find %_builddir/..
|
||||
|
||||
%install
|
||||
%goinstall
|
||||
ln -s cmd %buildroot/%_bindir/SUSEConnect
|
||||
mkdir %buildroot/%_sbindir
|
||||
ln -s ../bin/cmd %buildroot/%_sbindir/SUSEConnect
|
||||
#TODO package ruby module
|
||||
#cp /home/abuild/rpmbuild/BUILD/go/src/github.com/SUSE/connect-ng/ext/libsuseconnect.so %_libdir/libsuseconnect.so
|
||||
#TODO man pages not yet available in source, these are the names frome the ruby version
|
||||
#/usr/share/man/man5/SUSEConnect.5.gz
|
||||
#/usr/share/man/man8/SUSEConnect.8.gz
|
||||
|
||||
%gofilelist
|
||||
find %_builddir/..
|
||||
|
||||
%check
|
||||
%gotest github.com/SUSE/connect-ng/connect
|
||||
|
||||
%files -f file.lst
|
||||
%license LICENSE LICENSE.LGPL
|
||||
%doc README.md
|
||||
%_bindir/cmd
|
||||
%_bindir/SUSEConnect
|
||||
%_sbindir/SUSEConnect
|
||||
|
Loading…
Reference in New Issue
Block a user