2016-05-20 15:09:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package prewikka
|
|
|
|
#
|
2017-02-07 18:41:08 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-05-20 15:09:52 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2017-02-07 18:41:08 +00:00
|
|
|
|
2017-11-01 19:10:43 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
2016-05-20 15:09:52 +00:00
|
|
|
Name: prewikka
|
2017-11-01 19:10:43 +00:00
|
|
|
Version: 4.0.0
|
2016-05-20 15:09:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Graphical front-end analysis console for the Prelude Framework
|
|
|
|
License: GPL-2.0+
|
2016-08-30 21:37:23 +00:00
|
|
|
Group: Productivity/Networking/Web/Frontends
|
2016-05-20 15:09:52 +00:00
|
|
|
Url: https://www.prelude-siem.org
|
2017-03-20 21:09:51 +00:00
|
|
|
Source0: https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz
|
2017-11-01 19:10:43 +00:00
|
|
|
Patch0: prewikka-fix_python3.patch
|
|
|
|
BuildRequires: %{python_module Babel}
|
|
|
|
BuildRequires: %{python_module lesscpy}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2017-02-07 18:41:08 +00:00
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: python-devel
|
2017-11-01 19:10:43 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
Requires: prewikka-core >= %{version}
|
|
|
|
Requires: prewikka-lang >= %{version}
|
|
|
|
Requires: python-Babel
|
|
|
|
Requires: python-Mako
|
|
|
|
Requires: python-PyYAML
|
|
|
|
Requires: python-Werkzeug
|
2016-08-27 15:49:02 +00:00
|
|
|
Requires: python-libprelude
|
|
|
|
Requires: python-libpreludedb
|
2017-11-01 19:10:43 +00:00
|
|
|
Requires: python-python-dateutil
|
2017-02-07 18:41:08 +00:00
|
|
|
Requires: python-pytz
|
|
|
|
Requires: xorg-x11-fonts
|
2016-05-20 15:09:52 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2017-11-01 19:10:43 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2016-05-20 15:09:52 +00:00
|
|
|
%description
|
2017-02-07 18:41:08 +00:00
|
|
|
Prewikka is the graphical front-end analysis console for the Prelude
|
|
|
|
Universal SIM. Prewikka provides alert aggregation and sensor and
|
|
|
|
hearbeat views, and has user management and configurable filters, as
|
|
|
|
well as access to external tools such as whois and traceroute.
|
2016-05-20 15:09:52 +00:00
|
|
|
|
2017-11-01 19:10:43 +00:00
|
|
|
%package core
|
|
|
|
Summary: Prewikka core files
|
|
|
|
Group: Productivity/Networking/Web/Frontends
|
|
|
|
|
|
|
|
%description core
|
|
|
|
Core files for prewikka.
|
|
|
|
|
|
|
|
%package lang
|
|
|
|
Summary: Prewikka lang files
|
|
|
|
Group: Productivity/Networking/Web/Frontends
|
|
|
|
|
|
|
|
%description lang
|
|
|
|
Lang files for prewikka.
|
|
|
|
|
2016-05-20 15:09:52 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-03-20 21:09:51 +00:00
|
|
|
%patch0
|
2016-05-20 15:09:52 +00:00
|
|
|
|
2017-03-20 21:12:20 +00:00
|
|
|
%build
|
|
|
|
|
2016-05-20 15:09:52 +00:00
|
|
|
%install
|
2017-11-01 19:10:43 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_sbindir}
|
|
|
|
|
|
|
|
%{python_expand $python setup.py install -O1 --force --root %{buildroot}
|
|
|
|
mv %{buildroot}%{_bindir}/%{name}-httpd %{buildroot}%{_sbindir}/%{name}-httpd-%{$python_bin_suffix}
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}/prewikka
|
|
|
|
}
|
|
|
|
|
|
|
|
ln -s ./%{name}-httpd-%{python3_bin_suffix} %{buildroot}%{_sbindir}/%{name}-httpd
|
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_datadir}/locale
|
|
|
|
cp -r %{buildroot}%{python2_sitelib}/%{name}/locale/* %{buildroot}%{_datadir}/locale/
|
|
|
|
rm -rf %{buildroot}%{python2_sitelib}/%{name}/locale
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/%{name}/locale
|
|
|
|
ln -s %{_datadir}/locale %{buildroot}%{python2_sitelib}/%{name}/locale
|
|
|
|
ln -s %{_datadir}/locale %{buildroot}%{python3_sitelib}/%{name}/locale
|
|
|
|
|
|
|
|
rm %{buildroot}%{_sysconfdir}/%{name}/*-dist
|
|
|
|
|
2016-05-20 15:09:52 +00:00
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
2017-11-01 19:10:43 +00:00
|
|
|
|
2016-05-20 15:09:52 +00:00
|
|
|
%find_lang %{name} --with-python
|
|
|
|
|
2017-11-01 19:10:43 +00:00
|
|
|
%files -n %{name}-core
|
2016-05-20 15:09:52 +00:00
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%attr(0750, -,-) %dir %{_sysconfdir}/%{name}/
|
|
|
|
%config(noreplace) %attr(0640, -,-) %{_sysconfdir}/%{name}/%{name}.conf
|
2017-11-01 19:10:43 +00:00
|
|
|
%config(noreplace) %attr(0640, -,-) %{_sysconfdir}/%{name}/menu.yml
|
2016-05-20 15:09:52 +00:00
|
|
|
%{_datadir}/%{name}
|
|
|
|
%doc COPYING* AUTHORS README NEWS HACKING.README
|
|
|
|
|
2017-11-01 19:10:43 +00:00
|
|
|
%files -n %{name}-lang -f %{name}.lang
|
|
|
|
|
|
|
|
%files %python_files
|
|
|
|
%{python_sitelib}/prewikka/
|
|
|
|
%{python_sitelib}/prewikka*.egg-info
|
|
|
|
%{_sbindir}/prewikka-httpd-%{python_bin_suffix}
|
|
|
|
%python3_only %{_sbindir}/prewikka-httpd
|
|
|
|
|
2016-05-20 15:09:52 +00:00
|
|
|
%changelog
|