kim27 pushed to python-myghty (epel7). "- Add README file (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Apr 27 19:42:17 UTC 2015
>From 409c30f953cea723dfd71265a58bb770563662b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Toshio=20=E3=81=8F=E3=82=89=E3=81=A8=E3=81=BF?=
<toshio at fedoraproject.org>
Date: Sat, 26 Jun 2010 08:16:10 +0000
Subject: - Add README file - Update old way of invoking setup.py - Fix
conditionals for python-setuptools - Comment what myghty-importer.patch does
diff --git a/python-myghty.spec b/python-myghty.spec
index f9110af..963bdc4 100644
--- a/python-myghty.spec
+++ b/python-myghty.spec
@@ -1,20 +1,23 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%if !(0%{?fedora} >= 13 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%endif
Name: python-myghty
Version: 1.1
-Release: 10%{?dist}
-Summary: A Python-based templating system derived from HTML::Mason
+Release: 11%{?dist}
+Summary: Python-based templating system derived from HTML::Mason
Group: Development/Libraries
License: MIT
URL: http://www.myghty.org
-Source0: http://download.sourceforge.net/sourceforge/myghty/Myghty-%{version}.tar.gz
+Source0: http://pypi.python.org/packages/source/M/Myghty/Myghty-%{version}.tar.gz
+# Fix import hook to work with python-2.6+
Patch0: myghty-importer.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: python-devel
-%if 0%{?fedora} >= 8
+BuildRequires: python2-devel
+%if 0%{?fedora} <= 12
BuildRequires: python-setuptools-devel
%else
BuildRequires: python-setuptools
@@ -34,27 +37,34 @@ and much more.
%setup -q -n Myghty-%{version}
%patch0 -p1
+sed -i 's!/usr/local/bin/python!/usr/bin/python!' examples/zblog/bin/server.py
+
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --old-and-unmanageable --root $RPM_BUILD_ROOT
+%{__python} setup.py install --root $RPM_BUILD_ROOT
(cd doc ; %{__python} genhtml.py)
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
-%doc doc/html/* examples LICENSE
+%doc doc/html/* examples LICENSE README
%{python_sitelib}/*
%changelog
+* Fri Jun 25 2010 Toshio Kuratomi <toshio at fedoraproject.org> - 1.1-11
+- Add README file
+- Update old way of invoking setup.py
+- Fix conditionals for python-setuptools
+- Comment what myghty-importer.patch does
+
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-myghty.git/commit/?h=epel7&id=409c30f953cea723dfd71265a58bb770563662b6
More information about the scm-commits
mailing list