Author: glen                         Date: Fri Feb 11 06:49:13 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package examples

---- Files affected:
packages/python-github2:
   python-github2.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/python-github2/python-github2.spec
diff -u packages/python-github2/python-github2.spec:1.1 
packages/python-github2/python-github2.spec:1.2
--- packages/python-github2/python-github2.spec:1.1     Thu Feb 10 21:43:16 2011
+++ packages/python-github2/python-github2.spec Fri Feb 11 07:49:08 2011
@@ -3,10 +3,10 @@
 Summary:       Github API v2 library for Python
 Name:          python-%{module}
 Version:       0.2.0
-Release:       1
+Release:       2
 License:       New BSD License
 Group:         Development/Languages/Python
-Source0:       
http://pypi.python.org/packages/source/g/github2/github2-%{version}.tar.gz
+Source0:       
http://pypi.python.org/packages/source/g/github2/%{module}-%{version}.tar.gz
 # Source0-md5: 0b4e1d454b03450e818c51f4fb6fcf2c
 URL:           http://github.com/ask/python-github2
 BuildRequires: python-distribute
@@ -33,6 +33,12 @@
        --optimize=2 \
        --root=$RPM_BUILD_ROOT
 
+# tests should be ran not packaged
+rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %py_postclean
 
 %clean
@@ -44,7 +50,10 @@
 %attr(755,root,root) %{_bindir}/github_manage_collaborators
 %dir %{py_sitescriptdir}/github2
 %{py_sitescriptdir}/github2/*.py[co]
+%if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/github2-*.egg-info
+%endif
+%{_examplesdir}/%{name}-%{version}
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -52,6 +61,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2011/02/11 06:49:08  glen
+- package examples
+
 Revision 1.1  2011/02/10 20:43:16  wiget
 - initial
-
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-github2/python-github2.spec?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to