view moin.spec @ 2109:38b5c2746f83

raise minimum requirement to python 2.7 now that debian wheezy is stable (and thus even debian stable has python 2.7 - almost 3 years after the python 2.7 release), it is time to move on. there are some nice features in 2.7 - we can use them now: http://docs.python.org/2.7/whatsnew/2.7.html there is also no risk any more that language or library features creep in unnoticed that are incompatible with the minimum requirement. we also save some time as we don't have to test on / care for 2.6 any more. about this changeset: most should be self-explanatory, except this: MoinMoin/constants/keys.py - we could not use unicode key constants yet due to a bug in pre-2.6.5 python that did not allow unicode keys in kwargs. The change in MoinMoin/storage/middleware/indexing.py is also related to that, we just had to make sure keys are str, not unicode as that dict later was exploded into a function call like f(**doc). notes for developers: if you developed on 2.6 until now, you need to create a fresh new virtualenv using python 2.7.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 04 May 2013 16:08:33 +0200
parents 5568cf133caf
children
line wrap: on
line source
%define name moin
%define version 2.0.0
%define release 0.0.alpha
#Upgrade Path Example:
#     moin-2.0-0.1.beta1
#         Patched
#     moin-2.0-0.2.beta1
#         Move to beta2
#     moin-2.0-0.3.beta2
#         Move to beta3 and simultaneously patch
#     moin-2.0-0.4.beta3
#         Patched again
#     moin-2.0-0.5.beta3
#         Move to rc1
#     moin-2.0-0.6.rc1
#         Move to rc2
#     moin-2.0-0.7.rc2
#         Move to "final"
#     moin-2.0-1
#         Patched
#     moin-2.0-2

Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
Summary:        MoinMoin Wiki engine

Group:          Applications/Internet
License:        GPL
URL:            http://moinmo.in/
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArchitectures: noarch
BuildRequires:  python-devel
Requires:       python >= 2.7

%description

A WikiWikiWeb is a collaborative hypertext environment, with an
emphasis on easy access to and modification of information. MoinMoin
is a Python WikiClone that allows you to easily set up your own wiki,
only requiring a Python installation. 

%prep
%setup
echo $RPM_BUILD_ROOT

%build
python setup.py build

%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

#%files -f INSTALLED_FILES   # Wrong: Installed files contains directories also
# This lets rpmbuild complain about Files listed twice.
# A Good explanation is here: "http://www.wideopen.com/archives/rpm-list/2001-February/msg00081.html
%files
%defattr(-,root,root)
/usr
%doc README.txt docs/licenses/COPYING

%changelog
* Sun Jun 21 2010 Thomas Waldmann
- Raised requirement to Python 2.6 (for MoinMoin 2.0.0alpha).
* Sat May 4 2013 Thomas Waldmann
- Raised requirement to Python 2.7 (for MoinMoin 2.0.0alpha).