Hello community,

here is the log from the commit of package golang-github-jpoirier-cpu for 
openSUSE:Factory checked in at 2017-03-24 02:15:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-github-jpoirier-cpu (Old)
 and      /work/SRC/openSUSE:Factory/.golang-github-jpoirier-cpu.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "golang-github-jpoirier-cpu"

Fri Mar 24 02:15:45 2017 rev:3 rq:477174 version:0.0.0+git20141224.5b5a7ea

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/golang-github-jpoirier-cpu/golang-github-jpoirier-cpu.changes
    2015-09-03 18:12:27.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.golang-github-jpoirier-cpu.new/golang-github-jpoirier-cpu.changes
       2017-03-24 02:15:47.609822225 +0100
@@ -1,0 +2,5 @@
+Mon Dec 19 15:51:26 UTC 2016 - [email protected]
+
+- Refactoring based on new packaging proposal
+
+-------------------------------------------------------------------

New:
----
  rpmlintrc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ golang-github-jpoirier-cpu.spec ++++++
--- /var/tmp/diff_new_pack.3Mg6E7/_old  2017-03-24 02:15:48.153745265 +0100
+++ /var/tmp/diff_new_pack.3Mg6E7/_new  2017-03-24 02:15:48.157744698 +0100
@@ -1,8 +1,7 @@
 #
-# spec file for package golang-github-jpoirier-cpu
+# spec file for package golang
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
-# Copyright (c) 2013 Sascha Peilicke <[email protected]>
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,50 +16,55 @@
 #
 
 
-Name:           golang-github-jpoirier-cpu
+%global provider        github
+%global provider_tld    com
+%global project         jpoirier
+%global repo            cpu
+%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
+%global import_path     %{provider_prefix}
+
+Name:           golang-%{provider}-%{project}-%{repo}
 Version:        0.0.0+git20141224.5b5a7ea 
 Release:        0
 Summary:        A Go package that reports processor topology
 License:        BSD-3-Clause
-Group:          Development/Languages/Other
-Url:            https://github.com/jpoirier/cpu
-Source0:        cpu-%{version}.tar.xz
+Group:          Development/Languages/Golang
+Url:            https://%{provider_prefix}
+Source0:        %{repo}-%{version}.tar.xz
+Source1:        rpmlintrc
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
 BuildRequires:  golang-packaging
 BuildRequires:  xz
-Provides:       go-cpu = %{version}
-Obsoletes:      go-cpu < %{version}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-ExclusiveArch:  %{ix86} x86_64
+
+%{go_nostrip}
 %{go_provides}
 
 %description
-The cpu package reports processor topology information.
-
-Note that the term package refers to a physical processor and system refers to
-multiple packages. Also, a processor's hardware capability may differ from its
-configuration.
-
-%gosrc_package
+The cpu package reports processor topology information. Note that the term
+package refers to a physical processor and system refers to multiple packages.
+Also, a processor's hardware capability may differ from its configuration.
 
 %prep
-%setup -q -n cpu-%{version}
-chmod -x README LICENSE cpu_example.go
+%setup -q -n %{repo}-%{version}
+
+# fix wrong permissions
+chmod -x README LICENSE
 
 %build
-%goprep github.com/jpoirier/cpu
-%gobuild
+%goprep %{import_path}
+%gobuild ...
 
 %install
 %goinstall
 %gosrc
+%gofilelist
 
-%files
-%defattr(-,root,root,-)
-%doc LICENSE README cpu_example.go
-%{go_contribdir}/*
+%check
+%gotest %{import_path}...
 
-%files source
+%files -f file.lst
 %defattr(-,root,root,-)
-%{go_contribsrcdir}/*
+%doc README LICENSE
 
 %changelog

++++++ _service ++++++
--- /var/tmp/diff_new_pack.3Mg6E7/_old  2017-03-24 02:15:48.189740171 +0100
+++ /var/tmp/diff_new_pack.3Mg6E7/_new  2017-03-24 02:15:48.189740171 +0100
@@ -1,16 +1,17 @@
 <services>
-  <service name="tar_scm" mode="localonly">
-    <param name="url">https://github.com/jpoirier/cpu.git</param>
+  <service name="tar_scm" mode="disabled">
+    <param name="url">https://github.com/jpoirier/cpu</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
     <param name="versionformat">0.0.0+git%cd.%h</param>
     <param name="revision">master</param>
+    <param name="changesgenerate">enable</param>
   </service>
-  <service name="recompress" mode="localonly">
+  <service name="recompress" mode="disabled">
     <param name="file">cpu-*.tar</param>
     <param name="compression">xz</param>
   </service>
-  <service name="set_version" mode="localonly">
+  <service name="set_version" mode="disabled">
     <param name="basename">cpu</param>
   </service>
 </services>

++++++ rpmlintrc ++++++
# We are preventing the stripping to keep backtraces intact
addFilter("unstripped-binary-or-object")

# Golang doesn't support dynamic linking yet in a proper way
addFilter("statically-linked-binary")

# We are aware of that but shorter names are not possible
addFilter("filename-too-long-for-joliet")

Reply via email to