1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
%global import_path github.com/mattn/go-sqlite3 %global commit 25ecb14adfc7543176f7d85291ec7dba82c6f7e4 %global abbrev %(c=%{commit}; echo ${c:0:8}) Name: golang-github-mattn-go-sqlite3 Version: 1.9.0 Release: alt1.git%abbrev Summary: sqlite3 driver conforming to the built-in database/sql interface License: MIT Group: Development/Other Url: https://godoc.org/%import_path Source: %name-%version.tar Packager: Denis Pynkin <dans@altlinux.ru> ExclusiveArch: %go_arches BuildRequires(pre): rpm-build-golang BuildArch: noarch %description sqlite3 driver conforming to the built-in database/sql interface %package devel Summary: sqlite3 driver conforming to the built-in database/sql interface Group: Development/Other Requires: golang Requires: golang(golang.org/x/net/context) Provides: golang(%import_path) = %version-%release %description devel sqlite3 driver conforming to the built-in database/sql interface %prep %setup -q %build export BUILDDIR="$PWD/.build" export IMPORT_PATH="%import_path" mkdir -vp -- "$BUILDDIR/src/$IMPORT_PATH" %golang_prepare #cp -alv -- *.[ch] "$BUILDDIR/src/$IMPORT_PATH" %install export BUILDDIR="$PWD/.build" export GOPATH="%go_path" %golang_install rm -rf -- %buildroot/%go_path/src/%import_path/_example rm -rf -- %buildroot/%go_path/src/%import_path/sqlite3_test %files devel %doc README.md LICENSE %go_path/src/* %changelog * Fri Jan 11 2019 Denis Pynkin <dans@altlinux.org> 1.9.0-alt1.git25ecb14a - Update version * Fri Feb 02 2018 Denis Pynkin <dans@altlinux.org> 1.6.0-alt1.git75de30ee - Update * Sat Jul 29 2017 Denis Pynkin <dans@altlinux.org> 1.2.0-alt3.git47fc4e5e - Update * Fri Jun 30 2017 Denis Pynkin <dans@altlinux.org> 1.2.0-alt2.gitafe454f6 - Update * Fri Nov 25 2016 Denis Pynkin <dans@altlinux.org> 1.2.0-alt1 - Update * Tue Aug 23 2016 Denis Pynkin <dans@altlinux.org> 0-alt3.gitb5c99a72 - Update * Thu Mar 10 2016 Denis Pynkin <dans@altlinux.org> 0-alt2.git10876d7d - Update * Tue Feb 16 2016 Denis Pynkin <dans@altlinux.ru> 0-alt1.gitc5aee964 - Initial package