The package rpms/golang-github-fsnotify-fsnotify.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-fsnotify-fsnotify.g....
Change:
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
Thanks.
Full change:
============
commit f9b5dc3c0f6e9632eacce324bb71ee393f207fb1
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Fri Mar 8 21:02:30 2019 +0100
Rewrite using new Go packaging
Add alternate import path "gopkg.in/fsnotify/fsnotify.v1"
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
index 044f29b..968a23a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/v1.4.2.tar.gz
/v1.4.7.tar.gz
+/fsnotify-1.4.7.tar.gz
diff --git a/golang-github-fsnotify-fsnotify.spec b/golang-github-fsnotify-fsnotify.spec
index cfb5a14..a65da58 100644
--- a/golang-github-fsnotify-fsnotify.spec
+++ b/golang-github-fsnotify-fsnotify.spec
@@ -1,170 +1,89 @@
-# 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
-
+%bcond_without check
-%global provider github
-%global provider_tld com
-%global project fsnotify
-%global repo fsnotify
#
https://github.com/fsnotify/fsnotify
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path %{provider_prefix}
+%global goipath
github.com/fsnotify/fsnotify
+%global oldgoipath gopkg.in/fsnotify/fsnotify.v1
+%global oldgoname %gorpmname %{oldgoipath}
+Version: 1.4.7
+
+%global common_description %{expand:
+Cross-platform file system notifications for Go.}
-Name: golang-%{provider}-%{project}-%{repo}
-Version: 1.4.7
-Release: 4%{?dist}
+%gometa
+
+Name: golang-github-fsnotify-fsnotify
+Release: 5%{?dist}
Summary: Cross-platform file system notifications for Go
+# Detected licences
+# - BSD 3-clause "New" or "Revised" License at 'LICENSE'
License: BSD
-URL: https://%{provider_prefix}
-Source0: https://%{provider_prefix}/archive/v%{version}.tar.gz
-Patch0001:
https://github.com/fsnotify/fsnotify/commit/70cc4a11de4adb99aa24da1e7b178...
-
-# 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}
+URL: %{gourl}
+Source0: %{gosource}
+Patch0001:
https://github.com/fsnotify/fsnotify/commit/70cc4a11de4adb99aa24da1e7b178...
+BuildRequires:
golang(golang.org/x/sys/unix)
%description
-%{summary}.
+%{common_description}
+
-%if 0%{?with_devel}
%package devel
Summary: %{summary}
BuildArch: noarch
-%if 0%{?with_check} && ! 0%{?with_bundled}
-BuildRequires:
golang(golang.org/x/sys/unix)
-%endif
-
-Requires:
golang(golang.org/x/sys/unix)
-
-Provides: golang(%{import_path}) = %{version}-%{release}
-
%description devel
-%{summary}.
+%{common_description}
This package contains library source intended for
building other packages which use import path with
-%{import_path} prefix.
-%endif
+%{goipath} prefix.
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%package unit-test-devel
-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
-
-# test subpackage tests code from devel subpackage
-Requires: %{name}-devel = %{version}-%{release}
-%if 0%{?with_check} && ! 0%{?with_bundled}
-%endif
+%package -n compat-%{oldgoname}-devel
+Summary: %{summary}
+BuildArch: noarch
+%description -n compat-%{oldgoname}-devel
+%{common_description}
-%description unit-test-devel
-%{summary}.
+This package contains compatibility glue for code that still imports the
+%{oldgoipath} Go namespace.
-This package contains unit tests for project
-providing packages with %{import_path} prefix.
-%endif
%prep
-%setup -q -n %{repo}-%{version}
+%forgeautosetup
+
-%build
%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" -or -iname "*.s" \) \! -iname
"*_test.go") ; do
- dirprefix=$(dirname $file)
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
-
- while [ "$dirprefix" != "." ]; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
- dirprefix=$(dirname $dirprefix)
- done
-done
-%endif
+%goinstall
-# 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-devel.file-list
-for file in $(find . -iname "*_test.go") ; do
- dirprefix=$(dirname $file)
- install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
- cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
- echo "%%{gopath}/src/%%{import_path}/$file" >>
unit-test-devel.file-list
-
- while [ "$dirprefix" != "." ]; do
- echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >>
devel.file-list
- dirprefix=$(dirname $dirprefix)
- done
-done
-%endif
+install -m 0755 -vd %{buildroot}%{gopath}/src/%(dirname %{oldgoipath})
+ln -s %{gopath}/src/%{goipath} %{buildroot}%{gopath}/src/%{oldgoipath}
-%if 0%{?with_devel}
-sort -u -o devel.file-list devel.file-list
-%endif
+%if %{with check}
%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
-%endif
-
-%gotest %{import_path}
+%gochecks
%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 CONTRIBUTING.md AUTHORS CHANGELOG.md README.md
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%endif
+%doc README.md CONTRIBUTING.md CHANGELOG.md AUTHORS
+
+
+%files -n compat-%{oldgoname}-devel
+%dir %{gopath}/src/%(dirname %{oldgoipath})
+%{gopath}/src/%{oldgoipath}
-%if 0%{?with_unit_test} && 0%{?with_devel}
-%files unit-test-devel -f unit-test-devel.file-list
-%license LICENSE
-%doc CONTRIBUTING.md AUTHORS CHANGELOG.md README.md
-%endif
%changelog
+* Fri Mar 08 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 1.4.7-5
+- Rewrite using new Go packaging
+- Add alternate import path "gopkg.in/fsnotify/fsnotify.v1"
+
* Tue Feb 05 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 1.4.7-4
- Backport patch to fix TestInotifyOverflow
@@ -189,3 +108,5 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
* Sun Feb 26 2017 Frederico Lima <fredlima(a)fedoraproject.org> - 1.4.2-1
- First package for Fedora
+
+
diff --git a/sources b/sources
index fafda36..c3b5b37 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (v1.4.7.tar.gz) =
840943043c49c837641f04b976f2ba610fc03bd31030ca6442744d51fa9241da1905730ea11466e249a5bd37437f1e2a433a012a64ce872a1562c941bd5bfcbf
+SHA512 (fsnotify-1.4.7.tar.gz) =
840943043c49c837641f04b976f2ba610fc03bd31030ca6442744d51fa9241da1905730ea11466e249a5bd37437f1e2a433a012a64ce872a1562c941bd5bfcbf