forked from moinwiki/moin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
moin.spec
73 lines (61 loc) · 1.88 KB
/
moin.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%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 >= 3.5
%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).
* Fri Jul 19 2019 Thomas Waldmann
- Raised requirement to Python 3.5 (for MoinMoin 2.0.0alpha).