Author: cieciwa                      Date: Thu May 19 07:07:27 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial spec (based on template-specs/pyton.spec),
- version 2.2.6,
- release 0.1,
NFY.

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

---- Diffs:

================================================================
Index: packages/python-celery/python-celery.spec
diff -u /dev/null packages/python-celery/python-celery.spec:1.1
--- /dev/null   Thu May 19 09:07:27 2011
+++ packages/python-celery/python-celery.spec   Thu May 19 09:07:21 2011
@@ -0,0 +1,84 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define        module  celery
+Summary:       Distributed Task Query
+Summary(pl.UTF-8):     -
+Name:          python-%{module}
+Version:       2.2.6
+Release:       0.1
+License:       BSD-like
+Group:         Development/Languages/Python
+Source0:       
http://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: 0c8f5ec2535e2aaf692fd0227a5bb407
+URL:           -
+# remove BR: python-devel for 'noarch' packages.
+BuildRequires: python-devel
+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
+
+%description -l pl.UTF-8
+
+%prep
+%setup -q -n %{module}-%{version}
+
+# fix #!/usr/bin/env python -> #!/usr/bin/python:
+%{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}.py
+
+%build
+# CC/CFLAGS is only for arch packages - remove on noarch packages
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
+%{__python} setup.py build
+
+%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}
+
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%{py_sitedir}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/*.so
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/TEMPLATE-*.egg-info
+%endif
+%{_examplesdir}/%{name}-%{version}
+
+%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/05/19 07:07:21  cieciwa
+- initial spec (based on template-specs/pyton.spec),
+- version 2.2.6,
+- release 0.1,
+NFY.
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to