From e6adffb5171e3855dced3faf299951415cf00ec2 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Apr 24 2019 21:26:22 +0000 Subject: Update to new macros Signed-off-by: Robert-André Mauchin --- diff --git a/golang-github-pkg-term.spec b/golang-github-pkg-term.spec index 9707dfb..ec9f3cb 100644 --- a/golang-github-pkg-term.spec +++ b/golang-github-pkg-term.spec @@ -1,6 +1,6 @@ -# Run tests in check section -# Tests fails on these arches -%ifarch ppc ppc64 ppc64le s390x +# Generated by go2rpm +# ENOTTY in ppc64 ppc64le s390x +%ifarch ppc64 ppc64le s390x %bcond_with check %else %bcond_without check @@ -10,61 +10,47 @@ %global goipath github.com/pkg/term %global commit aa71e9d9e942418fbb97d80895dcea70efed297c +%gometa + %global common_description %{expand: -Package term manages POSIX terminals. As POSIX terminals are connected to, or -emulate, a UART, this package also provides control over the various UART and +Package term manages POSIX terminals. As POSIX terminals are connected to, or +emulate, a UART, this package also provides control over the various UART and serial line parameters.} -%gometa +%global golicenses LICENSE +%global godocs README.md Name: %{goname} Version: 0 -Release: 0.1%{?dist} -Summary: Manages POSIX terminals -# Detected licences -# - BSD 2-clause "Simplified" License at 'LICENSE' +Release: 0.2%{?dist} +Summary: Go package to manage POSIX terminals + +# Upstream license specification: BSD-2-Clause License: BSD URL: %{gourl} Source0: %{gosource} -BuildRequires: golang(golang.org/x/sys/unix) - %description -%{summary} - - -%package devel -Summary: %{summary} -BuildArch: noarch - -%description devel -%{summary} - -This package contains library source intended for -building other packages which use import path with -%{goipath} prefix. +%{common_description} +%gopkg %prep -%forgeautosetup - +%goprep %install -%goinstall - +%gopkginstall %if %{with check} %check -%gochecks +%gocheck %endif - -%files devel -f devel.file-list -%license LICENSE -%doc README.md - +%gopkgfiles %changelog +* Wed Apr 24 23:02:52 CEST 2019 Robert-André Mauchin - 0-0.2.20190305gitaa71e9d +- Update to new macros + * Tue Mar 05 2019 Robert-André Mauchin - 0-0.1.20190305gitaa71e9d - First package for Fedora -