## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %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 chzyer %global repo readline # https://github.com/chzyer/readline %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %global import_path gopkg.in/readline.v1 %global commit 2972be24d48e78746da79ba8e24e8b488c9880de %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global oldgoipath github.com/chzyer/readline %global oldgoname golang-github-chzyer-readline Name: golang-gopkg-readline-1 Version: 1.4 Release: %autorelease Summary: Pure Go implementation of GNU Readline-like library License: MIT URL: https://%{provider_prefix} Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{commit}.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 Readline is a pure Go implementation of GNU Readline like library. %package devel Summary: %{summary} BuildArch: noarch Provides: golang(%{import_path}) = %{version}-%{release} Provides: golang(%{import_path}/runes) = %{version}-%{release} Provides: golang-ipath(gopkg.in/readline.v1) = %{version}-%{release} %description devel %{summary} This package contains library source intended for building other packages which use import path with %{import_path} prefix. %package -n compat-%{oldgoname}-devel Summary: %{summary} BuildArch: noarch Provides: golang(%{oldgoipath}) = %{version}-%{release} Provides: golang-ipath(github.com/chzyer/readline) = %{version}-%{release} %description -n compat-%{oldgoname}-devel %{summary} This package contains library source intended for building other packages which use import path with %{oldgoipath} prefix. %prep %setup -q -n %{repo}-%{commit} %build %install # source codes for building projects install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list # find all *.s and generate devel.file-list for file in $(find . -iname "*.s") ; 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 # find all *.c and generate devel.file-list for file in $(find . -iname "*.c") ; 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 # 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 sort -u -o devel.file-list devel.file-list install -m 0755 -vd %{buildroot}%{gopath}/src/%(dirname %{oldgoipath}) ln -s %{gopath}/src/%{goipath} %{buildroot}%{gopath}/src/%{oldgoipath} %files devel -f devel.file-list %license LICENSE %doc example CHANGELOG.md README.md %files -n compat-%{oldgoname}-devel %dir %{gopath}/src/%(dirname %{oldgoipath}) %{gopath}/src/%{oldgoipath} %changelog ## START: Generated by rpmautospec * Wed Mar 06 2024 Alejandro Sáez - 1.4-3 - Build for EPEL9 * Thu Jan 7 18:47:11 CET 2021 Robert-André Mauchin - 1.4-12.20180628git2972be2.1 - Build for EPEL8 - Close: rhbz#1849191 * Mon Jul 27 2020 Fedora Release Engineering - 1.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 23 10:40:13 CEST 2019 Robert-André Mauchin - 1.4-9.20180628git2972be2 - Update to new macros * Fri Feb 01 2019 Fedora Release Engineering - 1.4-8.git2972be2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 23 2018 Nicolas Mailhot - 1.4-7.git2972be2 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ * Fri Jul 13 2018 Fedora Release Engineering - 1.4-6.git2972be2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Robert-André Mauchin - 1.4-5.20180628git2972be2 - Bump to commit 2972be24d48e78746da79ba8e24e8b488c9880de * Mon Apr 09 2018 Robert-André Mauchin - 1.4-4.20180409gitf6d7a1f - Upstream GIT revision f6d7a1f * Fri Mar 09 2018 Robert-André Mauchin - 1.4-3 - Update with the new Go packaging * Wed Feb 07 2018 Fedora Release Engineering - 1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Sep 29 2017 Robert-André Mauchin - 1.4-1 - First package for Fedora ## END: Generated by rpmautospec