[python-pyrad/f18: 2/2] New version.
Christopher Meng
cicku at fedoraproject.org
Thu Jul 11 04:03:31 UTC 2013
commit 69051dd3a61078ff83f955c9af744318c20468bf
Author: Christopher Meng <rpm at cicku.me>
Date: Thu Jul 11 11:58:58 2013 +0800
New version.
.gitignore | 1 +
python-pyrad.spec | 57 +++++++++++++++++++++-------------------------------
sources | 1 +
3 files changed, 25 insertions(+), 34 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 13d8a46..c4b4ec3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
pyrad-1.1.tar.gz
/pyrad-1.1.tar.gz
+/pyrad-2.0.tar.gz
diff --git a/python-pyrad.spec b/python-pyrad.spec
index 05620be..e7fbb6c 100644
--- a/python-pyrad.spec
+++ b/python-pyrad.spec
@@ -1,60 +1,49 @@
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%global pkgname pyrad
-
-%global realname pyrad
-
-
-Name: python-%{realname}
-Version: 1.1
-Release: 9%{?dist}
+Name: python-pyrad
+Version: 2.0
+Release: 1%{?dist}
Summary: Python RADIUS client
-Group: Development/Languages
License: BSD
-URL: http://www.wiggy.net/code/pyrad/
-Source0: http://pypi.python.org/packages/source/p/%{realname}/%{realname}-%{version}.tar.gz
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-BuildRequires: python-setuptools-devel
+URL: https://github.com/wichert/pyrad
+Source0: http://pypi.python.org/packages/source/p/%{pkgname}/%{pkgname}-%{version}.tar.gz
+BuildRequires: python2-devel
BuildRequires: python-nose
+BuildRequires: python-setuptools
+BuildRequires: python-sphinx
Requires: python-twisted-core
+Requires: python-six
BuildArch: noarch
-
%description
-This is an implementation of a RADIUS client as described in RFC2865.
+pyrad is an implementation of a RADIUS client as described in RFC2865.
It takes care of all the details like building RADIUS packets, sending
them and decoding responses.
-
%prep
-%setup -q -n %{realname}-%{version}
+%setup -qn %{pkgname}-%{version}
chmod 644 example/acct.py example/auth.py example/server.py
-
%build
-%{__python} -c 'import setuptools; execfile("setup.py")' build
-
+%{__python} setup.py build
+pushd docs/
+make html %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
-
+%{__python} setup.py install --skip-build --root %{buildroot}
%check
-%{__python} -c 'import setuptools; execfile("setup.py")' test
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
+%{__python} setup.py test
%files
-%defattr(-,root,root,-)
-%doc CHANGES.txt LICENSE.txt README.txt example
-%{python_sitelib}/%{realname}/
-%{python_sitelib}/%{realname}-%{version}-*.egg-info/
-
+%doc CHANGES.txt LICENSE.txt README.rst example docs/.build/html/
+%{python_sitelib}/%{pkgname}/
+%{python_sitelib}/%{pkgname}-%{version}-*.egg-info/
%changelog
+* Thu Jul 11 2013 Christopher Meng <rpm at cicku.me> - 2.0-1
+- Update to 2.0 version.
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
diff --git a/sources b/sources
index a02718a..f2ff8ac 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
ab1502f8ccd7409ced757d78b0dee7df pyrad-1.1.tar.gz
+e95f2cef1a191c1c891779dff8fb0255 pyrad-2.0.tar.gz
More information about the scm-commits
mailing list