devel/python-amara python-amara.spec,1.2,1.3

Ignacio Vazquez-Abrams (ivazquez) fedora-extras-commits at redhat.com
Wed Mar 16 23:42:01 UTC 2005


Author: ivazquez

Update of /cvs/extras/devel/python-amara
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19161/python-amara

Modified Files:
	python-amara.spec 
Log Message:
More review fixes


Index: python-amara.spec
===================================================================
RCS file: /cvs/extras/devel/python-amara/python-amara.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- python-amara.spec	16 Mar 2005 18:54:45 -0000	1.2
+++ python-amara.spec	16 Mar 2005 23:41:59 -0000	1.3
@@ -1,8 +1,19 @@
-%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
+%{!?pyver: %define pyver %(python -c 'import sys;print(sys.version[0:3])')}
+%define mainpyver %(python -c 'import sys;print(sys.version[0:3])')
 
-Name:           python-amara
-Version:        0.9.4
-Release:        2
+%define version 0.9.4
+
+%if "%{pyver}" == "%{mainpyver}"
+%define name python-amara
+%define prov python%{pyver}-amara = %{version} python-amara = %{version}
+%else
+%define name python%{pyver}-amara
+%define prov python%{pyver}-Amara = %{version}
+%endif
+
+Name:           %name
+Version:        %version
+Release:        3
 Summary:        A collection of Pythonic tools for XML data binding
 
 Group:          Development/Libraries
@@ -11,29 +22,33 @@
 Source0:        http://uche.ogbuji.net/uche.ogbuji.net/tech/4Suite/amara/Amara-0.9.4.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  python
-Requires:       4Suite >= 1.0
-Provides:       python-Amara = %{version} Amara = %{version}
+BuildRequires:  python-abi = %{pyver}
+Requires:       python-abi = %{pyver} 4Suite >= 1.0
+Provides:       %{prov}
 BuildArch:      noarch
 
 %description
-Amara is a collection of Pythonic tools for XML data binding. Not just tools that happen to be written in Python, but tools built from the ground up to use Python idioms and take advantage of the many advantages of Python over other programming languages.
-
-Amara builds on 4Suite, but whereas 4Suite focuses more on literal implementation of XML standards in Python, Amara adds a much more Pythonic face to these capabilities.
+Amara is a collection of Pythonic tools for XML data binding. Not just tools
+that happen to be written in Python, but tools built from the ground up to use
+Python idioms and take advantage of the many advantages of Python over other
+programming languages.
+
+Amara builds on 4Suite, but whereas 4Suite focuses more on literal
+implementation of XML standards in Python, Amara adds a much more Pythonic face
+to these capabilities.
 
-Amara provides tools you can trust to conform with XML standards without losing the familiar Python feel.
+Amara provides tools you can trust to conform with XML standards without losing
+the familiar Python feel.
 
 %prep
-%setup -q -c Amara-0.9.4
+%setup -q -n Amara-0.9.4
 
 %build
-cd Amara-0.9.4
 python setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-cd Amara-0.9.4
-python setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
+python%{pyver} setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -42,10 +57,15 @@
 %defattr(-,root,root,-)
 %{_bindir}/flextyper.py
 %{_bindir}/scimitar.py
-%{_libdir}/python%{pyver}/site-packages/amara/*
-%doc Amara-0.9.4/CHANGES Amara-0.9.4/COPYING Amara-0.9.4/demo Amara-0.9.4/manual.html Amara-0.9.4/README Amara-0.9.4/TODO
+%{_libdir}/python%{pyver}/site-packages/amara
+%doc CHANGES COPYING demo manual.html README TODO
 
 %changelog
+* Wed Mar 16 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 0.9.4-3
+- Better %pyver and BR/Requires handling
+- Broke %description at 80 columns
+- Fixed file ownership
+
 * Wed Mar 16 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 0.9.4-2
 - Removed explicit Requires
 




More information about the fedora-extras-commits mailing list