Author: zbyniu Date: Sat Jan 29 23:06:30 2011 GMT Module: packages Tag: HEAD ---- Log message: - new
---- Files affected: packages/python-pyxsd: python-pyxsd.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/python-pyxsd/python-pyxsd.spec diff -u /dev/null packages/python-pyxsd/python-pyxsd.spec:1.1 --- /dev/null Sun Jan 30 00:06:30 2011 +++ packages/python-pyxsd/python-pyxsd.spec Sun Jan 30 00:06:25 2011 @@ -0,0 +1,121 @@ +# $Revision$, $Date$ +%define module pyxsd +Summary: Python XML/Schema processing tool +Summary(pl.UTF-8): - +Name: python-%{module} +Version: 0.1 +Release: 0.1 +License: BSD +Group: Development/Languages/Python +Source0: http://pypi.python.org/packages/source/p/pyxsd/%{module}-0-1.tgz +# Source0-md5: 8f02162395a67956894efc4d1a2febda +URL: http://pyxsd.org/ +BuildRequires: python-devel +BuildRequires: rpm-pythonprov +# if py_postclean is used +BuildRequires: rpmbuild(macros) >= 1.219 +#Requires: python-libs +Requires: python-modules +#BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +pyXSD is a free, open source python program that maps xml and xsd(XML +Schema) files into python, allowing for easy schema-based validation +and transformation of xml files. + +%description -l pl.UTF-8 + +%prep +%setup -q -c -n %{module}-%{version} + +%build +# CFLAGS is only for arch packages - remove on noarch packages +export CFLAGS="%{rpmcflags}" +%{__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 README doc +%attr(755,root,root) %{_bindir}/pyXSD.py +%{py_sitescriptdir}/%{module} +%if "%{py_ver}" > "2.4" +%{py_sitescriptdir}/%{module}-*.egg-info +%endif + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <feedb...@pld-linux.org> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2011/01/29 23:06:25 zbyniu +- new + +Revision 1.17 2010/03/31 07:04:40 glen +- comment cflags + +Revision 1.16 2009/11/28 18:05:35 jajcus +- information about %{py_sitescriptdir} macro + +Revision 1.15 2009/03/29 13:11:22 glen +- .egg-info is python version specific (and sometimes setup.py), not distro line + +Revision 1.14 2009/02/16 13:11:14 lisu +- polish desc + +Revision 1.13 2009/02/03 19:05:06 wrobell +- rpm handles python dependency with 'python(abi) = py_ver', so + pyrequires_eq macro is no longer required (and it does nothing at the + moment) +- ac branch typo fixed + +Revision 1.12 2009/01/22 01:10:52 wrobell +- python 2.4 is only in AC line, let's use (kinda) agreed pld release bcond + instead of py_ver usage to not introduce more mess on HEAD + +Revision 1.11 2009/01/22 01:08:49 wrobell +- use setup specification similar to template.spec + +Revision 1.10 2008/12/27 20:07:27 matkor +- {module} macro usage suggestion. + +Revision 1.9 2008/08/06 17:23:30 glen +- CFLAGs + +Revision 1.8 2008/08/06 16:57:09 glen +- egg info is conditional + +Revision 1.7 2008/08/06 16:55:37 glen +- prefix python- + +Revision 1.6 2008/06/29 18:30:46 qboosh +- macros BR + +Revision 1.5 2008/05/23 18:52:11 glen +- .egg-info since python 2.5 + +Revision 1.4 2008-01-06 16:53:13 glen +- few macros to make any sense + +Revision 1.3 2008-01-06 16:51:20 glen +- or this? + +Revision 1.2 2008-01-06 16:49:32 glen +- egg lines + +Revision 1.1 2008-01-06 16:48:13 glen +- template for python ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit