packages: python-ordereddict/python-ordereddict.spec (NEW) - new

zbyniu zbyniu at pld-linux.org
Fri Dec 2 13:27:32 CET 2011


Author: zbyniu                       Date: Fri Dec  2 12:27:32 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/python-ordereddict/python-ordereddict.spec
diff -u /dev/null packages/python-ordereddict/python-ordereddict.spec:1.1
--- /dev/null	Fri Dec  2 13:27:32 2011
+++ packages/python-ordereddict/python-ordereddict.spec	Fri Dec  2 13:27:27 2011
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	ordereddict
+Summary:	-
+Summary(pl.UTF-8):	-
+Name:		python-%{module}
+Version:	1.1
+Release:	0.1
+License:	- (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/o/ordereddict/%{module}-%{version}.tar.gz
+# Source0-md5:	a0ed854ee442051b249bfad0f638bbec
+URL:		http://pypi.python.org/pypi/ordereddict
+# 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}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--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)
+%{py_sitescriptdir}/*.py[co]
+%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 <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/12/02 12:27:27  zbyniu
+- new
+
================================================================


More information about the pld-cvs-commit mailing list