78b8bd2
Name:           prewikka
78b8bd2
Version:        3.1.0
4e42c8c
Release:        2%{?dist}
78b8bd2
Summary:        Graphical front-end analysis console for IDMEF
78b8bd2
License:        GPLv2+
78b8bd2
URL:            https://www.prelude-siem.org/
78b8bd2
Source0:        https://www.prelude-siem.org/pkg/src/3.1.0/%{name}-%{version}.tar.gz
78b8bd2
78b8bd2
BuildRequires:  gettext
78b8bd2
BuildRequires:  python2-devel
78b8bd2
# For now, Prewikka works only with python2
78b8bd2
BuildRequires:  pkgconfig(python2)
78b8bd2
BuildRequires:  python2-configargparse
78b8bd2
BuildRequires:  python-cheetah
78b8bd2
BuildRequires:  python-lesscpy
78b8bd2
BuildRequires:  python2-setuptools
78b8bd2
78b8bd2
Requires:       python2-babel
78b8bd2
Requires:       python-cheetah
78b8bd2
Requires:       python2-prelude >= %{version}
78b8bd2
Requires:       python2-preludedb >= %{version}
78b8bd2
Requires:       pytz
78b8bd2
Requires:       python2-dateutil
78b8bd2
4e42c8c
ExcludeArch:    ppc64 ppc64le aarch64 armv7hl
78b8bd2
78b8bd2
%description
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
78b8bd2
%setup -q
78b8bd2
78b8bd2
%build
78b8bd2
%py2_build
78b8bd2
78b8bd2
%install
78b8bd2
# We have to use this because py2_install do other things and siteconfig.py
78b8bd2
# will be not installed
78b8bd2
%{__python2} setup.py install --root=%{buildroot}
78b8bd2
78b8bd2
install -d -m 0755 %{buildroot}%{_sbindir}
78b8bd2
mv %{buildroot}%{_bindir}/%{name}-httpd %{buildroot}%{_sbindir}/%{name}-httpd
78b8bd2
78b8bd2
## Language files; not under /usr/share/locale, need to move them
78b8bd2
install -d -m 0755 %{buildroot}%{_datadir}/locale
78b8bd2
cp -r %{buildroot}%{python2_sitelib}/%{name}/locale/* %{buildroot}%{_datadir}/locale/
78b8bd2
rm -rf %{buildroot}%{python2_sitelib}/%{name}/locale
78b8bd2
ln -s %{_datadir}/locale %{buildroot}%{python2_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}
78b8bd2
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
78b8bd2
%{_sbindir}/%{name}-httpd
78b8bd2
%{_datadir}/%{name}
78b8bd2
%{python2_sitelib}/%{name}
78b8bd2
%{python2_sitelib}/%{name}-%{version}-py%{python2_version}.egg-info
78b8bd2
78b8bd2
%changelog
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