Architecture specific change in rpms/nodejs-rollup-plugin-typescript.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-rollup-plugin-typescript.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/nodejs-rollup-plugin-typescript.g....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit b8492f1effb17633ae7324276ed51a58b2c0b9cd
Author: Jared Smith <jsmith(a)fedoraproject.org>
Date: Fri Jun 1 14:09:06 2018 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8fa4f9b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/rollup-plugin-typescript-0.8.1.tgz
+/tests-0.8.1.tar.bz2
diff --git a/README.md b/README.md
deleted file mode 100644
index 020dcf2..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# nodejs-rollup-plugin-typescript
-
-'Seamless integration between Rollup and TypeScript'
\ No newline at end of file
diff --git a/dl-tests.sh b/dl-tests.sh
new file mode 100644
index 0000000..36f13ab
--- /dev/null
+++ b/dl-tests.sh
@@ -0,0 +1,131 @@
+#!/bin/bash
+
+tag=$(sed -n 's/^Version:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+url=$(sed -n 's/^URL:\s\(.*\)$/\1/p' ./*.spec | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
+pkgdir=$(basename $url | sed -s 's/\.git$//')
+
+echo "tag: $tag"
+echo "URL: $url"
+echo "pkgdir: $pkgdir"
+
+set -e
+
+tmp=$(mktemp -d)
+
+trap cleanup EXIT
+cleanup() {
+ echo Cleaning up...
+ set +e
+ [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
+}
+
+unset CDPATH
+pwd=$(pwd)
+
+pushd "$tmp"
+git clone $url
+cd $pkgdir
+echo Finding git tag
+gittag=$(git show-ref --tags | cut -d' ' -f2 | grep "${tag}$" || git show-ref --tags | cut -d' ' -f2 | sort -Vr | head -n1)
+if [ -z $gittag ]; then
+ gittag=refs/master
+fi
+echo "Git Tag: $gittag"
+if [ -d "test" ]; then
+ git archive --prefix='test/' --format=tar ${gittag}:test/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "tests" ]; then
+ git archive --prefix='tests/' --format=tar ${gittag}:tests/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+elif [ -d "spec" ]; then
+ git archive --prefix='spec/' --format=tar ${gittag}:spec/ \
+ | bzip2 > "$pwd"/tests-${tag}.tar.bz2
+else
+ echo "No test directory found for tag ${gittag}"
+fi
+if [ -d "support" ]; then
+ git archive --prefix='support/' --format=tar ${gittag}:support/ \
+ | bzip2 > "$pwd"/support-${tag}.tar.bz2
+fi
+if [ -d "fixture" ]; then
+ git archive --prefix='fixture/' --format=tar ${gittag}:fixture/ \
+ | bzip2 > "$pwd"/fixture-${tag}.tar.bz2
+fi
+if [ -d "examples" ]; then
+ git archive --prefix='examples/' --format=tar ${gittag}:examples/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+elif [ -d "example" ]; then
+ git archive --prefix='example/' --format=tar ${gittag}:example/ \
+ | bzip2 > "$pwd"/examples-${tag}.tar.bz2
+fi
+if [ -d "tasks" ]; then
+ git archive --prefix='tasks/' --format=tar ${gittag}:tasks/ \
+ | bzip2 > "$pwd"/tasks-${tag}.tar.bz2
+fi
+if [ -d "docs" ]; then
+ git archive --prefix='docs/' --format=tar ${gittag}:docs/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+elif [ -d "doc" ]; then
+ git archive --prefix='doc/' --format=tar ${gittag}:doc/ \
+ | bzip2 > "$pwd"/docs-${tag}.tar.bz2
+fi
+if [ -d "src" ]; then
+ git archive --prefix='src/' --format=tar ${gittag}:src/ \
+ | bzip2 > "$pwd"/src-${tag}.tar.bz2
+elif [ -d "source" ]; then
+ git archive --prefix='source/' --format=tar ${gittag}:source/ \
+ | bzip2 > "$pwd"/source-${tag}.tar.bz2
+fi
+if [ -d "tools" ]; then
+ git archive --prefix='tools/' --format=tar ${gittag}:tools/ \
+ | bzip2 > "$pwd"/tools-${tag}.tar.bz2
+fi
+if [ -d "scripts" ]; then
+ git archive --prefix='scripts/' --format=tar ${gittag}:scripts/ \
+ | bzip2 > "$pwd"/scripts-${tag}.tar.bz2
+fi
+if [ -d "modules" ]; then
+ git archive --prefix='modules/' --format=tar ${gittag}:modules/ \
+ | bzip2 > "$pwd"/modules-${tag}.tar.bz2
+fi
+if [ -d "ts" ]; then
+ git archive --prefix='ts/' --format=tar ${gittag}:ts/ \
+ | bzip2 > "$pwd"/ts-${tag}.tar.bz2
+fi
+if [ -d "build" ]; then
+ git archive --prefix='build/' --format=tar ${gittag}:build/ \
+ | bzip2 > "$pwd"/build-${tag}.tar.bz2
+fi
+if [ -d "fixtures" ]; then
+ git archive --prefix='fixtures/' --format=tar ${gittag}:fixtures/ \
+ | bzip2 > "$pwd"/fixtures-${tag}.tar.bz2
+fi
+if [ -d "mocks" ]; then
+ git archive --prefix='mocks/' --format=tar ${gittag}:mocks/ \
+ | bzip2 > "$pwd"/mocks-${tag}.tar.bz2
+fi
+if [ -d "typings" ]; then
+ git archive --prefix='typings/' --format=tar ${gittag}:typings/ \
+ | bzip2 > "$pwd"/typings-${tag}.tar.bz2
+fi
+if [ -d "templates" ]; then
+ git archive --prefix='templates/' --format=tar ${gittag}:templates/ \
+ | bzip2 > "$pwd"/templates-${tag}.tar.bz2
+fi
+if [ -d "benchmark" ]; then
+ git archive --prefix='benchmark/' --format=tar ${gittag}:benchmark/ \
+ | bzip2 > "$pwd"/benchmark-${tag}.tar.bz2
+fi
+if [ -d "vendor" ]; then
+ git archive --prefix='vendor/' --format=tar ${gittag}:vendor/ \
+ | bzip2 > "$pwd"/vendor-${tag}.tar.bz2
+fi
+if [ -d "packages" ]; then
+ git archive --prefix='packages/' --format=tar ${gittag}:packages/ \
+ | bzip2 > "$pwd"/packages-${tag}.tar.bz2
+fi
+if [ -d "rollup" ]; then
+ git archive --prefix='rollup/' --format=tar ${gittag}:rollup/ \
+ | bzip2 > "$pwd"/rollup-${tag}.tar.bz2
+fi
+popd
diff --git a/nodejs-rollup-plugin-typescript.spec b/nodejs-rollup-plugin-typescript.spec
new file mode 100644
index 0000000..8ada3a1
--- /dev/null
+++ b/nodejs-rollup-plugin-typescript.spec
@@ -0,0 +1,97 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename rollup-plugin-typescript
+
+# use the pre-transpiled versions for now, until we get
+# enough rollup support to transpile as part of the build process
+%global bootstrap 1
+
+# tests are currently failing in npm(snapdragon), down in the depths
+# of the dependency chain
+%global enable_tests 0
+
+Name: nodejs-rollup-plugin-typescript
+Version: 0.8.1
+Release: 1%{?dist}
+Summary: Seamless integration between Rollup and TypeScript
+
+License: MIT
+URL: https://github.com/rollup/rollup-plugin-typescript
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+# The test files are not included in the npm tarball.
+# Source{1-9} are generated by running Source10, which pulls from the upstream
+# version control repository.
+Source1: tests-%{version}.tar.bz2
+Source10: dl-tests.sh
+# Rollup config
+Source11: https://raw.githubusercontent.com/rollup/rollup-plugin-typescript/v%{vers...
+
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+BuildRequires: npm(compare-versions)
+BuildRequires: npm(object-assign)
+BuildRequires: npm(rollup)
+BuildRequires: npm(rollup-plugin-buble)
+BuildRequires: npm(rollup-pluginutils)
+BuildRequires: npm(tippex)
+BuildRequires: npm(typescript)
+
+%if 0%{?enable_tests}
+BuildRequires: mocha
+%endif
+
+%description
+Seamless integration between Rollup and TypeScript.
+
+
+%prep
+%autosetup -n package
+# setup the tests
+%autosetup -T -D -a 1 -n package
+cp -p %{SOURCE11} .
+
+%nodejs_fixdep compare-versions
+%nodejs_fixdep rollup-plugin-node-resolve
+%nodejs_fixdep rollup-pluginutils
+%nodejs_fixdep tippex
+%nodejs_fixdep typescript
+
+
+%build
+%if !0%{?bootstrap}
+# Run rollup to re-transpile the code
+rm -rf dist/
+%nodejs_symlink_deps --build
+rollup -c
+rm -rf node_modules
+%else
+# nothing to do
+%endif
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr package.json dist/ src/ \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+NODE_ENV=test %{_bindir}/mocha -R spec
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE.md
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Thu May 31 2018 Jared K. Smith <jsmith(a)fedoraproject.org> - 0.8.1-1
+- Initial packaging
diff --git a/rollup.config.js b/rollup.config.js
new file mode 100644
index 0000000..11b20a8
--- /dev/null
+++ b/rollup.config.js
@@ -0,0 +1,32 @@
+import buble from 'rollup-plugin-buble';
+
+var pkg = require( './package.json' );
+
+export default {
+ entry: 'src/index.js',
+
+ external: [
+ 'compare-versions',
+ 'path',
+ 'fs',
+ 'object-assign',
+ 'rollup-pluginutils',
+ 'tippex',
+ 'typescript'
+ ],
+
+ plugins: [
+ buble()
+ ],
+
+ targets: [
+ {
+ format: 'cjs',
+ dest: pkg.main
+ },
+ {
+ format: 'es',
+ dest: pkg.module
+ }
+ ]
+};
diff --git a/sources b/sources
new file mode 100644
index 0000000..a0e6b0d
--- /dev/null
+++ b/sources
@@ -0,0 +1,2 @@
+SHA512 (rollup-plugin-typescript-0.8.1.tgz) = 0957b5ef38906ae7531e92c01ca33431149e381f40cdaee4b9a27fec6de678133f4aab20647a3a724a9a35791c9cce6fd884b2be1d35e9d262f29a47d634e936
+SHA512 (tests-0.8.1.tar.bz2) = 6f3772e0aa95d2fdf127e7f6bbd7384786c674c2c94424ba8af0acc70262f7cec9d69577ba4a4fe63c85c4ef9b3df759f6b9fd34a56214ca752a68c52b125454
5 years, 11 months
Architecture specific change in rpms/golang-github-julienschmidt-httprouter.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-julienschmidt-httprouter.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-julienschmidt-httpr....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit df1bd6dc628fb34374660ab4577a495f1d883f30
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Jun 1 18:13:51 2018 +0200
Upload the tarball with commit
diff --git a/.gitignore b/.gitignore
index 98c2033..edc1abf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/httprouter-6aacfd5.tar.gz
+/httprouter-adbc77eec0d91467376ca515bc3a14b8434d0f18.tar.gz
diff --git a/sources b/sources
index 9916c8f..4195fe8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-96e02c67070c3a343b267509aba5dda4 httprouter-6aacfd5.tar.gz
+SHA512 (httprouter-adbc77eec0d91467376ca515bc3a14b8434d0f18.tar.gz) = eef597e437fdedd3872ae2ca2e6e03665f2d2a0842c2f5ba4bbceb7f1ad10aeb139800ea307289561b1c87dd98e1962ada3d1975b3c8066ee11d090faf676e80
commit 19976b96c4c3c71cfc642a66768027269a8076a7
Author: Paul Gier <pgier(a)redhat.com>
Date: Fri Jun 1 10:14:01 2018 -0500
Update to latest snapshot and update spec for golang standards
diff --git a/golang-github-julienschmidt-httprouter.spec b/golang-github-julienschmidt-httprouter.spec
index 07778cb..bd1434b 100644
--- a/golang-github-julienschmidt-httprouter.spec
+++ b/golang-github-julienschmidt-httprouter.spec
@@ -1,21 +1,22 @@
-# http://github.com/julienschmidt/httprouter
-%global provider_prefix github.com/julienschmidt/httprouter
-%global gobaseipath %{provider_prefix}
-%global commit 6aacfd5ab513e34f7e64ea9627ab9670371b34e7
-%global commitdate 20150708
+%bcond_without check
+%global goipath github.com/julienschmidt/httprouter
+%global commit adbc77eec0d91467376ca515bc3a14b8434d0f18
-%gocraftmeta -i
+%global common_description %{expand:
+A high performance HTTP request router that scales well}
+
+%gometa
Name: %{goname}
Version: 1.1
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: A high performance HTTP request router that scales well
License: BSD
URL: %{gourl}
-Source0: %{gosource}
+Source: %{gosource}
%description
-%{summary}
+%{common_description}
%package devel
Summary: %{summary}
@@ -35,7 +36,9 @@ building other packages which use import path with
%goinstall
%check
-%gochecks %{gobaseipath}
+%if %{with check}
+ %gochecks
+%endif
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
@@ -45,6 +48,10 @@ building other packages which use import path with
%doc README.md
%changelog
+* Fri Jun 01 2018 Paul Gier <pgier(a)redhat.com> - 1.1-12
+- Update to latest snapshot
+- Minor updates to latest go packaging standards
+
* Thu Mar 01 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 1.1-11
- Autogenerate some parts using the new macros
commit 55565759cf2ebcbdca9387f7110fe1e109258c6f
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Thu Mar 1 12:34:56 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-github-julienschmidt-httprouter.spec b/golang-github-julienschmidt-httprouter.spec
index ae58afd..07778cb 100644
--- a/golang-github-julienschmidt-httprouter.spec
+++ b/golang-github-julienschmidt-httprouter.spec
@@ -1,183 +1,53 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 1
-# Generate unit-test rpm
-%global with_unit_test 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global isgccgoarch 0
-%if 0%{?gccgo_arches:1}
-%ifarch %{gccgo_arches}
-%global isgccgoarch 1
-%endif
-%endif
-
-%global provider github
-%global provider_tld com
-%global project julienschmidt
-%global repo httprouter
-# https://github.com/julienschmidt/httprouter
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+# http://github.com/julienschmidt/httprouter
+%global provider_prefix github.com/julienschmidt/httprouter
+%global gobaseipath %{provider_prefix}
%global commit 6aacfd5ab513e34f7e64ea9627ab9670371b34e7
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20150708
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 1.1
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: A high performance HTTP request router that scales well
License: BSD
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check}
-%endif
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-
%description devel
%{summary}
This package contains library source intended for
building other packages which use import path with
-%{import_path} prefix.
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%{gobaseipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if %{isgccgoarch}
-function gotest { %{gcc_go_test} "$@"; }
-%else
-%if 0%{?golang_test:1}
-function gotest { %{golang_test} "$@"; }
-%else
-function gotest { go test "$@"; }
-%endif
-%endif
-
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
+%gochecks %{gobaseipath}
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE
%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc README.md
-%endif
%changelog
+* Thu Mar 01 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 1.1-11
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5 years, 11 months
Architecture specific change in rpms/golang-github-julienschmidt-httprouter.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-julienschmidt-httprouter.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-julienschmidt-httpr....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit df1bd6dc628fb34374660ab4577a495f1d883f30
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Jun 1 18:13:51 2018 +0200
Upload the tarball with commit
diff --git a/.gitignore b/.gitignore
index 98c2033..edc1abf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/httprouter-6aacfd5.tar.gz
+/httprouter-adbc77eec0d91467376ca515bc3a14b8434d0f18.tar.gz
diff --git a/sources b/sources
index 9916c8f..4195fe8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-96e02c67070c3a343b267509aba5dda4 httprouter-6aacfd5.tar.gz
+SHA512 (httprouter-adbc77eec0d91467376ca515bc3a14b8434d0f18.tar.gz) = eef597e437fdedd3872ae2ca2e6e03665f2d2a0842c2f5ba4bbceb7f1ad10aeb139800ea307289561b1c87dd98e1962ada3d1975b3c8066ee11d090faf676e80
commit 19976b96c4c3c71cfc642a66768027269a8076a7
Author: Paul Gier <pgier(a)redhat.com>
Date: Fri Jun 1 10:14:01 2018 -0500
Update to latest snapshot and update spec for golang standards
diff --git a/golang-github-julienschmidt-httprouter.spec b/golang-github-julienschmidt-httprouter.spec
index 07778cb..bd1434b 100644
--- a/golang-github-julienschmidt-httprouter.spec
+++ b/golang-github-julienschmidt-httprouter.spec
@@ -1,21 +1,22 @@
-# http://github.com/julienschmidt/httprouter
-%global provider_prefix github.com/julienschmidt/httprouter
-%global gobaseipath %{provider_prefix}
-%global commit 6aacfd5ab513e34f7e64ea9627ab9670371b34e7
-%global commitdate 20150708
+%bcond_without check
+%global goipath github.com/julienschmidt/httprouter
+%global commit adbc77eec0d91467376ca515bc3a14b8434d0f18
-%gocraftmeta -i
+%global common_description %{expand:
+A high performance HTTP request router that scales well}
+
+%gometa
Name: %{goname}
Version: 1.1
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: A high performance HTTP request router that scales well
License: BSD
URL: %{gourl}
-Source0: %{gosource}
+Source: %{gosource}
%description
-%{summary}
+%{common_description}
%package devel
Summary: %{summary}
@@ -35,7 +36,9 @@ building other packages which use import path with
%goinstall
%check
-%gochecks %{gobaseipath}
+%if %{with check}
+ %gochecks
+%endif
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
@@ -45,6 +48,10 @@ building other packages which use import path with
%doc README.md
%changelog
+* Fri Jun 01 2018 Paul Gier <pgier(a)redhat.com> - 1.1-12
+- Update to latest snapshot
+- Minor updates to latest go packaging standards
+
* Thu Mar 01 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 1.1-11
- Autogenerate some parts using the new macros
commit 55565759cf2ebcbdca9387f7110fe1e109258c6f
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Thu Mar 1 12:34:56 2018 +0100
Autogenerate some parts using the new macros
diff --git a/golang-github-julienschmidt-httprouter.spec b/golang-github-julienschmidt-httprouter.spec
index ae58afd..07778cb 100644
--- a/golang-github-julienschmidt-httprouter.spec
+++ b/golang-github-julienschmidt-httprouter.spec
@@ -1,183 +1,53 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 1
-# Generate unit-test rpm
-%global with_unit_test 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global isgccgoarch 0
-%if 0%{?gccgo_arches:1}
-%ifarch %{gccgo_arches}
-%global isgccgoarch 1
-%endif
-%endif
-
-%global provider github
-%global provider_tld com
-%global project julienschmidt
-%global repo httprouter
-# https://github.com/julienschmidt/httprouter
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+# http://github.com/julienschmidt/httprouter
+%global provider_prefix github.com/julienschmidt/httprouter
+%global gobaseipath %{provider_prefix}
%global commit 6aacfd5ab513e34f7e64ea9627ab9670371b34e7
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global commitdate 20150708
-Name: golang-%{provider}-%{project}-%{repo}
+%gocraftmeta -i
+
+Name: %{goname}
Version: 1.1
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: A high performance HTTP request router that scales well
License: BSD
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+URL: %{gourl}
+Source0: %{gosource}
%description
%{summary}
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check}
-%endif
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-
%description devel
%{summary}
This package contains library source intended for
building other packages which use import path with
-%{import_path} prefix.
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-
-%description unit-test
-%{summary}
-
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+%{gobaseipath} prefix.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test} && 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if %{isgccgoarch}
-function gotest { %{gcc_go_test} "$@"; }
-%else
-%if 0%{?golang_test:1}
-function gotest { %{golang_test} "$@"; }
-%else
-function gotest { go test "$@"; }
-%endif
-%endif
-
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
+%gochecks %{gobaseipath}
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
-%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE
%doc README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc README.md
-%endif
%changelog
+* Thu Mar 01 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 1.1-11
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
commit 820303e9be1131546b1a71f6c50a3a5c556a38f1
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Wed Feb 7 14:33:21 2018 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/golang-github-julienschmidt-httprouter.spec b/golang-github-julienschmidt-httprouter.spec
index 48407f9..ae58afd 100644
--- a/golang-github-julienschmidt-httprouter.spec
+++ b/golang-github-julienschmidt-httprouter.spec
@@ -48,7 +48,7 @@
Name: golang-%{provider}-%{project}-%{repo}
Version: 1.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: A high performance HTTP request router that scales well
License: BSD
URL: https://%{provider_prefix}
@@ -178,6 +178,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif
%changelog
+* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.1-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
* Thu Nov 30 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 1.1-9
- Polish the spec file
related: #1262566
5 years, 11 months
Architecture specific change in rpms/golang-github-prometheus-procfs.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-prometheus-procfs.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-prometheus-procfs.g....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit be313321dbc525680bd7e9c417cfd2f6bb4ac51e
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Jun 1 17:26:06 2018 +0200
Upload tarball with commit
diff --git a/.gitignore b/.gitignore
index b755cad..0eb9e9c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/procfs-a1dba9c.tar.gz
+/procfs-fe93d378a6b03758a2c1b65e86cf630bf78681c0.tar.gz
diff --git a/sources b/sources
index 9e61d63..3d98361 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (procfs-a1dba9c.tar.gz) = 55993efecd85d2efdfbac030731dc0f4174a76625a66edbea57e0358591b8fd998270961c6801eec6e3cf8fc1d622e5aef1b3d4867258b177359dc353f0d0fbd
+SHA512 (procfs-fe93d378a6b03758a2c1b65e86cf630bf78681c0.tar.gz) = efbaf310e22d80e11949751f8d01b0b944aa1dffd21e2bc30c6304d60b97f4b626600690237a88182975bc439483c059596e6c24d95b08dcfcde7bb72cc0fff4
commit e1c9fccabc9c57086d0b8c652bd0f3a93cd4c4c9
Author: Paul Gier <pgier(a)redhat.com>
Date: Tue May 29 11:36:51 2018 -0500
Update to latest snapshot and update to current golang standards
diff --git a/golang-github-prometheus-procfs.spec b/golang-github-prometheus-procfs.spec
index 4cbc285..c9d57b3 100644
--- a/golang-github-prometheus-procfs.spec
+++ b/golang-github-prometheus-procfs.spec
@@ -1,172 +1,60 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 1
-# Generate unit-test rpm
-%global with_unit_test 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global provider github
-%global provider_tld com
-%global project prometheus
-%global repo procfs
-# https://github.com/prometheus/procfs
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit a1dba9ce8baed984a2495b658c82687f8157b98f
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.21.git%{shortcommit}%{?dist}
-Summary: Functions to retrieve system, kernel and process metrics from the /proc fs
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+%bcond_without check
+%global goipath github.com/prometheus/procfs
+%global commit fe93d378a6b03758a2c1b65e86cf630bf78681c0
-%description
-%{summary}
+Version: 0
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%global common_description %{expand:
+Procfs provides functions to retrieve system, kernel and process metrics from
+the pseudo-filesystem proc.}
-%if 0%{?with_check}
-%endif
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/xfs) = %{version}-%{release}
-
-%description devel
-%{summary}
+%gometa
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+Name: %{goname}
+Release: 0.22%{?dist}
+Summary: Retrieve system, kernel and process metrics from proc
+License: ASL 2.0
+URL: %{gourl}
+Source: %{gosource}
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+%description
+%{common_description}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
-%description unit-test
-%{summary}
+%description devel
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+This package contains the source code needed for building packages that import
+the %{goipath} Go namespace.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup -q
+rm -rf vendor
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-for file in $(find ./fixtures/ -iname "*" -not -type d); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
+%if %{with check}
+ # Tests require that fixtures are extracted
+ ./ttar -x -f fixtures.ttar
+ ./ttar -C sysfs -x -f sysfs/fixtures.ttar
+ %gochecks
%endif
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
-
-%{!?_licensedir:%global license %doc}
-
-%if 0%{?with_devel}
%files devel -f devel.file-list
-%license LICENSE
-%doc *.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc *.md
-%endif
+%license LICENSE NOTICE
+%doc CONTRIBUTING.md MAINTAINERS.md README.md
%changelog
+* Fri May 25 2018 Paul Gier <pgier(a)redhat.com> - 0-0.22.20180525gita6e9df8
+- Update to new snapshot a6e9df898b1336106c743392c48ee0b71f5c4efa
+- Update spec file to new format
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.21.gita1dba9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5 years, 11 months
Architecture specific change in rpms/golang-github-prometheus-procfs.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-prometheus-procfs.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-prometheus-procfs.g....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit be313321dbc525680bd7e9c417cfd2f6bb4ac51e
Author: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Fri Jun 1 17:26:06 2018 +0200
Upload tarball with commit
diff --git a/.gitignore b/.gitignore
index b755cad..0eb9e9c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/procfs-a1dba9c.tar.gz
+/procfs-fe93d378a6b03758a2c1b65e86cf630bf78681c0.tar.gz
diff --git a/sources b/sources
index 9e61d63..3d98361 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (procfs-a1dba9c.tar.gz) = 55993efecd85d2efdfbac030731dc0f4174a76625a66edbea57e0358591b8fd998270961c6801eec6e3cf8fc1d622e5aef1b3d4867258b177359dc353f0d0fbd
+SHA512 (procfs-fe93d378a6b03758a2c1b65e86cf630bf78681c0.tar.gz) = efbaf310e22d80e11949751f8d01b0b944aa1dffd21e2bc30c6304d60b97f4b626600690237a88182975bc439483c059596e6c24d95b08dcfcde7bb72cc0fff4
commit e1c9fccabc9c57086d0b8c652bd0f3a93cd4c4c9
Author: Paul Gier <pgier(a)redhat.com>
Date: Tue May 29 11:36:51 2018 -0500
Update to latest snapshot and update to current golang standards
diff --git a/golang-github-prometheus-procfs.spec b/golang-github-prometheus-procfs.spec
index 4cbc285..c9d57b3 100644
--- a/golang-github-prometheus-procfs.spec
+++ b/golang-github-prometheus-procfs.spec
@@ -1,172 +1,60 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 1
-# Generate unit-test rpm
-%global with_unit_test 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global provider github
-%global provider_tld com
-%global project prometheus
-%global repo procfs
-# https://github.com/prometheus/procfs
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit a1dba9ce8baed984a2495b658c82687f8157b98f
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.21.git%{shortcommit}%{?dist}
-Summary: Functions to retrieve system, kernel and process metrics from the /proc fs
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+%bcond_without check
+%global goipath github.com/prometheus/procfs
+%global commit fe93d378a6b03758a2c1b65e86cf630bf78681c0
-%description
-%{summary}
+Version: 0
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%global common_description %{expand:
+Procfs provides functions to retrieve system, kernel and process metrics from
+the pseudo-filesystem proc.}
-%if 0%{?with_check}
-%endif
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/xfs) = %{version}-%{release}
-
-%description devel
-%{summary}
+%gometa
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+Name: %{goname}
+Release: 0.22%{?dist}
+Summary: Retrieve system, kernel and process metrics from proc
+License: ASL 2.0
+URL: %{gourl}
+Source: %{gosource}
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+%description
+%{common_description}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
-%description unit-test
-%{summary}
+%description devel
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+This package contains the source code needed for building packages that import
+the %{goipath} Go namespace.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup -q
+rm -rf vendor
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-for file in $(find ./fixtures/ -iname "*" -not -type d); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
+%if %{with check}
+ # Tests require that fixtures are extracted
+ ./ttar -x -f fixtures.ttar
+ ./ttar -C sysfs -x -f sysfs/fixtures.ttar
+ %gochecks
%endif
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
-
-%{!?_licensedir:%global license %doc}
-
-%if 0%{?with_devel}
%files devel -f devel.file-list
-%license LICENSE
-%doc *.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc *.md
-%endif
+%license LICENSE NOTICE
+%doc CONTRIBUTING.md MAINTAINERS.md README.md
%changelog
+* Fri May 25 2018 Paul Gier <pgier(a)redhat.com> - 0-0.22.20180525gita6e9df8
+- Update to new snapshot a6e9df898b1336106c743392c48ee0b71f5c4efa
+- Update spec file to new format
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.21.gita1dba9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
commit 9e29f17f872b7731222e3fcc58b765bcf2c55756
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Wed Feb 7 14:48:29 2018 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/golang-github-prometheus-procfs.spec b/golang-github-prometheus-procfs.spec
index 16f606e..4cbc285 100644
--- a/golang-github-prometheus-procfs.spec
+++ b/golang-github-prometheus-procfs.spec
@@ -41,7 +41,7 @@
Name: golang-%{provider}-%{project}-%{repo}
Version: 0
-Release: 0.20.git%{shortcommit}%{?dist}
+Release: 0.21.git%{shortcommit}%{?dist}
Summary: Functions to retrieve system, kernel and process metrics from the /proc fs
License: ASL 2.0
URL: https://%{provider_prefix}
@@ -167,6 +167,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif
%changelog
+* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.21.gita1dba9c
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
* Fri Sep 22 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.20.gita1dba9c
- Bump to upstream a1dba9ce8baed984a2495b658c82687f8157b98f
related: #1326057
5 years, 11 months
Architecture specific change in rpms/golang-github-prometheus-procfs.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-prometheus-procfs.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-prometheus-procfs.g....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
Thanks.
Full change:
============
commit e1c9fccabc9c57086d0b8c652bd0f3a93cd4c4c9
Author: Paul Gier <pgier(a)redhat.com>
Date: Tue May 29 11:36:51 2018 -0500
Update to latest snapshot and update to current golang standards
diff --git a/golang-github-prometheus-procfs.spec b/golang-github-prometheus-procfs.spec
index 4cbc285..c9d57b3 100644
--- a/golang-github-prometheus-procfs.spec
+++ b/golang-github-prometheus-procfs.spec
@@ -1,172 +1,60 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 1
-# Generate unit-test rpm
-%global with_unit_test 1
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global provider github
-%global provider_tld com
-%global project prometheus
-%global repo procfs
-# https://github.com/prometheus/procfs
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit a1dba9ce8baed984a2495b658c82687f8157b98f
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.21.git%{shortcommit}%{?dist}
-Summary: Functions to retrieve system, kernel and process metrics from the /proc fs
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
+%bcond_without check
+%global goipath github.com/prometheus/procfs
+%global commit fe93d378a6b03758a2c1b65e86cf630bf78681c0
-%description
-%{summary}
+Version: 0
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
+%global common_description %{expand:
+Procfs provides functions to retrieve system, kernel and process metrics from
+the pseudo-filesystem proc.}
-%if 0%{?with_check}
-%endif
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-Provides: golang(%{import_path}/xfs) = %{version}-%{release}
-
-%description devel
-%{summary}
+%gometa
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+Name: %{goname}
+Release: 0.22%{?dist}
+Summary: Retrieve system, kernel and process metrics from proc
+License: ASL 2.0
+URL: %{gourl}
+Source: %{gosource}
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+%description
+%{common_description}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
-%description unit-test
-%{summary}
+%description devel
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+This package contains the source code needed for building packages that import
+the %{goipath} Go namespace.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup -q
+rm -rf vendor
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-for file in $(find ./fixtures/ -iname "*" -not -type d); do
- echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
-
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
+%if %{with check}
+ # Tests require that fixtures are extracted
+ ./ttar -x -f fixtures.ttar
+ ./ttar -C sysfs -x -f sysfs/fixtures.ttar
+ %gochecks
%endif
-%if ! 0%{?gotest:1}
-%global gotest go test
-%endif
-
-%gotest %{import_path}
-%endif
-
-%{!?_licensedir:%global license %doc}
-
-%if 0%{?with_devel}
%files devel -f devel.file-list
-%license LICENSE
-%doc *.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
-
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc *.md
-%endif
+%license LICENSE NOTICE
+%doc CONTRIBUTING.md MAINTAINERS.md README.md
%changelog
+* Fri May 25 2018 Paul Gier <pgier(a)redhat.com> - 0-0.22.20180525gita6e9df8
+- Update to new snapshot a6e9df898b1336106c743392c48ee0b71f5c4efa
+- Update spec file to new format
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.21.gita1dba9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5 years, 11 months
Architecture specific change in rpms/golang-github-prometheus-client_model.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-prometheus-client_model.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-prometheus-client_m....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 1ba08a088bd49f9e970818c4509283b83399dd4e
Author: Paul Gier <pgier(a)redhat.com>
Date: Fri May 25 11:19:29 2018 -0500
Update to latest snapshot version 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
Update spec to current Go packaging standards
diff --git a/.gitignore b/.gitignore
index 3457052..a99c1cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/client_model-6f38060.tar.gz
+/client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c.tar.gz
diff --git a/golang-github-prometheus-client_model.spec b/golang-github-prometheus-client_model.spec
index 5aaf164..96eb8d7 100644
--- a/golang-github-prometheus-client_model.spec
+++ b/golang-github-prometheus-client_model.spec
@@ -1,162 +1,58 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 0
-# Generate unit-test rpm
-%global with_unit_test 0
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global provider github
-%global provider_tld com
-%global project prometheus
-%global repo client_model
-# https://github.com/prometheus/client_model
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 6f3806018612930941127f2a7c6c453ba2c527d2
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.13.git%{shortcommit}%{?dist}
-Summary: Data model artifacts for Prometheus
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%description
-%{summary}
+%bcond_without check
+%global goipath github.com/prometheus/client_model
+%global commit 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check}
-BuildRequires: golang(github.com/golang/protobuf/proto)
-%endif
+Version: 0
-Requires: golang(github.com/golang/protobuf/proto)
+%global common_description %{expand:
+Data model artifacts for Prometheus.}
-Provides: golang(%{import_path}/go) = %{version}-%{release}
+%gometa
-%description devel
-%{summary}
+Name: %{goname}
+Release: 0.14%{?dist}
+Summary: Data model artifacts for Prometheus
+License: ASL 2.0
+URL: %{gourl}
+Source: %{gosource}
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+BuildRequires: golang(github.com/golang/protobuf/proto)
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+%description
+%{common_description}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
-%description unit-test
-%{summary}
+%description devel
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+This package contains the source code needed for building packages that import
+the %{goipath} Go namespace.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup -q
+rm -rf vendor
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-# No dependency directories so far
-
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
+%if %{with check}
+ %gochecks
%endif
-%endif
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-%if 0%{?with_devel}
%files devel -f devel.file-list
-%license LICENSE
-%doc *.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
-%endif
-
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc *.md
-%endif
+%license LICENSE NOTICE
+%doc CONTRIBUTING.md MAINTAINERS.md README.md
%changelog
+* Fri May 25 2018 Paul Gier <pgier(a)redhat.com> - 0-0.14.20180525git99fa1f4
+- Update to latest snapshot version 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
+- Update spec to current Go packaging standards
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.13.git6f38060
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources
index db0737e..92d01f5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (client_model-6f38060.tar.gz) = 5991a5cdb1f1a5f6d67d325e4db37cb8b6994909bbebefdd454a4e42b08271a40b163b56191b45b8c27e5c3e6cfe430354ee13bb38643041e4a17792d59d96bf
+SHA512 (client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c.tar.gz) = 99bc72ca0887df4c7ab5a006af9c59afdc1281fe6d6d17f2897428a06da80d63d6ccd476deacb933cb208357500f14a7b96e99b9c5a7582e65a7aae87aaf2c50
5 years, 11 months
Architecture specific change in rpms/golang-github-prometheus-client_model.git
by githook-noreply@fedoraproject.org
The package rpms/golang-github-prometheus-client_model.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-github-prometheus-client_m....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit 1ba08a088bd49f9e970818c4509283b83399dd4e
Author: Paul Gier <pgier(a)redhat.com>
Date: Fri May 25 11:19:29 2018 -0500
Update to latest snapshot version 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
Update spec to current Go packaging standards
diff --git a/.gitignore b/.gitignore
index 3457052..a99c1cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/client_model-6f38060.tar.gz
+/client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c.tar.gz
diff --git a/golang-github-prometheus-client_model.spec b/golang-github-prometheus-client_model.spec
index 5aaf164..96eb8d7 100644
--- a/golang-github-prometheus-client_model.spec
+++ b/golang-github-prometheus-client_model.spec
@@ -1,162 +1,58 @@
-# If any of the following macros should be set otherwise,
-# you can wrap any of them with the following conditions:
-# - %%if 0%%{centos} == 7
-# - %%if 0%%{?rhel} == 7
-# - %%if 0%%{?fedora} == 23
-# Or just test for particular distribution:
-# - %%if 0%%{centos}
-# - %%if 0%%{?rhel}
-# - %%if 0%%{?fedora}
-#
-# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
-# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
-# (Don't forget to replace double percentage symbol with single one in order to apply a condition)
-
-# Generate devel rpm
-%global with_devel 1
-# Build project from bundled dependencies
-%global with_bundled 0
-# Build with debug info rpm
-%global with_debug 0
-# Run tests in check section
-%global with_check 0
-# Generate unit-test rpm
-%global with_unit_test 0
-
-%if 0%{?with_debug}
-%global _dwz_low_mem_die_limit 0
-%else
-%global debug_package %{nil}
-%endif
-
-%global provider github
-%global provider_tld com
-%global project prometheus
-%global repo client_model
-# https://github.com/prometheus/client_model
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
-%global commit 6f3806018612930941127f2a7c6c453ba2c527d2
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 0
-Release: 0.13.git%{shortcommit}%{?dist}
-Summary: Data model artifacts for Prometheus
-License: ASL 2.0
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
-
-# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
-# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
-BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
-
-%description
-%{summary}
+%bcond_without check
+%global goipath github.com/prometheus/client_model
+%global commit 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
-%if 0%{?with_devel}
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-
-%if 0%{?with_check}
-BuildRequires: golang(github.com/golang/protobuf/proto)
-%endif
+Version: 0
-Requires: golang(github.com/golang/protobuf/proto)
+%global common_description %{expand:
+Data model artifacts for Prometheus.}
-Provides: golang(%{import_path}/go) = %{version}-%{release}
+%gometa
-%description devel
-%{summary}
+Name: %{goname}
+Release: 0.14%{?dist}
+Summary: Data model artifacts for Prometheus
+License: ASL 2.0
+URL: %{gourl}
+Source: %{gosource}
-This package contains library source intended for
-building other packages which use import path with
-%{import_path} prefix.
-%endif
+BuildRequires: golang(github.com/golang/protobuf/proto)
-%if 0%{?with_unit_test}
-%package unit-test
-Summary: Unit tests for %{name} package
-%if 0%{?with_check}
-#Here comes all BuildRequires: PACKAGE the unit tests
-#in %%check section need for running
-%endif
+%description
+%{common_description}
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
+%package devel
+Summary: %{summary}
+BuildArch: noarch
-%description unit-test
-%{summary}
+%description devel
+%{common_description}
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
+This package contains the source code needed for building packages that import
+the %{goipath} Go namespace.
%prep
-%setup -q -n %{repo}-%{commit}
-
-%build
+%gosetup -q
+rm -rf vendor
%install
-# source codes for building projects
-%if 0%{?with_devel}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *.go but no *_test.go files and generate devel.file-list
-for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-done
-%endif
-
-# testing files for this project
-%if 0%{?with_unit_test}
-install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
-# find all *_test.go files and generate unit-test.file-list
-for file in $(find . -iname "*_test.go"); do
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
-done
-%endif
+%goinstall
%check
-%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
-%if ! 0%{?with_bundled}
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%else
-# No dependency directories so far
-
-export GOPATH=%{buildroot}/%{gopath}:%{gopath}
-%endif
-
-%if ! 0%{?gotest:1}
-%global gotest go test
+%if %{with check}
+ %gochecks
%endif
-%endif
-
-#define license tag if not already defined
-%{!?_licensedir:%global license %doc}
-
-%if 0%{?with_devel}
%files devel -f devel.file-list
-%license LICENSE
-%doc *.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
-%endif
-
-%if 0%{?with_unit_test}
-%files unit-test -f unit-test.file-list
-%license LICENSE
-%doc *.md
-%endif
+%license LICENSE NOTICE
+%doc CONTRIBUTING.md MAINTAINERS.md README.md
%changelog
+* Fri May 25 2018 Paul Gier <pgier(a)redhat.com> - 0-0.14.20180525git99fa1f4
+- Update to latest snapshot version 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
+- Update spec to current Go packaging standards
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.13.git6f38060
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
diff --git a/sources b/sources
index db0737e..92d01f5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (client_model-6f38060.tar.gz) = 5991a5cdb1f1a5f6d67d325e4db37cb8b6994909bbebefdd454a4e42b08271a40b163b56191b45b8c27e5c3e6cfe430354ee13bb38643041e4a17792d59d96bf
+SHA512 (client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c.tar.gz) = 99bc72ca0887df4c7ab5a006af9c59afdc1281fe6d6d17f2897428a06da80d63d6ccd476deacb933cb208357500f14a7b96e99b9c5a7582e65a7aae87aaf2c50
commit 37b492f03066055d4fc121edf3ed258a905478a9
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Wed Feb 7 14:48:06 2018 +0000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/golang-github-prometheus-client_model.spec b/golang-github-prometheus-client_model.spec
index 950a245..5aaf164 100644
--- a/golang-github-prometheus-client_model.spec
+++ b/golang-github-prometheus-client_model.spec
@@ -41,7 +41,7 @@
Name: golang-%{provider}-%{project}-%{repo}
Version: 0
-Release: 0.12.git%{shortcommit}%{?dist}
+Release: 0.13.git%{shortcommit}%{?dist}
Summary: Data model artifacts for Prometheus
License: ASL 2.0
URL: https://%{provider_prefix}
@@ -157,6 +157,9 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%endif
%changelog
+* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0-0.13.git6f38060
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
* Fri Sep 22 2017 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.12.git6f38060
- Bump to upstream 6f3806018612930941127f2a7c6c453ba2c527d2
related: #1250496
5 years, 11 months
Architecture specific change in rpms/nss.git
by githook-noreply@fedoraproject.org
The package rpms/nss.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/nss.git/commit/?id=abfbe95c8da92f....
Change:
+%ifarch s390x aarch64
Thanks.
Full change:
============
commit abfbe95c8da92f11de5aecb055a13b059241462b
Author: Daiki Ueno <dueno(a)redhat.com>
Date: Fri Jun 1 17:13:57 2018 +0200
Temporarily disable AlertBeforeServerHello test on s390x and aarch64
diff --git a/nss.spec b/nss.spec
index 840076c..1af1417 100644
--- a/nss.spec
+++ b/nss.spec
@@ -366,6 +366,11 @@ export USE_64
%endif
%endif
+# This test currently fails intermittently on those archtectures
+%ifarch s390x aarch64
+export GTESTFILTER='-GenericDatagram/TlsConnectGeneric.AlertBeforeServerHello'
+%endif
+
export NSS_BLTEST_NOT_AVAILABLE=1
# needed for the fips mangling test
@@ -736,6 +741,7 @@ done
%changelog
* Mon May 28 2018 Daiki Ueno <dueno(a)redhat.com> - 3.37.1-2
- Update to NSS 3.37.1
+- Temporarily disable AlertBeforeServerHello test on s390x and aarch64
* Wed May 02 2018 Kai Engert <kaie(a)redhat.com> - 3.36.1-3
- Upstream patch to keep nicknames stable on repeated certificate
5 years, 11 months
Architecture specific change in rpms/nodejs-compare-versions.git
by githook-noreply@fedoraproject.org
The package rpms/nodejs-compare-versions.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/nodejs-compare-versions.git/commi....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit df98ecffa91e3562f164997ebe0cfb246b74294b
Author: Jared Smith <jsmith(a)fedoraproject.org>
Date: Fri Jun 1 11:11:30 2018 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..486c767
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/compare-versions-3.2.1.tgz
diff --git a/README.md b/README.md
deleted file mode 100644
index 03d9114..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# nodejs-compare-versions
-
-'Compare semver version strings to find greater, equal or lesser'
\ No newline at end of file
diff --git a/nodejs-compare-versions.spec b/nodejs-compare-versions.spec
new file mode 100644
index 0000000..2b0124f
--- /dev/null
+++ b/nodejs-compare-versions.spec
@@ -0,0 +1,59 @@
+%{?nodejs_find_provides_and_requires}
+
+%global packagename compare-versions
+%global enable_tests 1
+
+Name: nodejs-compare-versions
+Version: 3.2.1
+Release: 1%{?dist}
+Summary: Compare semver version strings to find greater, equal or lesser
+
+License: MIT
+URL: https://github.com/omichelsen/compare-versions.git
+Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
+
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: mocha
+%endif
+
+%description
+Compare semver version strings to find greater, equal or lesser.
+
+
+%prep
+%autosetup -n package
+
+
+%build
+# nothing to do
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
+cp -pr package.json *.js \
+ %{buildroot}%{nodejs_sitelib}/%{packagename}
+
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+%{__nodejs} -e 'require("./")'
+%if 0%{?enable_tests}
+NODE_ENV=test %{_bindir}/mocha -R spec
+%else
+%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
+%endif
+
+%files
+%doc *.md
+%license LICENSE
+%{nodejs_sitelib}/%{packagename}
+
+%changelog
+* Thu May 31 2018 Jared K. Smith <jsmith(a)fedoraproject.org> - 3.2.1-1
+- Initial packaging
diff --git a/sources b/sources
new file mode 100644
index 0000000..446bd07
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (compare-versions-3.2.1.tgz) = db2da71dca29306fcd03293abd65e52ecf3a5de33db229388e6c75b4a220ccc8bdfd14367a8ef9f111a9c503b712b8a11e68344654084cfaa0cfbdf2eaceeab8
5 years, 11 months