Author: cieciwa                      Date: Wed Jun  8 09:19:45 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial, based on python.spec template.

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

---- Diffs:

================================================================
Index: packages/python-pylibmc/python-pylibmc.spec
diff -u /dev/null packages/python-pylibmc/python-pylibmc.spec:1.1
--- /dev/null   Wed Jun  8 11:19:45 2011
+++ packages/python-pylibmc/python-pylibmc.spec Wed Jun  8 11:19:40 2011
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define        module  pylibmc
+Summary:       Quick and small memcached cliend for Python
+Summary(pl.UTF-8):     Mały i szybki klient memcsche dla Pythona
+Name:          python-%{module}
+Version:       1.1.1
+Release:       0.1
+License:       BSD
+Group:         Development/Languages/Python
+Source0:       
http://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: e43c54e285f8d937a3f1a916256ecc85
+URL:           http://sendpatch.se/projects/pylibmc/
+# remove BR: python-devel for 'noarch' packages.
+BuildRequires: python-devel
+BuildRequires: python-distribute
+BuildRequires: libmc-devel
+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 <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/06/08 09:19:40  cieciwa
+- initial, based on python.spec template.
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to