|
|
6a5a3a3 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
6a5a3a3 |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
22b808f |
#%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
|
|
|
3ff3bfa |
|
|
|
6116547 |
|
|
|
6116547 |
Name: libprelude
|
|
|
7273880 |
Epoch: 1
|
|
|
6a5a3a3 |
Version: 1.0.0
|
|
|
3ee9100 |
Release: 12%{?dist}
|
|
|
6a5a3a3 |
Summary: The prelude library
|
|
|
6a5a3a3 |
Group: System Environment/Libraries
|
|
|
cfb2da9 |
License: GPLv2+
|
|
|
6116547 |
URL: http://prelude-ids.org/
|
|
|
322772c |
Source0: http://www.prelude-ids.org/download/releases/%{name}/%{name}-%{version}.tar.gz
|
|
|
8537811 |
Patch1: libprelude-1.0.0-gcc46.patch
|
|
|
6116547 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
6116547 |
|
|
|
22b808f |
BuildRequires: gnutls-devel, python-devel, lua-devel
|
|
|
22b808f |
#BuildRequires: ruby, ruby-devel
|
|
|
6a5a3a3 |
BuildRequires: swig chrpath
|
|
|
6116547 |
|
|
|
6116547 |
%description
|
|
|
10d6406 |
Libprelude is a library that guarantees secure connections between
|
|
|
10d6406 |
all sensors and the Prelude Manager. Libprelude provides an
|
|
|
10d6406 |
Application Programming Interface (API) for the communication with
|
|
|
10d6406 |
Prelude sub-systems, it supplies the necessary functionality for
|
|
|
10d6406 |
generating and emitting IDMEF events with Prelude and automates the
|
|
|
10d6406 |
saving and re-transmission of data in times of temporary interruption
|
|
|
10d6406 |
of one of the components of the system.
|
|
|
6116547 |
|
|
|
6116547 |
%package devel
|
|
|
6a5a3a3 |
Summary: Header files and libraries for libprelude development
|
|
|
6a5a3a3 |
Group: System Environment/Libraries
|
|
|
c063581 |
Requires: libprelude = %{epoch}:%{version}-%{release}, automake, gnutls-devel
|
|
|
6116547 |
|
|
|
6116547 |
%description devel
|
|
|
6116547 |
Libraries, include files, etc you can use to develop Prelude IDS
|
|
|
10d6406 |
sensors using the Prelude Library.
|
|
|
6116547 |
|
|
|
6116547 |
%package python
|
|
|
560bced |
Summary: Python bindings for libprelude
|
|
|
6116547 |
Group: System Environment/Libraries
|
|
|
c063581 |
Requires: libprelude = %{epoch}:%{version}-%{release}
|
|
|
6116547 |
|
|
|
6116547 |
%description python
|
|
|
6116547 |
Python bindings for libprelude.
|
|
|
6116547 |
|
|
|
6116547 |
%package perl
|
|
|
560bced |
Summary: Perl bindings for libprelude
|
|
|
6116547 |
Group: System Environment/Libraries
|
|
|
4e58d14 |
%if 0%{?rhel} && 0%{?rhel} <= 5
|
|
|
3909eef |
BuildRequires: perl
|
|
|
3909eef |
%else
|
|
|
2a13b87 |
BuildRequires: perl-devel
|
|
|
3909eef |
%endif
|
|
|
c063581 |
Requires: libprelude = %{epoch}:%{version}-%{release}
|
|
|
560bced |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
6116547 |
|
|
|
6116547 |
%description perl
|
|
|
6116547 |
Perl bindings for libprelude.
|
|
|
6116547 |
|
|
|
22b808f |
#%package ruby
|
|
|
22b808f |
#Summary: Ruby bindings for libprelude
|
|
|
22b808f |
#Group: System Environment/Libraries
|
|
|
22b808f |
#Requires: libprelude = %{epoch}:%{version}-%{release}
|
|
|
22b808f |
#Requires: ruby(abi) = 1.9
|
|
|
22b808f |
#
|
|
|
22b808f |
#%description ruby
|
|
|
22b808f |
#Ruby bindings for libprelude.
|
|
|
3ff3bfa |
|
|
|
6116547 |
%prep
|
|
|
6116547 |
%setup -q
|
|
|
8537811 |
%patch1 -p1
|
|
|
6116547 |
|
|
|
6116547 |
%build
|
|
|
6116547 |
%configure --disable-static \
|
|
|
0e4ff70 |
--with-html-dir=%{_defaultdocdir}/%{name}-%{version}/html \
|
|
|
22b808f |
--with-ruby=no \
|
|
|
3ff3bfa |
--with-perl-installdirs=vendor \
|
|
|
3ff3bfa |
--enable-easy-bindings
|
|
|
6116547 |
|
|
|
6116547 |
# removing rpath
|
|
|
6116547 |
sed -i.rpath -e 's|LD_RUN_PATH=""||' bindings/Makefile.in
|
|
|
560bced |
sed -i.rpath -e 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool
|
|
|
560bced |
|
|
|
e5918b8 |
make %{?_smp_mflags}
|
|
|
6116547 |
|
|
|
6116547 |
%install
|
|
|
6116547 |
rm -rf %{buildroot}
|
|
|
6116547 |
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
|
|
6116547 |
mkdir -p %{buildroot}%{perl_vendorarch}
|
|
|
6116547 |
make install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p"
|
|
|
6116547 |
cp -p AUTHORS ChangeLog README NEWS COPYING LICENSE.README HACKING.README \
|
|
|
560bced |
%{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
|
|
6116547 |
rm -f %{buildroot}/%{_libdir}/libprelude.la
|
|
|
560bced |
chmod 755 %{buildroot}%{python_sitearch}/_prelude.so
|
|
|
560bced |
find %{buildroot} -type f \( -name .packlist -o -name perllocal.pod \) -exec rm -f {} ';'
|
|
|
560bced |
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
|
|
3ff3bfa |
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
22b808f |
#rm -f %{buildroot}%{ruby_sitearch}/PreludeEasy.la
|
|
|
c1d46f3 |
chmod +w %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.so
|
|
|
c1d46f3 |
chrpath -d %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.so
|
|
|
c1d46f3 |
chmod -w %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.so
|
|
|
5632c94 |
chmod +w %{buildroot}%{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
|
|
|
5632c94 |
chrpath -d %{buildroot}%{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
|
|
|
5632c94 |
chmod -w %{buildroot}%{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
|
|
|
560bced |
|
|
|
0af2a5a |
# Fix time stamp for both 32 and 64 bit libraries
|
|
|
0af2a5a |
touch -r ./configure.in %{buildroot}%{_sysconfdir}/prelude/default/*
|
|
|
c1d46f3 |
|
|
|
6116547 |
%clean
|
|
|
6116547 |
rm -rf %{buildroot}
|
|
|
6116547 |
|
|
|
6116547 |
%post -p /sbin/ldconfig
|
|
|
6116547 |
|
|
|
6116547 |
%postun -p /sbin/ldconfig
|
|
|
6116547 |
|
|
|
6116547 |
%files
|
|
|
5632c94 |
%defattr(-,root,root,-)
|
|
|
0af2a5a |
%{_bindir}/prelude-admin
|
|
|
6116547 |
%{_bindir}/prelude-adduser
|
|
|
6116547 |
%{_libdir}/*.so.*
|
|
|
0af2a5a |
%{_mandir}/man1/prelude-admin.1.gz
|
|
|
6116547 |
%config(noreplace) %{_sysconfdir}/*
|
|
|
6116547 |
%{_localstatedir}/spool/*
|
|
|
6116547 |
%dir %{_defaultdocdir}/%{name}-%{version}/
|
|
|
6116547 |
%doc %{_defaultdocdir}/%{name}-%{version}/*
|
|
|
6116547 |
|
|
|
6116547 |
%files devel
|
|
|
5632c94 |
%defattr(-,root,root,-)
|
|
|
6116547 |
%{_bindir}/libprelude-config
|
|
|
6116547 |
%{_libdir}/*.so
|
|
|
1d5348c |
%{_libdir}/pkgconfig/libprelude.pc
|
|
|
6116547 |
%dir %{_includedir}/libprelude/
|
|
|
6116547 |
%{_includedir}/libprelude/*
|
|
|
6116547 |
%{_datadir}/aclocal/libprelude.m4
|
|
|
6116547 |
|
|
|
6116547 |
%files python
|
|
|
5632c94 |
%defattr(-,root,root,-)
|
|
|
adee5b9 |
%{python_sitearch}/*
|
|
|
6116547 |
|
|
|
6116547 |
%files perl
|
|
|
5632c94 |
%defattr(0755,root,root,-)
|
|
|
3ff3bfa |
%attr(0644,root,root) %{perl_vendorarch}/Prelude*.pm
|
|
|
3ff3bfa |
%{perl_vendorarch}/auto/Prelude*/
|
|
|
6116547 |
|
|
|
22b808f |
#%files ruby
|
|
|
22b808f |
#%defattr(-,root,root,-)
|
|
|
22b808f |
#%{ruby_sitearch}/PreludeEasy.so
|
|
|
6116547 |
|
|
|
6116547 |
%changelog
|
|
|
22b808f |
* Tue Mar 13 2012 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-12
|
|
|
22b808f |
- Drop support for ruby
|
|
|
3ee9100 |
|
|
|
3cc021e |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-11
|
|
|
3cc021e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
3cc021e |
|
|
|
6404a85 |
* Tue Jul 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-10
|
|
|
6404a85 |
- Perl mass rebuild
|
|
|
6404a85 |
|
|
|
5632c94 |
* Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-9
|
|
|
8537811 |
- Fix gcc 4.6 C++ bug (#715983)
|
|
|
8537811 |
|
|
|
5238595 |
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-8
|
|
|
5238595 |
- Perl mass rebuild
|
|
|
5238595 |
|
|
|
1d60597 |
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-7
|
|
|
1d60597 |
- Perl 5.14 mass rebuild
|
|
|
1d60597 |
|
|
|
dd2dfb8 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-6
|
|
|
dd2dfb8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
dd2dfb8 |
|
|
|
d6c9d07 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.0.0-5
|
|
|
d6c9d07 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
d6c9d07 |
|
|
|
3c41edc |
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.0.0-4
|
|
|
3c41edc |
- Mass rebuild with perl-5.12.0
|
|
|
3c41edc |
|
|
|
693f687 |
* Sun May 02 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0-3
|
|
|
c063581 |
- Fix requires statements
|
|
|
c063581 |
|
|
|
c063581 |
* Fri Apr 30 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0-2
|
|
|
6a5a3a3 |
- New upstream release
|
|
|
6a5a3a3 |
|
|
|
d97513f |
* Sat Jan 30 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0rc1-1
|
|
|
d97513f |
- New upstream release
|
|
|
d97513f |
|
|
|
eccaf8e |
* Mon Jan 11 2010 Steve Grubb <sgrubb@redhat.com> - 0.9.25-1
|
|
|
eccaf8e |
- New upstream release
|
|
|
eccaf8e |
|
|
|
52c64bb |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.9.24.1-2
|
|
|
52c64bb |
- rebuild against perl 5.10.1
|
|
|
52c64bb |
|
|
|
4e58d14 |
* Tue Sep 29 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.24.1-1
|
|
|
4e58d14 |
- New upstream release
|
|
|
4e58d14 |
|
|
|
3909eef |
* Sat Aug 8 2009 Manuel "lonely wolf" Wolfshant <wolfy@fedoraproject.org> - 0.9.24-3
|
|
|
3909eef |
- adjust to build in EL-5
|
|
|
3909eef |
|
|
|
584285a |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.24-2
|
|
|
584285a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
584285a |
|
|
|
ede5eb6 |
* Thu Jul 09 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.24-1
|
|
|
ede5eb6 |
- New upstream release
|
|
|
ede5eb6 |
|
|
|
914f53a |
* Mon Jun 08 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.23-1
|
|
|
914f53a |
- New upstream release
|
|
|
914f53a |
|
|
|
1d5348c |
* Wed Apr 29 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.22-1
|
|
|
1d5348c |
- New upstream release
|
|
|
1d5348c |
|
|
|
445667f |
* Fri Apr 03 2009 Steve Grubb <sgrubb@redhat.com> 0.9.21.2-9
|
|
|
445667f |
- remove check section, doesn't work on anything except x86 anyways
|
|
|
445667f |
|
|
|
4039b73 |
* Fri Mar 13 2009 Karsten Hopp <karsten@redhat.com> 0.9.21.2-8
|
|
|
4039b73 |
- don't buildrequire valgrind on s390x, similar to ppc
|
|
|
4039b73 |
|
|
|
04159fe |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21.2-7
|
|
|
04159fe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
04159fe |
|
|
|
db6199b |
* Sat Jan 24 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.21.2-6
|
|
|
db6199b |
- Rebuild for MySQL 5.1.30
|
|
|
db6199b |
|
|
|
af15a3b |
* Fri Dec 05 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21.2-5
|
|
|
af15a3b |
- Rebuild _again_ for Python 2.6
|
|
|
af15a3b |
|
|
|
800f66a |
* Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.9.21.2-4
|
|
|
800f66a |
- Include /usr/include/libpreludecpp directory.
|
|
|
800f66a |
|
|
|
bafcf32 |
* Tue Dec 02 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21.2-3
|
|
|
6a5a3a3 |
- Disable check target
|
|
|
86c8790 |
- Rebuild for Python 2.6
|
|
|
86c8790 |
|
|
|
9c39388 |
* Mon Oct 13 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21.2-1
|
|
|
9c39388 |
- New upstream bugfix release
|
|
|
9c39388 |
|
|
|
5bb0934 |
* Mon Oct 06 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21.1-1
|
|
|
5bb0934 |
- New upstream bugfix release
|
|
|
5bb0934 |
- resolves: #465228 - prelude-admin is looking for tls.conf in /usr
|
|
|
5bb0934 |
|
|
|
c49cc06 |
* Fri Sep 19 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21-1
|
|
|
c49cc06 |
- New upstream bugfix release
|
|
|
9230fa2 |
|
|
|
5ebb0b0 |
* Tue Sep 09 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.20.2-1
|
|
|
5ebb0b0 |
- New upstream bugfix release
|
|
|
5ebb0b0 |
|
|
|
502cad1 |
* Fri Sep 05 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.20.1-1
|
|
|
502cad1 |
- New upstream bugfix release
|
|
|
502cad1 |
- Get rid of rpath and enable test suite except on PPC
|
|
|
c1d46f3 |
|
|
|
527d138 |
* Wed Sep 03 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.20-1
|
|
|
527d138 |
- New upstream release
|
|
|
527d138 |
|
|
|
3ff3bfa |
* Tue Aug 05 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.19-1
|
|
|
3ff3bfa |
- New upstream release with ruby bindings
|
|
|
3ff3bfa |
|
|
|
322772c |
* Mon Jul 21 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.18.1-1
|
|
|
322772c |
- New upstream version
|
|
|
322772c |
|
|
|
560bced |
* Fri Jul 04 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.17.2-1
|
|
|
560bced |
- Update to latest upstream and update perl bindings generation (#453932)
|
|
|
560bced |
|
|
|
0e4ff70 |
* Wed Jun 25 2008 Tomas Mraz <tmraz@redhat.com> - 0.9.17.1-2
|
|
|
0e4ff70 |
- fixed build of perl bindings
|
|
|
0e4ff70 |
|
|
|
0e4ff70 |
* Tue Jun 24 2008 Steve Grubb <sgrubb@redhat.com>
|
|
|
26e84b5 |
- rebuild for new gnutls
|
|
|
26e84b5 |
|
|
|
9015419 |
* Fri May 02 2008 Steve Grubb <sgrubb@redhat.com> 0.9.17.1-1
|
|
|
9015419 |
- New upstream version
|
|
|
9015419 |
|
|
|
cfb2da9 |
* Thu Apr 24 2008 Steve Grubb <sgrubb@redhat.com> 0.9.17-1
|
|
|
cfb2da9 |
- New upstream version
|
|
|
cfb2da9 |
|
|
|
17da743 |
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.16.2-2
|
|
|
17da743 |
- Autorebuild for GCC 4.3
|
|
|
17da743 |
|
|
|
67aad0c |
* Wed Jan 23 2008 Steve Grubb <sgrubb@redhat.com> 0.9.16.2-1
|
|
|
67aad0c |
- New upstream version
|
|
|
67aad0c |
|
|
|
0af2a5a |
* Mon Jan 14 2008 Steve Grubb <sgrubb@redhat.com> 0.9.16.1-1
|
|
|
0af2a5a |
- moved to new upstream version 0.9.16.1
|
|
|
0af2a5a |
|
|
|
7b55f26 |
* Tue Feb 20 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.13-1
|
|
|
7b55f26 |
- moved to new upstream version 0.9.13-1
|
|
|
7b55f26 |
|
|
|
6451925 |
* Fri Jan 05 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.12.1-1
|
|
|
6451925 |
- moved to new upstream version 0.9.12.1
|
|
|
6451925 |
|
|
|
adee5b9 |
* Tue Dec 30 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-6
|
|
|
adee5b9 |
- fixed x86_86 arch problem
|
|
|
adee5b9 |
|
|
|
123f768 |
* Tue Dec 30 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-5
|
|
|
123f768 |
- added ExcludeArch
|
|
|
123f768 |
|
|
|
6116547 |
* Tue Dec 29 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-4
|
|
|
6116547 |
- resolved permission problems
|
|
|
6116547 |
- added new docs
|
|
|
6116547 |
|
|
|
6116547 |
* Tue Dec 25 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-3
|
|
|
6116547 |
- changed dir owner and preserved timestamps when building the package
|
|
|
6116547 |
- resolved rpath problems
|
|
|
6116547 |
|
|
|
6116547 |
* Fri Dec 22 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-2
|
|
|
6116547 |
- moved perl_sidearch into perl_vendorarch
|
|
|
6116547 |
- minor corrections in the spec file
|
|
|
6116547 |
|
|
|
6116547 |
* Fri Dec 22 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-1
|
|
|
6116547 |
- upgrade to latest upstream version 0.9.12
|
|
|
6116547 |
- minor corrections in the spec file
|
|
|
6116547 |
|
|
|
6116547 |
* Wed Dec 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-4
|
|
|
6116547 |
- removing smp-flag to debug perl- and python-problems
|
|
|
6116547 |
- added perl-bindings again
|
|
|
6116547 |
|
|
|
6116547 |
* Wed Dec 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-3
|
|
|
6116547 |
- disabled perl-bindings
|
|
|
6116547 |
|
|
|
6116547 |
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-2
|
|
|
6116547 |
- Some minor fixes in requirements
|
|
|
6116547 |
|
|
|
6116547 |
* Tue Oct 24 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-1
|
|
|
6116547 |
- New Fedora build based on release 0.9.11
|