78b8bd2
Name:           prewikka
803eb69
Version:        5.2.0
26880b3
Release:        8%{?dist}
78b8bd2
Summary:        Graphical front-end analysis console for IDMEF
78b8bd2
License:        GPLv2+
78b8bd2
URL:            https://www.prelude-siem.org/
b1572e7
Source0:        https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz
12008d4
Patch0:         prewikka-5.2.0-fix_python_3.10.patch
78b8bd2
78b8bd2
BuildRequires:  gettext
b1572e7
BuildRequires:  python3-devel
b1572e7
BuildRequires:  pkgconfig(python3)
b1572e7
BuildRequires:  python3-configargparse
b1572e7
BuildRequires:  python3-babel
ba7534d
BuildRequires:  python3-lesscpy
b1572e7
BuildRequires:  python3-setuptools
78b8bd2
803eb69
Requires:       python3-%{name} >= %{version}
b1572e7
b1572e7
# Since mass rebuild, debugpackage wont works for prewikka
b1572e7
%define debug_package %{nil}
b1572e7
b1572e7
%description
b1572e7
Prewikka is the backend of the web browser interface of Prelude SIEM. Providing
b1572e7
numerous features, Prewikka facilitates the work of users and analysts. It
b1572e7
provides alert aggregation and heartbeat views, and has user customization and
b1572e7
configurable filters. Prewikka also provides access to external tools such as
b1572e7
whois and traceroute.
b1572e7
b1572e7
%package -n python3-%{name}
b1572e7
Summary:        Graphical front-end analysis console for IDMEF
b1572e7
Requires:       %{name} = %{version}-%{release}
803eb69
Requires:       python3-prelude >= %{version}
803eb69
Requires:       python3-preludedb >= %{version}
b1572e7
Requires:       python3-babel
0497a2c
Requires:       python3-croniter
b1572e7
Requires:       python3-dateutil
db155b1
Requires:       python3-gevent
db155b1
Requires:       python3-lark-parser
db155b1
Requires:       python3-mako
1a206ae
Requires:       python3-passlib
b1572e7
Requires:       python3-pytz
db155b1
Requires:       python3-pyyaml
f7f189d
Requires:       python3-requests
db155b1
Requires:       python3-voluptuous
db155b1
Requires:       python3-werkzeug
b1572e7
%{?python_provide:%python_provide python3-%{name}}
af2f936
b1572e7
%description -n python3-%{name}
78b8bd2
Prewikka is the backend of the web browser interface of Prelude SIEM. Providing
78b8bd2
numerous features, Prewikka facilitates the work of users and analysts. It
78b8bd2
provides alert aggregation and heartbeat views, and has user customization and
78b8bd2
configurable filters. Prewikka also provides access to external tools such as
78b8bd2
whois and traceroute.
78b8bd2
78b8bd2
%prep
b1572e7
%autosetup -p1
78b8bd2
78b8bd2
%build
b1572e7
%py3_build
78b8bd2
78b8bd2
%install
b1572e7
install -d -m 0755 %{buildroot}%{_sbindir}
b1572e7
fb20944
# We have to use this because py3_install do other things and siteconfig.py
78b8bd2
# will be not installed
b1572e7
%{__python3} setup.py install --root=%{buildroot}
b1572e7
mv %{buildroot}%{_bindir}/%{name}-httpd %{buildroot}%{_sbindir}/%{name}-httpd-%{python3_version}
fb20944
mv %{buildroot}%{_bindir}/%{name}-crontab %{buildroot}%{_sbindir}/%{name}-crontab-%{python3_version}
db155b1
mv %{buildroot}%{_bindir}/%{name}-cli %{buildroot}%{_sbindir}/%{name}-cli-%{python3_version}
78b8bd2
b1572e7
ln -s ./%{name}-httpd-%{python3_version} %{buildroot}%{_sbindir}/%{name}-httpd-3
b1572e7
ln -s ./%{name}-httpd-3 %{buildroot}%{_sbindir}/%{name}-httpd
fb20944
ln -s ./%{name}-crontab-%{python3_version} %{buildroot}%{_sbindir}/%{name}-crontab-3
fb20944
ln -s ./%{name}-crontab-3 %{buildroot}%{_sbindir}/%{name}-crontab
db155b1
ln -s ./%{name}-cli-%{python3_version} %{buildroot}%{_sbindir}/%{name}-cli-3
db155b1
ln -s ./%{name}-cli-3 %{buildroot}%{_sbindir}/%{name}-cli
b1572e7
fb20944
rm -f %{buildroot}%{_sysconfdir}/%{name}/*-dist
78b8bd2
78b8bd2
## Language files; not under /usr/share/locale, need to move them
78b8bd2
install -d -m 0755 %{buildroot}%{_datadir}/locale
b1572e7
cp -r %{buildroot}%{python3_sitelib}/%{name}/locale/* %{buildroot}%{_datadir}/locale/
b1572e7
rm -rf %{buildroot}%{python3_sitelib}/%{name}/locale
b1572e7
ln -s %{_datadir}/locale %{buildroot}%{python3_sitelib}/%{name}/locale
78b8bd2
78b8bd2
%find_lang %{name}
78b8bd2
78b8bd2
%files -f %{name}.lang
78b8bd2
%license COPYING
78b8bd2
%doc AUTHORS NEWS README
78b8bd2
%dir %{_sysconfdir}/%{name}
803eb69
%dir %{_sysconfdir}/%{name}/conf.d
78b8bd2
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
b1572e7
%config(noreplace) %{_sysconfdir}/%{name}/menu.yml
803eb69
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/auth.conf
803eb69
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/external_app.conf
803eb69
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/logs.conf
803eb69
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/riskoverview.conf
78b8bd2
%{_datadir}/%{name}
b1572e7
b1572e7
%files -n python3-%{name}
b1572e7
%{_sbindir}/%{name}-httpd
b1572e7
%{_sbindir}/%{name}-httpd-3
b1572e7
%{_sbindir}/%{name}-httpd-%{python3_version}
fb20944
%{_sbindir}/%{name}-crontab
fb20944
%{_sbindir}/%{name}-crontab-3
fb20944
%{_sbindir}/%{name}-crontab-%{python3_version}
db155b1
%{_sbindir}/%{name}-cli
db155b1
%{_sbindir}/%{name}-cli-3
db155b1
%{_sbindir}/%{name}-cli-%{python3_version}
b1572e7
%{python3_sitelib}/%{name}
b1572e7
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
b1572e7
78b8bd2
%changelog
26880b3
* Sat Aug 14 2021 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.2.0-8
26880b3
- Add missing fix for Python 3.10
26880b3
12008d4
* Fri Aug 13 2021 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.2.0-7
12008d4
- Add support for Python 3.10
12008d4
0ebc47a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-6
0ebc47a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0ebc47a
b35d8f2
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 5.2.0-5
b35d8f2
- Rebuilt for Python 3.10
b35d8f2
55f43c3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-4
55f43c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
55f43c3
f7f189d
* Fri Oct 16 2020 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.2.0-3
f7f189d
- Add missing dependency
f7f189d
1a206ae
* Thu Oct 15 2020 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.2.0-2
1a206ae
- Add missing dependency
1a206ae
803eb69
* Thu Sep 17 2020 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.2.0-1
803eb69
- Bump version 5.2.0
803eb69
9d0c10c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-4
9d0c10c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9d0c10c
1010b18
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 5.1.1-3
1010b18
- Rebuilt for Python 3.9
1010b18
d625388
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-2
d625388
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d625388
db155b1
* Fri Nov 08 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.1.1-1
db155b1
- Bump version 5.1.1
db155b1
cfde6f4
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 5.0.2-5
cfde6f4
- Rebuilt for Python 3.8.0rc1 (#1748018)
cfde6f4
97baeac
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 5.0.2-4
97baeac
- Rebuilt for Python 3.8
97baeac
bb1c38f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.2-3
bb1c38f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bb1c38f
803eb69
* Wed Jul 24 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.0.2-2
0497a2c
- Add missing dependencie
0497a2c
ef56a35
* Sun Jul 14 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 5.0.2-1
ef56a35
- Bump version 5.0.2
ef56a35
8a1d3b2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-4
8a1d3b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8a1d3b2
962e549
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.5-3
962e549
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
962e549
3eaf1ae
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.1.5-2
3eaf1ae
- Rebuilt for Python 3.7
3eaf1ae
fb20944
* Wed Apr 25 2018 Thomas Andrejak <thomas.andrejak@gmail.com> - 4.1.5-1
fb20944
- Bump version 4.1.5
fb20944
e356253
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-2
e356253
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e356253
b1572e7
* Wed Oct 11 2017 Thomas Andrejak <thomas.andrejak@gmail.com> - 4.0.0-1
b1572e7
- Bump version 4.0.0
b1572e7
af2f936
* Thu Aug 10 2017 Thomas Andrejak <thomas.andrejak@gmail.com> - 3.1.0-4
af2f936
- Temporary disable debugsource since Mass rebuild
af2f936
212c4bd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
212c4bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
212c4bd
78b8bd2
* Fri Feb 17 2017 Thomas Andrejak <thomas.andrejak@gmail.com> - 3.1.0-1
78b8bd2
- Bump version
78b8bd2
78b8bd2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-6
78b8bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
78b8bd2
78b8bd2
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-5
78b8bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
78b8bd2
78b8bd2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-4
78b8bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
78b8bd2
78b8bd2
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-3
78b8bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
78b8bd2
78b8bd2
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.0.0-2
78b8bd2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
78b8bd2
78b8bd2
* Wed May 12 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0-1
78b8bd2
- new upstream release
78b8bd2
78b8bd2
* Fri Feb 12 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0rc3-1
78b8bd2
- new upstream release
78b8bd2
78b8bd2
* Wed Feb 10 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0rc2-1
78b8bd2
- new upstream release
78b8bd2
78b8bd2
* Sat Jan 30 2010 Steve Grubb <sgrubb@redhat.com> 1.0.0rc1-1
78b8bd2
- new upstream release
78b8bd2
78b8bd2
* Tue Sep 29 2009 Steve Grubb <sgrubb@redhat.com> 0.9.17.1-1
78b8bd2
- new upstream release
78b8bd2
78b8bd2
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.17-2
78b8bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
78b8bd2
78b8bd2
* Thu Jul 09 2009 Steve Grubb <sgrubb@redhat.com> 0.9.17-1
78b8bd2
- new upstream release
78b8bd2
78b8bd2
* Wed Jun 17 2009 Steve Grubb <sgrubb@redhat.com> 0.9.15-1
78b8bd2
- new upstream release
78b8bd2
78b8bd2
* Fri Apr 17 2009 Steve Grubb <sgrubb@redhat.com> 0.9.14-4
78b8bd2
- Change default perms on conf file
78b8bd2
78b8bd2
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-3
78b8bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
78b8bd2
78b8bd2
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.14-2
78b8bd2
- Rebuild for Python 2.6
78b8bd2
78b8bd2
* Thu Apr 24 2008 Steve Grubb <sgrubb@redhat.com> 0.9.14-1
78b8bd2
- new upstream release
78b8bd2
78b8bd2
* Mon Jan 14 2008 Steve Grubb <sgrubb@redhat.com> 0.9.13-1
78b8bd2
- new upstream version 0.9.13
78b8bd2
78b8bd2
* Sun Apr  8 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.10-1
78b8bd2
- moved to upstream version 0.9.10
78b8bd2
78b8bd2
* Fri Jan 12 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8-1
78b8bd2
- moved to upstream version 0.9.8
78b8bd2
78b8bd2
* Thu Jan 11 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-5
78b8bd2
- changed docs handling
78b8bd2
- fixed python settings
78b8bd2
78b8bd2
* Mon Jan 01 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-4
78b8bd2
- corrected perms on python files 
78b8bd2
- moved prewikka-httpd to /sbin
78b8bd2
- added README.fedora
78b8bd2
78b8bd2
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-3
78b8bd2
- disabled dependency-generator 
78b8bd2
78b8bd2
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-2
78b8bd2
- Some minor fixes in requirements
78b8bd2
78b8bd2
* Sat Nov 06 2004 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-1
78b8bd2
- test build for fc6