packages: python-PyXB/python-PyXB.spec (NEW) - initial PLD release - please...

pawelz pawelz at pld-linux.org
Tue May 25 10:00:42 CEST 2010


Author: pawelz                       Date: Tue May 25 08:00:42 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial PLD release
- please review, this is the first python library I packaged

---- Files affected:
packages/python-PyXB:
   python-PyXB.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-PyXB/python-PyXB.spec
diff -u /dev/null packages/python-PyXB/python-PyXB.spec:1.1
--- /dev/null	Tue May 25 10:00:42 2010
+++ packages/python-PyXB/python-PyXB.spec	Tue May 25 10:00:37 2010
@@ -0,0 +1,81 @@
+# $Revision$, $Date$
+%define 	module	PyXB
+Summary:	Python XML Schema Bindings
+Name:		python-%{module}
+Version:	1.1.1
+Release:	0.1
+License:	Apache v. 2.0
+Group:		Development/Languages/Python
+Source0:	http://downloads.sourceforge.net/project/pyxb/pyxb/1.1.1%20%28Beta%29/PyXB-base-%{version}.tar.gz
+# Source0-md5:	90e38bf24693478f664c8fdf78d92f05
+URL:		http://pyxb.sourceforge.net
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PyXB (“pixbee”) is a pure Python package that generates Python source
+code for classes that correspond to data structures defined by
+XMLSchema. In concept it is similar to JAXB for Java and CodeSynthesis
+XSD for C++.
+
+%package -n PyXB
+Summary:	Python XML Schema Bindings tools
+Group:		Development/Languages/Python
+Requires:	%{name} = %{version}-%{release}
+
+%description -n PyXB
+Tools that generate Python source code for classes that correspond to
+data structures defined in XMLSchema.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NOTICE README.txt doc/*
+%{py_sitescriptdir}/pyxb/*.py[co]
+%{py_sitescriptdir}/pyxb/binding/*.py[co]
+%{py_sitescriptdir}/pyxb/bundles/*.py[co]
+%{py_sitescriptdir}/pyxb/namespace/*.py[co]
+%{py_sitescriptdir}/pyxb/utils/*.py[co]
+%{py_sitescriptdir}/pyxb/xmlschema/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
+
+%files -n PyXB
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pyxbdump
+%attr(755,root,root) %{_bindir}/pyxbgen
+%attr(755,root,root) %{_bindir}/pyxbwsdl
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/05/25 08:00:37  pawelz
+- initial PLD release
+- please review, this is the first python library I packaged
+
================================================================


More information about the pld-cvs-commit mailing list