Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
python-moin
python-moin.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-moin.spec of Package python-moin
# # spec file for package python-moin # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: python-moin Version: 1.9.7 Release: 0 Summary: Wiki engine License: GPL-2.0+ Group: Productivity/Networking/Web/Frontends Url: http://moinmo.in/MoinMoinWiki Source0: http://static.moinmo.in/files/moin-%{version}.tar.gz Source1: moin.wsgi Source2: moin-apache22.conf Source3: moin-apache24.conf Source4: mkwiki.moin Source90: README-openSUSE.txt Source91: moin.1 Source92: mkwiki.moin.8 Source99: python-moin.rpmlintrc Patch0: anywikidraw.patch BuildRequires: ant >= 1.5.4 BuildRequires: apache2 BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: java-devel >= 1.5 BuildRequires: python-devel >= 2.5 Requires: apache2-mod_wsgi Requires: python-xml BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch %endif %description MoinMoin is an advanced, easy to use and extensible Wiki engine with a large community of users. Said in a few words, it is about collaboration on easily editable web pages. All wiki data is stored in plain files - no database is required. This package configures MoinMoin to serve wiki pages via the Apache web server. %prep %setup -q -n moin-%{version} # remove pre-built JARs find . -type f -name "*.jar" -print -delete # prepare rebuild of AnyWikiDraw applet JAR cd contrib/AnyWikiDraw tar -xjf src.tar.bz %patch0 %build cp %{SOURCE90} . python setup.py build dos2unix docs/licenses/pygments/LICENSE dos2unix docs/licenses/werkzeug/LICENSE find MoinMoin/web/static/htdocs/applets/FCKeditor/editor/filemanager/connectors/py -name "*.py" | xargs dos2unix dos2unix MoinMoin/web/static/htdocs/applets/FCKeditor/editor/filemanager/connectors/perl/connector.cgi dos2unix MoinMoin/web/static/htdocs/applets/FCKeditor/editor/filemanager/connectors/perl/upload.cgi (cd contrib/TWikiDrawPlugin; ant) ln contrib/TWikiDrawPlugin/build/twikidraw.jar MoinMoin/web/static/htdocs/applets/TWikiDrawPlugin/twikidraw.jar (cd contrib/AnyWikiDraw/AnyWikiDraw; ant -f build-for-moinmoin.xml applet.jar) ln contrib/AnyWikiDraw/AnyWikiDraw/dist/AnyWikiDraw\ 0.14/anywikidraw/moinmoin/AnyWikiDrawForMoinMoin.jar MoinMoin/web/static/htdocs/applets/anywikidraw/lib/AnyWikiDrawForMoinMoin.jar %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} mkdir -p %{buildroot}%{_sbindir} install -m 744 %{SOURCE4} %{buildroot}%{_sbindir} mkdir -p %{buildroot}/srv/moin cp %{SOURCE1} %{buildroot}/srv/moin mkdir -p %{buildroot}%{_sysconfdir}/apache2/conf.d if [ 0%{?suse_version} -le 1310 ]; then cp %{SOURCE2} %{buildroot}%{_sysconfdir}/apache2/conf.d/moin.conf else cp %{SOURCE3} %{buildroot}%{_sysconfdir}/apache2/conf.d/moin.conf fi %fdupes %{buildroot}/%{python_sitelib}/MoinMoin mkdir -p %{buildroot}%{_mandir}/man1 gzip -c %{SOURCE91} > %{buildroot}%{_mandir}/man1/moin.1.gz mkdir -p %{buildroot}%{_mandir}/man8 gzip -c %{SOURCE92} > %{buildroot}%{_mandir}/man8/mkwiki.moin.8.gz %post if [ "$1" = 1 ]; then echo "Please refer to %{_docdir}/%{name}/README-openSUSE.txt for" echo "instructions on how to complete the installation of MoinMoin." fi %files %defattr(-, root, root) %doc README docs/* README-openSUSE.txt %config(noreplace) %{_sysconfdir}/apache2/conf.d/moin.conf %{_bindir}/moin %{_sbindir}/mkwiki.moin %{_datadir}/moin %{python_sitelib} %dir /srv/moin %config(noreplace) /srv/moin/moin.wsgi %doc %{_mandir}/man1/moin.1.gz %doc %{_mandir}/man8/mkwiki.moin.8.gz %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor