packages: python-Werkzeug/python-Werkzeug.spec (NEW), python-Jinja2/python-...
zbyniu
zbyniu at pld-linux.org
Fri Apr 6 10:41:39 CEST 2012
Author: zbyniu Date: Fri Apr 6 08:41:39 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/python-Werkzeug:
python-Werkzeug.spec (NONE -> 1.1) (NEW)
packages/python-Jinja2:
python-Jinja2.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-Werkzeug/python-Werkzeug.spec
diff -u /dev/null packages/python-Werkzeug/python-Werkzeug.spec:1.1
--- /dev/null Fri Apr 6 10:41:39 2012
+++ packages/python-Werkzeug/python-Werkzeug.spec Fri Apr 6 10:41:34 2012
@@ -0,0 +1,78 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define module Werkzeug
+Summary: The Swiss Army knife of Python web development
+#Summary(pl.UTF-8): -
+Name: python-%{module}
+Version: 0.8.3
+Release: 0.1
+License: BSD
+Group: Development/Languages/Python
+Source0: http://pypi.python.org/packages/source/W/Werkzeug/%{module}-%{version}.tar.gz
+# Source0-md5: 12aa03e302ce49da98703938f257347a
+URL: http://werkzeug.pocoo.org/
+BuildRequires: python-distribute
+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
+Werkzeug started as simple collection of various utilities for WSGI
+applications and has become one of the most advanced WSGI utility
+modules. It includes a powerful debugger, full featured request and
+response objects, HTTP utilities to handle entity tags, cache control
+headers, HTTP dates, cookie handling, file uploads, a powerful URL
+routing system and a bunch of community contributed addon modules.
+
+%description -l pl.UTF-8
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%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 AUTHORS CHANGES
+%{py_sitescriptdir}/werkzeug
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
+%{_examplesdir}/%{name}-%{version}
+
+%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 2012/04/06 08:41:34 zbyniu
+- new
+
================================================================
Index: packages/python-Jinja2/python-Jinja2.spec
diff -u /dev/null packages/python-Jinja2/python-Jinja2.spec:1.1
--- /dev/null Fri Apr 6 10:41:39 2012
+++ packages/python-Jinja2/python-Jinja2.spec Fri Apr 6 10:41:34 2012
@@ -0,0 +1,151 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+
+%define module Jinja2
+Summary: A small but fast and easy to use stand-alone template engine written in pure python
+#Summary(pl.UTF-8): -
+Name: python-%{module}
+Version: 2.6
+Release: 0.1
+License: BSD
+Group: Development/Languages/Python
+Source0: http://pypi.python.org/packages/source/J/Jinja2/%{module}-%{version}.tar.gz
+# Source0-md5: 1c49a8825c993bfdcf55bb36897d28a2
+URL: http://jinja.pocoo.org/
+BuildRequires: python-distribute
+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
+Jinja2 is a template engine written in pure Python. It provides a
+Django inspired non-XML syntax but supports inline expressions and an
+optional sandboxed environment.
+
+#%description -l pl.UTF-8
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%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 AUTHORS CHANGES
+%{py_sitescriptdir}/jinja2
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
+%{_examplesdir}/%{name}-%{version}
+
+%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 2012/04/06 08:41:34 zbyniu
+- new
+
+Revision 1.24 2011/11/26 18:42:49 glen
+- add tests
+
+Revision 1.23 2011/02/24 09:08:18 glen
+- examples example
+
+Revision 1.22 2010/08/10 18:42:07 glen
+- --skip-build
+
+Revision 1.21 2010/08/10 12:27:04 glen
+- add test bcond
+
+Revision 1.20 2010/07/27 20:07:56 glen
+- preamble fix
+
+Revision 1.19 2010/07/26 10:57:31 pawelz
+- BR: python-devel is for native python extensions only
+- BR: python-distribute
+
+Revision 1.18 2010/07/17 19:56:25 glen
+- pass CC
+
+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
================================================================
More information about the pld-cvs-commit
mailing list