[notify-python] Add tests to package as API examples

Paul W. Frields pfrields at fedoraproject.org
Wed Dec 22 21:35:18 UTC 2010


commit acae4289de947d812e7fa961e0274c5d2a719580
Author: Paul W. Frields <stickster at gmail.com>
Date:   Wed Dec 22 16:34:13 2010 -0500

    Add tests to package as API examples
    
    The tests do not use any of the deprecated "attach*" methods and
    should be compliant with libnotify 0.7.

 notify-python.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/notify-python.spec b/notify-python.spec
index 4faeeaf..cf7f3d7 100644
--- a/notify-python.spec
+++ b/notify-python.spec
@@ -2,7 +2,7 @@
 
 Name:           notify-python
 Version:        0.1.1
-Release:        16%{?dist}
+Release:        17%{?dist}
 Summary:        Python bindings for libnotify
 
 Group:          Development/Languages
@@ -45,6 +45,8 @@ rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 # remove unnecessary la file
 rm $RPM_BUILD_ROOT/%{python_sitearch}/gtk-2.0/%{pypkgname}/_%{pypkgname}.la
+mkdir -p examples
+install -m 0644 -t examples tests/*.py tests/*.png
 
  
 %clean
@@ -52,12 +54,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc COPYING AUTHORS NEWS README ChangeLog 
+%doc COPYING AUTHORS NEWS README ChangeLog
+%doc examples
 %{python_sitearch}/gtk-2.0/%{pypkgname}
 %{_datadir}/pygtk/2.0/defs/%{pypkgname}.defs
 %{_libdir}/pkgconfig/%{name}.pc
 
 %changelog
+* Tue Dec 21 2010 Paul W. Frields <stickster at gmail.com> - 0.1.1-17
+- Add tests to package as API examples
+
 * Wed Nov  3 2010 Matthias Clasen <mclasen at redhat.com> - 0.1.1-16
 - Rebuild against libnotify 0.7.0. API change!
 


More information about the scm-commits mailing list