From c5ac5106f16712d8421b79482097748a9defd59d69db78e99d7474c75ed9e7c4 Mon Sep 17 00:00:00 2001 From: Darin Perusich Date: Fri, 20 May 2016 15:09:52 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + prewikka-3.0.0.tar.gz | 3 ++ prewikka-cheetah-shbang.patch | 11 +++++ prewikka-ez_setup.patch | 25 ++++++++++++ prewikka-wsgi-shbang.patch | 8 ++++ prewikka.changes | 12 ++++++ prewikka.spec | 75 +++++++++++++++++++++++++++++++++++ 8 files changed, 158 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 prewikka-3.0.0.tar.gz create mode 100644 prewikka-cheetah-shbang.patch create mode 100644 prewikka-ez_setup.patch create mode 100644 prewikka-wsgi-shbang.patch create mode 100644 prewikka.changes create mode 100644 prewikka.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/prewikka-3.0.0.tar.gz b/prewikka-3.0.0.tar.gz new file mode 100644 index 0000000..9c0a929 --- /dev/null +++ b/prewikka-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe32c83c6d159c9a724656ea5d15808cfbf7b6398886f736d0ed723fcdbdfe8f +size 1333924 diff --git a/prewikka-cheetah-shbang.patch b/prewikka-cheetah-shbang.patch new file mode 100644 index 0000000..8cf3ed1 --- /dev/null +++ b/prewikka-cheetah-shbang.patch @@ -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): diff --git a/prewikka-ez_setup.patch b/prewikka-ez_setup.patch new file mode 100644 index 0000000..0bf907c --- /dev/null +++ b/prewikka-ez_setup.patch @@ -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()) ++ diff --git a/prewikka-wsgi-shbang.patch b/prewikka-wsgi-shbang.patch new file mode 100644 index 0000000..400a139 --- /dev/null +++ b/prewikka-wsgi-shbang.patch @@ -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 diff --git a/prewikka.changes b/prewikka.changes new file mode 100644 index 0000000..d5e6c14 --- /dev/null +++ b/prewikka.changes @@ -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 diff --git a/prewikka.spec b/prewikka.spec new file mode 100644 index 0000000..0cb2541 --- /dev/null +++ b/prewikka.spec @@ -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