3d00290
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3d00290
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
3d00290
c6f27f1
Name:           prewikka
c6f27f1
Version:        0.9.14
e4a08b8
Release:        3%{?dist}
3d00290
Summary:        Graphical front-end analysis console for the Prelude Hybrid IDS Framework
3d00290
Group:          Applications/Internet
c6f27f1
License:        GPLv2+
3d00290
URL:            http://www.prelude-ids.org
98ee133
Source0:        http://www.prelude-ids.org/download/releases/%{name}/%{name}-%{version}.tar.gz
3d00290
Source1:        README.fedora
3d00290
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
87c250f
BuildRequires:  python-devel python-cheetah gettext
c6f27f1
Requires:       python-cheetah, libprelude-python, libpreludedb-python
c6f27f1
BuildArch:      noarch
3d00290
3d00290
3d00290
%description
3d00290
Prewikka is a graphical front-end analysis console for the Prelude 
3d00290
Hybrid IDS Framework. Providing numerous features, Prewikka facilitates 
3d00290
the work of users and analysts. It provides alert aggregation and sensor 
3d00290
and hearbeat views, and has user management and configurable filters. It 
3d00290
has access to external tools such as whois and traceroute.
3d00290
3d00290
Please read README.fedora for installation instructions.
3d00290
3d00290
%prep
3d00290
%setup -q
3d00290
cp -p %{SOURCE1} .
3d00290
3d00290
%build
3d00290
3d00290
%install
3d00290
rm -rf %{buildroot}
3d00290
%{__python} setup.py install -O1 --root=%{buildroot}
3d00290
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
3d00290
mkdir -p %{buildroot}%{_sbindir}/
3d00290
chmod 0644 %{buildroot}/%{_datadir}/%{name}/htdocs/css/style.css
3d00290
mv %{buildroot}/%{_bindir}/%{name}-httpd %{buildroot}/%{_sbindir}/%{name}-httpd
6bfb833
#sed -i -e '/^#!\/usr\/bin\/env python$/d' %{buildroot}/%{python_sitearch}/%{name}/templates/*
7b3102c
%find_lang %{name}
3d00290
 
3d00290
%clean
3d00290
rm -rf %{buildroot}
3d00290
7b3102c
%files -f %{name}.lang
3d00290
%defattr(-,root,root,-)
3d00290
%dir %{_sysconfdir}/%{name}/
3d00290
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
3d00290
%dir %{_datadir}/%{name}/
3d00290
%{_datadir}/%{name}/*
3d00290
%{_sbindir}/%{name}-httpd
3d00290
%{python_sitelib}/%{name}/
c6f27f1
%{python_sitelib}/%{name}*.egg-info
7b3102c
%doc AUTHORS README NEWS HACKING.README README.fedora  
3d00290
3d00290
%changelog
e4a08b8
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-3
e4a08b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e4a08b8
640fbd1
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.14-2
640fbd1
- Rebuild for Python 2.6
640fbd1
c6f27f1
* Thu Apr 24 2008 Steve Grubb <sgrubb@redhat.com> 0.9.14-1
c6f27f1
- new upstream release
c6f27f1
6bfb833
* Mon Jan 14 2008 Steve Grubb <sgrubb@redhat.com> 0.9.13-1
6bfb833
- new upstream version 0.9.13
6bfb833
7b3102c
* Sun Apr  8 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.10-1
7b3102c
- moved to upstream version 0.9.10
7b3102c
3d00290
* Sun Jan 12 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.8-1
3d00290
- moved to upstream version 0.9.8
3d00290
3d00290
* Sat Jan 11 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-5
3d00290
- changed docs handling
3d00290
- fixed python settings
3d00290
3d00290
* Mon Jan 01 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-4
3d00290
- corrected perms on python files 
3d00290
- moved prewikka-httpd to /sbin
3d00290
- added README.fedora
3d00290
3d00290
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-3
3d00290
- disabled dependency-generator 
3d00290
3d00290
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-2
3d00290
- Some minor fixes in requirements
3d00290
3d00290
* Mon Nov 06 2004 Thorsten Scherf <tscherf@redhat.com> 0.9.7.1-1
3d00290
- test build for fc6
3d00290
3d00290
3d00290