/[packages]/cauldron/golang-github-howeyc-gopass/current/SPECS/golang-github-howeyc-gopass.spec
ViewVC logotype

Annotation of /cauldron/golang-github-howeyc-gopass/current/SPECS/golang-github-howeyc-gopass.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 860068 - (hide annotations) (download)
Fri Jul 31 18:31:37 2015 UTC (9 years, 2 months ago) by joequant
File size: 1662 byte(s)
imported package golang-github-howeyc-gopass
1 joequant 860068 %global debug_package %{nil}
2     %global provider github
3     %global provider_tld com
4     %global project howeyc
5     %global repo gopass
6     # https://github.com/howeyc/gopass
7     %global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
8     %global commit 2c70fa70727c953c51695f800f25d6b44abb368e
9     %global shortcommit %(c=%{commit}; echo ${c:0:7})
10    
11     Name: golang-%{provider}-%{project}-%{repo}
12     Version: 0
13     Release: %mkrel 0.1.git%{shortcommit}
14     Summary: Getpasswd for Go
15     License: ISC
16     URL: https://%{import_path}
17     Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
18     BuildArch: noarch
19     Group: Development/Other
20    
21     %description
22     %{summary}
23    
24     %package devel
25     Summary: %{summary}
26    
27     BuildRequires: golang >= 1.2.1-3
28     BuildRequires: golang(golang.org/x/crypto/ssh/terminal)
29    
30     Requires: golang(golang.org/x/crypto/ssh/terminal)
31    
32     Provides: golang(%{import_path}) = %{version}-%{release}
33    
34     %description devel
35     %{summary}
36    
37     This package contains library source intended for
38     building other packages which use %{project}/%{repo}.
39    
40     %prep
41    
42     %setup -q -n %{repo}-%{commit}
43    
44     %build
45    
46     %install
47     install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
48     cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
49    
50     # copy directories
51     for file in ./* ; do
52     if [ -d $file ]; then
53     cp -rpav $file %{buildroot}%{gopath}/src/%{import_path}/
54     fi
55     done
56    
57     %check
58    
59    
60     %files devel
61     %if 0%{?fedora}
62     %license LICENSE.txt
63     %doc README.md
64     %else
65     %doc README.md LICENSE.txt
66     %endif
67     %dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
68     %{gopath}/src/%{import_path}
69    

  ViewVC Help
Powered by ViewVC 1.1.30