From 123d9327022ce1ed3270317345af6a591943d06f Mon Sep 17 00:00:00 2001 From: Leonardo Rossetti Date: Nov 17 2021 13:36:21 +0000 Subject: first commit --- diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3fd87d5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2021 Leonardo Rossetti + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/README.md b/README.md new file mode 100644 index 0000000..ac2bc44 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Golang Squirrel RPM + +This repository contains the required files used to package the github.com/Masterminds/squirrel project in a RPM file. + +## License + +Apache-2.0 diff --git a/golang-github-masterminds-squirrel.spec b/golang-github-masterminds-squirrel.spec new file mode 100644 index 0000000..cce3685 --- /dev/null +++ b/golang-github-masterminds-squirrel.spec @@ -0,0 +1,55 @@ +# Generated by go2rpm 1.5.0 +%bcond_without check + +# https://github.com/Masterminds/squirrel +%global goipath github.com/Masterminds/squirrel +Version: 1.5.1 + +%gometa + +%global common_description %{expand: +Fluent SQL generation for golang.} + +%global golicenses LICENSE.txt +%global godocs README.md + +Name: %{goname} +Release: 1%{?dist} +Summary: Fluent SQL generation for golang + +License: MIT +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/lann/builder) + +%if %{with check} +# Tests +BuildRequires: golang(github.com/go-sql-driver/mysql) +BuildRequires: golang(github.com/lib/pq) +BuildRequires: golang(github.com/mattn/go-sqlite3) +BuildRequires: golang(github.com/stretchr/testify/assert) +%endif + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +* Wed Nov 17 2021 Leonardo Rossetti - 1.5.1-1%{?dist} +- Initial package +