view moin.spec @ 6028:1893da1d5213

userid lookup caches: use 1 on-disk cache file, update cache rather than rebuild Before this, we maintained one cache file per attribute (e.g. name2id, openid2id, ...) - the related code did multiple passes over all user profiles to rebuild these cache files. Now doing a one-pass rebuild, writing all attribute -> userid mappings into one on-disk cache file called "lookup". Additionally to "name" and "openids", support fast lookup for "email" and "jid" also. On profile save, we use to just kill the cache and let it rebuild. Now the cache is read, updated and written back (which is much less expensive for wikis with more than a few users). Did some refactoring also, reducing duplication, breaking down the code into smaller functions / methods.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 12 Feb 2014 18:22:10 +0100
parents 8441db884779
children 2e5c8fcb6bee
line wrap: on
line source

%define name moin
%define version 1.9.8
%define release 1
#Upgrade Path Example:
#     moin-1.3-0.1.beta1
#         Patched
#     moin-1.3-0.2.beta1
#         Move to beta2
#     moin-1.3-0.3.beta2
#         Move to beta3 and simultaneously patch
#     moin-1.3-0.4.beta3
#         Patched again
#     moin-1.3-0.5.beta3
#         Move to rc1
#     moin-1.3-0.6.rc1
#         Move to rc2
#     moin-1.3-0.7.rc2
#         Move to "final"
#     moin-1.3-1
#         Patched
#     moin-1.3-2

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

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

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


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. 


python build

python install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES


#%files -f INSTALLED_FILES   # Wrong: Installed files contains directories also
# This lets rpmbuild complain about Files listet twice.
# A Good explanation is here: "
%doc  README docs/CHANGES docs/INSTALL.html docs/UPDATE.html docs/licenses/COPYING

* Sun Jan  5 2014 Thomas Waldmann
- Raised requirement to Python 2.5

* Sun Feb 15 2009 Thomas Waldmann
- Raised requirement to Python 2.4
- Removed references to Python 1.5
- Fixed doc files.

* Thu Jun  8 2006 Johannes Poehlmann
- Fix RPM build errror "Files listet twice" 
  Replaced files list and just package all of /usr.

* Fri Mar 05 2004 Florian Festi
- Initial RPM release.