packages: python-msgpack/python-msgpack.spec (NEW) - Initial version 0.1.7-1.
matkor
matkor at pld-linux.org
Fri Jan 7 14:53:38 CET 2011
Author: matkor Date: Fri Jan 7 13:53:38 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- Initial version 0.1.7-1.
---- Files affected:
packages/python-msgpack:
python-msgpack.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-msgpack/python-msgpack.spec
diff -u /dev/null packages/python-msgpack/python-msgpack.spec:1.1
--- /dev/null Fri Jan 7 14:53:38 2011
+++ packages/python-msgpack/python-msgpack.spec Fri Jan 7 14:53:32 2011
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+# %bcond_without tests # do not perform "make test"
+
+%define module msgpack
+Summary: Binary-based efficient data interchange format
+Summary(pl.UTF-8): Binarny efektywny format wymiany danych.
+Name: python-%{module}
+Version: 0.1.7
+Release: 1
+License: ASL
+Group: Development/Languages/Python
+Source0: http://pypi.python.org/packages/source/m/msgpack-python/msgpack-python-%{version}.tar.gz
+# Source0-md5: 95750dae8f4ee2a365fd548fd5308908
+URL: http://msgpack.org/
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+# if py_postclean is used
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires: python-modules
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MessagePack is a binary-based efficient object serialization library.
+It enables to exchange structured objects between many languages like
+JSON. But unlike JSON, it is very fast and small.
+
+%description -l pl.UTF-8
+MessagePack jest binarną, efektywną biblioteką serializacji obiektów.
+Pozwala wymieniać strukturalne obiekty pomiędzy wieloma językami
+podobnie jak JSON. W odróżnieniu jest bardzo szybka i mała.
+
+%prep
+%setup -q -n msgpack-python-%{version}
+
+%build
+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
+
+%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)
+%dir %{py_sitedir}/%{module}
+%{py_sitedir}/%{module}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/%{module}/_msgpack.so
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/%{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/01/07 13:53:32 matkor
+- Initial version 0.1.7-1.
+
================================================================
More information about the pld-cvs-commit
mailing list