Accepting request 393495 from home:totol
I want to maintain prewikka and Prelude modules OBS-URL: https://build.opensuse.org/request/show/393495 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/prewikka?expand=0&rev=1
This commit is contained in:
commit
c5ac5106f1
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
prewikka-3.0.0.tar.gz
Normal file
3
prewikka-3.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fe32c83c6d159c9a724656ea5d15808cfbf7b6398886f736d0ed723fcdbdfe8f
|
||||
size 1333924
|
11
prewikka-cheetah-shbang.patch
Normal file
11
prewikka-cheetah-shbang.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- setup.py 2016-04-26 12:10:01.792592253 +0200
|
||||
+++ setup.py.new 2016-04-26 12:09:53.444776966 +0200
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
def template_compile(input, output_dir):
|
||||
from Cheetah.CheetahWrapper import CheetahWrapper
|
||||
- CheetahWrapper().main([ sys.argv[0], "compile", "--nobackup", input ])
|
||||
+ CheetahWrapper().main([ sys.argv[0], "compile", "--nobackup", "--shbang", "''", input ])
|
||||
|
||||
|
||||
class my_build_py(build_py):
|
25
prewikka-ez_setup.patch
Normal file
25
prewikka-ez_setup.patch
Normal file
@ -0,0 +1,25 @@
|
||||
--- ez_setup.py 2016-04-22 23:28:03.000000000 +0200
|
||||
+++ ez_setup.py 2016-05-02 00:23:50.498917032 +0200
|
||||
@@ -36,7 +36,7 @@
|
||||
except ImportError:
|
||||
USER_SITE = None
|
||||
|
||||
-DEFAULT_VERSION = "5.7"
|
||||
+DEFAULT_VERSION = "5.4.1"
|
||||
DEFAULT_URL = "https://pypi.python.org/packages/source/s/setuptools/"
|
||||
|
||||
def _python_cmd(*args):
|
||||
@@ -268,7 +268,7 @@
|
||||
Download setuptools from a specified location and return its filename
|
||||
|
||||
`version` should be a valid setuptools version number that is available
|
||||
- as an sdist for download under the `download_base` URL (which should end
|
||||
+ as an egg for download under the `download_base` URL (which should end
|
||||
with a '/'). `to_dir` is the directory where the egg will be downloaded.
|
||||
`delay` is the number of seconds to pause before an actual download
|
||||
attempt.
|
||||
@@ -330,3 +330,4 @@
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
+
|
8
prewikka-wsgi-shbang.patch
Normal file
8
prewikka-wsgi-shbang.patch
Normal file
@ -0,0 +1,8 @@
|
||||
--- scripts/prewikka.wsgi 2016-04-22 23:28:03.000000000 +0200
|
||||
+++ scripts/prewikka.wsgi.new 2016-04-26 12:20:55.621987856 +0200
|
||||
@@ -1,2 +1,4 @@
|
||||
+#!/usr/bin/env python
|
||||
+
|
||||
from prewikka.web import wsgi
|
||||
application = wsgi.application
|
||||
\ No newline at end of file
|
12
prewikka.changes
Normal file
12
prewikka.changes
Normal file
@ -0,0 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 3 22:03:50 UTC 2016 - thomas.andrejak@gmail.com
|
||||
|
||||
Initial import
|
||||
|
||||
Add patchs :
|
||||
* prewikka-cheetah-shbang.patch
|
||||
* Fix shebang in cheetah generated files
|
||||
* prewikka-ez_setup.patch
|
||||
* Support old setuptools
|
||||
* prewikka-wsgi-shbang.patch
|
||||
* Fix shebang in wsgi file
|
75
prewikka.spec
Normal file
75
prewikka.spec
Normal file
@ -0,0 +1,75 @@
|
||||
#
|
||||
# spec file for package prewikka
|
||||
#
|
||||
# Copyright (c) 2016 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: prewikka
|
||||
Version: 3.0.0
|
||||
Release: 0
|
||||
Summary: Graphical front-end analysis console for the Prelude Framework
|
||||
License: GPL-2.0+
|
||||
Group: Applications/Internet
|
||||
Url: https://www.prelude-siem.org
|
||||
Source0: https://www.prelude-siem.org/pkg/prelude/src/%{name}-%{version}.tar.gz
|
||||
Patch0: prewikka-cheetah-shbang.patch
|
||||
Patch1: prewikka-wsgi-shbang.patch
|
||||
Patch2: prewikka-ez_setup.patch
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-cheetah
|
||||
BuildRequires: python-lesscpy
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: gettext
|
||||
Requires: python-cheetah
|
||||
Requires: xorg-x11-fonts-Type1
|
||||
Requires: python-babel
|
||||
Requires: python-dateutil
|
||||
Requires: pytz
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Prewikka is the graphical front-end analysis console for the
|
||||
Prelude Universal SIM. Providing numerous features, Prewikka
|
||||
facilitates the work of users and analysts. It provides alert
|
||||
aggregation and sensor and hearbeat views, and has user management
|
||||
and configurable filters. Prewikka also provides access to external
|
||||
tools such as whois and traceroute.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p0
|
||||
%patch1 -p0
|
||||
%patch2 -p0
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
%{__python} setup.py install -O1 --root=%{buildroot}
|
||||
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
||||
mkdir -p %{buildroot}%{_sbindir}/
|
||||
mv %{buildroot}/%{_bindir}/%{name}-httpd %{buildroot}/%{_sbindir}/%{name}-httpd
|
||||
find %{buildroot} -type f -name '*.pyo' -exec rm -f {} ';'
|
||||
%find_lang %{name} --with-python
|
||||
|
||||
%files -f %{name}.lang -n %{name}
|
||||
%defattr(-, root, root, -)
|
||||
%attr(0750, -,-) %dir %{_sysconfdir}/%{name}/
|
||||
%config(noreplace) %attr(0640, -,-) %{_sysconfdir}/%{name}/%{name}.conf
|
||||
%{_datadir}/%{name}
|
||||
%{_sbindir}/%{name}-httpd
|
||||
%{python_sitelib}/%{name}/
|
||||
%{python_sitelib}/%{name}*.egg-info
|
||||
%doc COPYING* AUTHORS README NEWS HACKING.README
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user