packages: python-celery/python-celery.spec - cleanup template junk - build ...
glen
glen at pld-linux.org
Mon May 23 13:52:18 CEST 2011
Author: glen Date: Mon May 23 11:52:18 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- cleanup template junk
- build noarch package, fixed executable perms and dir perms
- adapterized
---- Files affected:
packages/python-celery:
python-celery.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/python-celery/python-celery.spec
diff -u packages/python-celery/python-celery.spec:1.3 packages/python-celery/python-celery.spec:1.4
--- packages/python-celery/python-celery.spec:1.3 Fri May 20 11:49:48 2011
+++ packages/python-celery/python-celery.spec Mon May 23 13:52:13 2011
@@ -1,8 +1,4 @@
# $Revision$, $Date$
-#
-# Conditional build:
-%bcond_without tests # do not perform "make test"
-
%define module celery
Summary: Distributed Task Query
Summary(pl.UTF-8): -
@@ -14,31 +10,19 @@
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
+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
@@ -51,9 +35,6 @@
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
@@ -62,9 +43,20 @@
%files
%defattr(644,root,root,755)
%doc AUTHORS README* THANKS TODO
-%{_bindir}/*
-%attr(644, root, root) /usr/share/python2.7/*
+%attr(755,root,root) %{_bindir}/camqadm
+%attr(755,root,root) %{_bindir}/celerybeat
+%attr(755,root,root) %{_bindir}/celeryctl
+%attr(755,root,root) %{_bindir}/celeryd
+%attr(755,root,root) %{_bindir}/celeryd-multi
+%attr(755,root,root) %{_bindir}/celeryev
+%{py_sitescriptdir}/%{module}
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/celery-*.egg-info
+%endif
+%{_examplesdir}/%{name}-%{version}
+# XXX remove?
+%{py_sitescriptdir}/funtests
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -72,8 +64,13 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2011/05/23 11:52:13 glen
+- cleanup template junk
+- build noarch package, fixed executable perms and dir perms
+- adapterized
+
Revision 1.3 2011/05/20 09:49:48 cieciwa
-- updated %%files.
+- updated %files.
Revision 1.2 2011/05/20 09:27:15 cieciwa
- updated build process.
@@ -82,5 +79,4 @@
- initial spec (based on template-specs/pyton.spec),
- version 2.2.6,
- release 0.1,
-NFY.
-
+ NFY.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-celery/python-celery.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list