Hello community,
here is the log from the commit of package golang-googlecode-freetype-go for openSUSE:Factory checked in at 2017-03-28 15:21:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-googlecode-freetype-go (Old)
and /work/SRC/openSUSE:Factory/.golang-googlecode-freetype-go.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-googlecode-freetype-go"
Tue Mar 28 15:21:19 2017 rev:3 rq:478451 version:0.0.0+git20161208.d9be45a
Changes:
--------
--- /work/SRC/openSUSE:Factory/golang-googlecode-freetype-go/golang-googlecode-freetype-go.changes 2016-04-06 11:52:08.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.golang-googlecode-freetype-go.new/golang-googlecode-freetype-go.changes 2017-03-28 15:21:20.433058016 +0200
@@ -1,0 +2,9 @@
+Fri Mar 3 08:33:56 UTC 2017 - thipp@suse.de
+
+- Update to version 0.0.0+git20161208.d9be45a
+- Refactoring based on new packaging proposal
+- Rename %{name}-rpmlintrc to rpmlintrc
+- Use git instead of mercurial
+- Remove example binaries from package
+
+-------------------------------------------------------------------
Old:
----
freetype-go-0.0.0+hg20150309.128.46c3056cafbb.tar.xz
golang-googlecode-freetype-go-rpmlintrc
New:
----
freetype-0.0.0+git20161208.d9be45a.tar.xz
rpmlintrc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-googlecode-freetype-go.spec ++++++
--- /var/tmp/diff_new_pack.MNRgBe/_old 2017-03-28 15:21:21.200949259 +0200
+++ /var/tmp/diff_new_pack.MNRgBe/_new 2017-03-28 15:21:21.200949259 +0200
@@ -1,7 +1,7 @@
#
# spec file for package golang-googlecode-freetype-go
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c), 2011, Sascha Peilicke
#
# All modifications and additions to the file contributed by third parties
@@ -17,20 +17,30 @@
#
+%global provider github
+%global provider_tld com
+%global project golang
+%global repo freetype
+%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
+%global import_path %{provider_prefix}
+
Name: golang-googlecode-freetype-go
-Version: 0.0.0+hg20150309.128.46c3056cafbb
+Version: 0.0.0+git20161208.d9be45a
Release: 0
Summary: A port of the Freetype font engine to the Go programming language
License: FTL or GPL-2.0+
Group: Development/Languages/Other
-Url: http://code.google.com/p/freetype-go
-Source0: freetype-go-%{version}.tar.xz
-Source1: %{name}-rpmlintrc
+Url: https://%{provider_prefix}
+Source0: %{repo}-%{version}.tar.xz
+Source1: rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildArch: noarch
+
BuildRequires: golang-packaging
BuildRequires: xz
-Provides: go-freetype-go = %{version}
-Obsoletes: go-freetype-go < %{version}
+BuildRequires: golang(golang.org/x/image/font)
+
+%{go_nostrip}
%{go_provides}
%description
@@ -38,28 +48,21 @@
programming language.
%prep
-%setup -q -n freetype-go-%{version}
+%setup -q -n %{repo}-%{version}
+
+rm -rf example
%build
-%goprep code.google.com/p/freetype-go
+%goprep %{import_path}
%gobuild ...
%install
%goinstall
-# NOTE(saschpe): Rename binaries to avoid potential file conflicts.
-# I'm not sure if "go-" is the best prefix, but should do it for now:
-for b in freetype gamma raster round truetype ; do
- mv %{buildroot}%{_bindir}/$b %{buildroot}%{_bindir}/go-$b
-done
+%gosrc
+%gofilelist
-%files
+%files -f file.lst
%defattr(-,root,root,-)
-%doc AUTHORS CONTRIBUTORS LICENSE README licenses example
-%{_bindir}/go-freetype
-%{_bindir}/go-gamma
-%{_bindir}/go-raster
-%{_bindir}/go-round
-%{_bindir}/go-truetype
-%{go_contribdir}/*
+%doc AUTHORS CONTRIBUTORS LICENSE README licenses
%changelog
++++++ _service ++++++
--- /var/tmp/diff_new_pack.MNRgBe/_old 2017-03-28 15:21:21.240943595 +0200
+++ /var/tmp/diff_new_pack.MNRgBe/_new 2017-03-28 15:21:21.244943029 +0200
@@ -1,16 +1,17 @@
<services>
<service name="tar_scm" mode="localonly">
- <param name="url">https://code.google.com/p/freetype-go/</param>
- <param name="scm">hg</param>
- <param name="exclude">.hg</param>
- <param name="versionformat">0.0.0+hg{date|shortdate}.{rev}.{node|short}</param>
- <param name="revision">tip</param>
+ <param name="url">https://github.com/golang/freetype/</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">
- <param name="file">freetype-go-*.tar</param>
+ <param name="file">freetype-*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="localonly">
- <param name="basename">freetype-go</param>
+ <param name="basename">freetype</param>
</service>
</services>
++++++ rpmlintrc ++++++
# go binaries are suposedly ELF-compliant
addFilter("binaryinfo-readelf-failed")
# go doesn't yet support dynamic linking
addFilter("statically-linked-binary")
# We are aware of that but shorter names are not possible
addFilter("filename-too-long-for-joliet")