-
Notifications
You must be signed in to change notification settings - Fork 38
/
py-radius.spec
55 lines (39 loc) · 1.32 KB
/
py-radius.spec
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
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define bname py-radius
Name: python-%{bname}
Version: 1.0.2
Release: 2%{?dist}
Summary: Python RADIUS authentication module
Group: Development/Languages
License: BSD
URL: https://github.com/btimby/py-radius
Source0: https://github.com/downloads/btimby/%{bname}/%{bname}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%if 0%{?fedora} >= 8
BuildRequires: python-setuptools-devel
%else
BuildRequires: python-setuptools
%endif
BuildArch: noarch
%description
This module provides basic RADIUS client capabilities, allowing your
Python code to authenticate against any RFC2138 compliant RADIUS server.
%prep
%setup -q -n %{bname}-%{version}
%build
echo -n
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --root %{buildroot}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
#%doc LICENSE.txt README.md RFC2138
%{python_sitelib}/radius.py*
%{python_sitelib}/py_radius-%{version}-py2.7.egg-info
%changelog
* Fri Jan 20 2012 Ben Timby <[email protected]> 1.0.2-2
- Added bname and .egg-info
* Tue Jan 17 2012 Luiz Viana <[email protected]> 1.0.2-1
- Initial build