[python-concurrentloghandler] clean up spec a little

Dan Callaghan dcallagh at fedoraproject.org
Thu Oct 13 23:45:27 UTC 2011


commit 28aa3f7c9721564653e83ffacd4ba779ecda4038
Author: Dan Callaghan <dcallagh at redhat.com>
Date:   Tue Oct 4 12:19:10 2011 +1000

    clean up spec a little

 .gitignore                       |    2 +-
 python-concurrentloghandler.spec |   27 +++++++++++++--------------
 sources                          |    2 +-
 3 files changed, 15 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index afc1f21..f24b0a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/ConcurrentLogHandler-0.8.4.tar.bz2
+/ConcurrentLogHandler-0.8.4.tar.gz
diff --git a/python-concurrentloghandler.spec b/python-concurrentloghandler.spec
index 3c21f81..4ffa264 100644
--- a/python-concurrentloghandler.spec
+++ b/python-concurrentloghandler.spec
@@ -1,24 +1,22 @@
-# sitelib for noarch packages, sitearch for others (remove the unneeded one)
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
 
 %define modname ConcurrentLogHandler
 
 Name:           python-concurrentloghandler
 Version:        0.8.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Concurrent logging handler (drop-in replacement for RotatingFileHandler)
 
 Group:          Development/Languages
-License:        Apache Software License
-URL:            http://pypi.python.org/packages/source/C/ConcurrentLogHandler
-Source0:        %{modname}-%{version}.tar.bz2
+License:        ASL 2.0
+URL:            http://pypi.python.org/pypi/ConcurrentLogHandler/
+Source0:        http://pypi.python.org/packages/source/C/%{modname}/%{modname}-%{version}.tar.gz
 Patch0:         %modname-0.8.4-testpath.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  python-devel
-BuildRequires:  python-setuptools-devel >= 0.6c11
+BuildRequires:  python-setuptools-devel >= 0.6.11
 
 %description
 This module provides an additional log handler for Python's standard logging
@@ -33,15 +31,14 @@ write to the same log file concurrently.
 
 
 %build
-# Remove CFLAGS=... for noarch packages (unneeded)
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%{__python} setup.py build
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --install-data=%_defaultdocdir/%name
+%{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
+
 
- 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -49,10 +46,12 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %doc README LICENSE
-# For noarch packages: sitelib
 %{python_sitelib}/*
-# For arch-specific packages: sitearch
-%{python_sitearch}/*
 
 
 %changelog
+* Tue Oct 04 2011 Dan Callaghan <dcallagh at redhat.com> - 0.8.4-2
+- clean up spec a little
+
+* Tue Dec 14 2010 Bill Peck <bpeck at redhat.com> - 0.8.4-1
+- initial version
diff --git a/sources b/sources
index d9f61d2..45921a2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-41678253ba8b535c6c51794d9ba8edf0  ConcurrentLogHandler-0.8.4.tar.bz2
+6d1665c645711380d29c06a7017eed49  ConcurrentLogHandler-0.8.4.tar.gz


More information about the scm-commits mailing list