commit 42182e9657f5b4a71baa9705be276e02001aa38c4f66d89726d03100ce7966f8 Author: Thomas Schmidt Date: Thu Jul 1 09:57:55 2021 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/_service b/_service new file mode 100644 index 0000000..8b68d85 --- /dev/null +++ b/_service @@ -0,0 +1,36 @@ + + + git + https://github.com/SUSE/connect-ng.git + main + _auto_ + 0.0.0~git.%h + + vendor + + + + *.tar + xz + + + + suseconnect-ng.spec + + + diff --git a/connect-ng-0.0.0~git.d73f68f.tar.xz b/connect-ng-0.0.0~git.d73f68f.tar.xz new file mode 100644 index 0000000..08f69d8 --- /dev/null +++ b/connect-ng-0.0.0~git.d73f68f.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfee3795da67833aab7f16f286b7777e57d6ea5614d7911482292b0e86e6c6a3 +size 29920 diff --git a/connect-ng.obsinfo b/connect-ng.obsinfo new file mode 100644 index 0000000..d9a28f7 --- /dev/null +++ b/connect-ng.obsinfo @@ -0,0 +1,5 @@ +name: connect-ng +version: 0.0.0~git.d73f68f +mtime: 1624635740 +commit: d73f68f5f951e388511080368d5b17da34b8495a + diff --git a/suseconnect-ng-rpmlintrc b/suseconnect-ng-rpmlintrc new file mode 100644 index 0000000..792839c --- /dev/null +++ b/suseconnect-ng-rpmlintrc @@ -0,0 +1 @@ +addFilter("unstripped-binary-or-object /usr/bin/cmd") diff --git a/suseconnect-ng.changes b/suseconnect-ng.changes new file mode 100644 index 0000000..8a5faa7 --- /dev/null +++ b/suseconnect-ng.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 25 17:45:10 UTC 2021 - Jan Zerebecki + +- Initial package of suseconnect-ng diff --git a/suseconnect-ng.spec b/suseconnect-ng.spec new file mode 100644 index 0000000..1d5e10d --- /dev/null +++ b/suseconnect-ng.spec @@ -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 +