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:
Darin Perusich
2016-05-20 15:09:52 +00:00
committed by Git OBS Bridge
commit c5ac5106f1
8 changed files with 158 additions and 0 deletions

75
prewikka.spec Normal file
View 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