File: python-securepass.spec

package info (click to toggle)
securepass-tools 0.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, stretch
  • size: 264 kB
  • ctags: 471
  • sloc: python: 1,786; sh: 19; makefile: 17
file content (131 lines) | stat: -rw-r--r-- 3,529 bytes parent folder | download
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# For EPEL6
#%if 0%{?rhel} && 0%{?rhel} <= 7 
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
#%endif

Name:           python-securepass
Version:        0.4.5
Release:        2%{?dist}
Summary:        SecurePass Python tools

%if 0%{?suse_version}
Group: 			System Environment/Libraries
%endif

License:        GPLv2+
URL:            https://github.com/garlsecurity/securepass-tools
Source0:        https://github.com/garlsecurity/securepass-tools/archive/v%{version}/securepass-tools-v%{version}.tar.gz  
BuildArch:      noarch
BuildRequires:  python-pycurl

%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires:  python2-devel
%endif

%if 0%{?suse_version}
BuildRequires:  python-devel
%endif

%if 0%{?suse_version} <= 1110
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%endif

%if 0%{?rhel} <= 6 || 0%{?suse_version}
BuildRequires:  python-argparse
%endif

Requires:       python-pycurl
%if 0%{?rhel} <= 6 || 0%{?suse_version}
Requires:       python-argparse
%endif

%description
The tools and python libraries for accessing SecurePass platform.

It uses the SecurePass public APIs.

# Subpackage tools (the bin)
%package -n securepass-tools
Summary:    SecurePass Tools 
Requires:   python-securepass

%if 0%{?suse_version}
Group:      System Environment/Libraries
%endif

%description -n securepass-tools
The official tools for accessing SecurePass platform.

It uses the SecurePass public APIs.

%prep
%setup -qn securepass-tools-%{version}

%build
%{__python2} setup.py build

%install
%{__python2} setup.py install --skip-build --prefix=%{_prefix} --root="%{buildroot}"


%files 
%defattr(-,root,root,-)
%{!?_licensedir:%global license %doc}
%{python2_sitelib}/*
%doc README.txt README.md 

%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
%license LICENSE
%endif 

%if 0%{?suse_version}
%doc LICENSE
%endif

%files -n securepass-tools
%{!?_licensedir:%global license %doc} 
%defattr(-,root,root,-)
%{_bindir}/*
%doc README.txt README.md securepass.conf.example contrib/extract_ssh_key.sh 

%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
%license LICENSE
%endif

%if 0%{?suse_version}
%doc LICENSE
%endif


%changelog
* Wed Feb 16 2016  Giuseppe Paterno' <gpaterno@gpaterno.com> 0.4.4-2
- Fixes for SLES 11

* Tue Feb 16 2016  Giuseppe Paterno' <gpaterno@gpaterno.com> 0.4.4-1
- Reflect changes to the upstream package

* Wed Sep 16 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.4.3-4
- Fixed my own fedora-review errors

* Wed Sep 16 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.4.3-3
- Fixed the SPEC file to honor Fedora polices
- Stick to python2 until the sources are ready

* Sun Sep 13 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.4.3-2
- Package split 

* Sat Sep 12 2015 Alessio Treglia <alessio@debian.org> 0.4.3-1
- Drop optparse in favor of argparse
- Fix broken import statement in the Django module

* Fri Aug 28 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.4.1-1
- Added SSH key helper

* Tue Aug 25 2015 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.4-1
- Support for extended attributes in users and realms
- Support for privacy bit in the APIs

* Fri Nov 14 2014 Giuseppe Paterno' <gpaterno@gpaterno.com> 0.3.6-1 
- Initial RPM spec for securepass-tools