rpms/python-formencode/EL-5 python-formencode.spec,1.18,1.19

Luke Macken lmacken at fedoraproject.org
Fri Oct 16 22:28:30 UTC 2009


Author: lmacken

Update of /cvs/pkgs/rpms/python-formencode/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26704

Modified Files:
	python-formencode.spec 
Log Message:
* Sun May 31 2009 Luke Macken <lmacken at redhat.com> -1.2.2-1
- Update to 1.2.2
- Conditionalize python-elementtree requirement

* Tue Jan 06 2009 Luke Macken <lmacken at redhat.com> - 1.2-1
- Update to 1.2
- Run the test suite
- Remove formencode-translations-system.patch




Index: python-formencode.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-formencode/EL-5/python-formencode.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -r1.18 -r1.19
--- python-formencode.spec	29 Aug 2008 01:10:26 -0000	1.18
+++ python-formencode.spec	16 Oct 2009 22:28:30 -0000	1.19
@@ -4,7 +4,7 @@
 %define srcname FormEncode
 
 Name:           python-formencode
-Version:        1.0.1
+Version:        1.2.2
 Release:        2%{?dist}
 Summary:        HTML form validation, generation, and convertion package  
 
@@ -12,7 +12,6 @@ Group:          Development/Libraries
 License:        Python
 URL:            http://formencode.org/
 Source0:        http://cheeseshop.python.org/packages/source/F/%{srcname}/%{srcname}-%{version}.tar.gz
-Patch0:         formencode-translations-system.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildArch:      noarch
@@ -21,7 +20,14 @@ Requires: python-setuptools
 BuildRequires: python-devel
 BuildRequires: python-setuptools-devel
 BuildRequires: python-docutils
+BuildRequires: python-nose
 
+# ElementTree is part of python2.5 on FC7+
+# This is also needed for EL-5
+%if 0%{?fedora} <= 6
+BuildRequires:   python-elementtree
+Requires:   python-elementtree
+%endif
 
 %description
 FormEncode validates and converts nested structures. It allows for a 
@@ -30,7 +36,6 @@ for filling and generating forms.
 
 %prep
 %setup -q -n %{srcname}-%{version}
-%patch0 -p1 -b .locale
 
 %build
 %{__python} setup.py build
@@ -65,6 +70,8 @@ rm -rf $RPM_BUILD_ROOT%{python_sitelib}/
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%check
+PYTHONPATH=$(pwd) nosetests
 
 %files -f %{srcname}.lang
 %defattr(-,root,root,-)
@@ -73,6 +80,15 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitelib}/%{srcname}-%{version}-py%{pyver}.egg-info
 
 %changelog
+* Sun May 31 2009 Luke Macken <lmacken at redhat.com> -1.2.2-1
+- Update to 1.2.2
+- Conditionalize python-elementtree requirement
+
+* Tue Jan 06 2009 Luke Macken <lmacken at redhat.com> - 1.2-1
+- Update to 1.2
+- Run the test suite
+- Remove formencode-translations-system.patch
+
 * Thu Aug 28 2008 Toshio Kuratomi <toshio at fedoraproject.org> 1.0.1-2
 - Clean up license tag
 - Fix executable in %%doc




More information about the fedora-extras-commits mailing list