SPECS: python-satchmo.spec (NEW) - stub spec using outdated 0.7.0 release -...

emes emes at pld-linux.org
Mon Sep 15 13:49:24 CEST 2008


Author: emes                         Date: Mon Sep 15 11:49:23 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- stub spec using outdated 0.7.0 release
- to be polished after 0.8.0 will have been released

---- Files affected:
SPECS:
   python-satchmo.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-satchmo.spec
diff -u /dev/null SPECS/python-satchmo.spec:1.1
--- /dev/null	Mon Sep 15 13:49:24 2008
+++ SPECS/python-satchmo.spec	Mon Sep 15 13:49:18 2008
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+%define		module	satchmo
+
+Summary:	The web shop for perfectionists with deadlines
+Summary(pl.UTF-8):	Sklep WWW dla perfekcjonistów z ograniczeniami czasowymi
+Name:		python-satchmo
+Version:	0.7.0
+Release:	0.1
+License:	BSD
+Group:		Development/Languages/Python
+Source0:	http://satchmoproject.com/snapshots/%{module}-%{version}.tar.gz
+# Source0-md5:	1d8a3341e1f653321c3ddde0e1c44cd6
+URL:		http://www.satchmoproject.com/
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools >= 0.6-0.c1
+BuildRequires:	rpm-pythonprov
+Requires:	python-django = 0.96
+%pyrequires_eq	python
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Satchmo is a web shop based on Django framework.
+
+%description -l pl.UTF-8
+Satchmot to sklep internetowy oparty na szkielecie Django.
+
+%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
+
+find $RPM_BUILD_ROOT -type f -name '*.pyc' -exec rm "{}" ";"
+find $RPM_BUILD_ROOT -type f -name '*.pyo' -exec rm "{}" ";"
+find $RPM_BUILD_ROOT -type f -exec sed -i -e "s#$RPM_BUILD_ROOT##g" "{}" ";"
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+# %%py_postclean
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name '*.py' -a -not -path '*_template*' -exec rm "{}" ";"
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -path '*_template*' -a -name '*.py[oc]' -exec rm "{}" ";"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc docs/*.*
+%{py_sitescriptdir}/%{module}*
+
+%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  2008/09/15 11:49:18  emes
+- stub spec using outdated 0.7.0 release
+- to be polished after 0.8.0 will have been released
+
================================================================


More information about the pld-cvs-commit mailing list