Advertisement
Guest User

libprelude 3.1.0 Fedora

a guest
Oct 31st, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %global major                   23
  2. %global libname                 libprelude%{major}
  3. %global cppmajor                8
  4. %global libcpp                  libpreludecpp%{cppmajor}
  5. %global libnamedevel            libprelude-devel
  6.  
  7. Name:           libprelude
  8. Version:        3.1.0
  9. Release:        24%{?dist}
  10. Summary:        Secure Connections between all Sensors and the Prelude Manager
  11. # Prelude is GPL-2.0+
  12. # libmissing is LGPL-2.1+
  13. # libmissing/test is GPL-3.0+
  14. License:        GPLv2+ and LGPLv2+ and GPLv3+
  15. Group:          System Environment/Libraries
  16. URL:            https://www.prelude-siem.org/
  17. Source0:        https://www.prelude-siem.org/pkg/src/3.1.0/%{name}-%{version}.tar.gz
  18. # https://www.prelude-siem.org/issues/859
  19. Patch0:         libprelude-3.1.0-linking.patch
  20. # https://www.prelude-siem.org/issues/860
  21. Patch1:         libprelude-3.1.0-ruby_vendorarchdir.patch
  22. BuildRequires:  bison
  23. BuildRequires:  chrpath
  24. BuildRequires:  flex
  25. BuildRequires:  gtk-doc
  26. BuildRequires:  swig
  27. BuildRequires:  libgcrypt-devel
  28. BuildRequires:  libgpg-error-devel
  29. BuildRequires:  libtool-ltdl-devel
  30. BuildRequires:  perl-devel
  31. BuildRequires:  pkgconfig(gnutls)
  32. BuildRequires:  pkgconfig(lua) >= 5.2
  33. BuildRequires:  pkgconfig(python2)
  34. BuildRequires:  pkgconfig(python3)
  35. BuildRequires:  pkgconfig(ruby)
  36. BuildRequires:  pkgconfig(zlib)
  37.  
  38. %description
  39. Libprelude is a collection of generic functions providing communication
  40. between all Sensors, like IDS (Intrusion Detection System), and the Prelude
  41. Manager. It provides a convenient interface for sending and receiving IDMEF
  42. (Information and Event Message Exchange Format) alerts to Prelude Manager with
  43. transparent SSL, failover and replication support, asynchronous events and
  44. timer interfaces, an abstracted configuration API (hooking at the commandline,
  45. the configuration line, or wide configuration, available from the Manager), and
  46. a generic plugin API. It allows you to easily turn your favorite security
  47. program into a Prelude sensor.
  48.  
  49. %package -n %{libname}
  50. Summary:        Prelude Hybrid Intrusion Detection System Library
  51. Provides:       %{name}%{?_isa} = %{version}-%{release}
  52.  
  53. %description -n %{libname}
  54. The Prelude Library is a collection of generic functions providing
  55. communication between the Prelude Hybrid IDS suite components. It
  56. provides a convenient interface for sending alerts to Prelude
  57. Manager with transparent SSL, failover and replication support,
  58. asynchronous events and timer interfaces, an abstracted
  59. configuration API (hooking at the commandline, the configuration
  60. line, or wide configuration, available from the Manager), and a
  61. generic plugin API. It allows you to easily turn your favorite
  62. security program into a Prelude sensor.
  63.  
  64. %package -n %{libcpp}
  65. Summary:        Prelude Hybrid Intrusion Detection System Library
  66.  
  67. %description -n %{libcpp}
  68. The Prelude Library is a collection of generic functions providing
  69. communication between the Prelude Hybrid IDS suite components. It
  70. provides a convenient interface for sending alerts to Prelude
  71. Manager with transparent SSL, failover and replication support,
  72. asynchronous events and timer interfaces, an abstracted
  73. configuration API (hooking at the commandline, the configuration
  74. line, or wide configuration, available from the Manager), and a
  75. generic plugin API. It allows you to easily turn your favorite
  76. security program into a Prelude sensor.
  77.  
  78. %package -n %{libnamedevel}
  79. Summary:        Libraries, includes, etc. for developing Prelude IDS sensors
  80. Requires:       %{libname}%{?_isa} = %{version}-%{release}
  81. Requires:       %{libcpp}%{?_isa} = %{version}-%{release}
  82. Requires:       libtool-ltdl-devel
  83. Provides:       %{name}%{?_isa}-devel = %{version}-%{release}
  84. Provides:       prelude-devel = %{version}-%{release}
  85.  
  86. %description -n %{libnamedevel}
  87. Libraries, include files, etc you can use to develop Prelude IDS
  88. sensors using the Prelude Library. The Prelude Library is a
  89. collection of generic functions providing communication between
  90. the Prelude Hybrid IDS suite componentst It provides a convenient
  91. interface for sending alerts to Prelude Manager with transparent
  92. SSL, failover and replication support, asynchronous events and
  93. timer interfaces, an abstracted configuration API (hooking at the
  94. commandline, the configuration line, or wide configuration,
  95. available from the Manager), and a generic plugin API. It allows
  96. you to easily turn your favorite security program into a Prelude
  97. sensor.
  98.  
  99. %package -n prelude-tools
  100. Summary:        The interface for %{libname}
  101. Requires:       %{libname}%{?_isa} = %{version}-%{release}
  102.  
  103. %description -n prelude-tools
  104. Provides a convenient interface for sending alerts to Prelude
  105. Manager.
  106.  
  107. %package -n python-prelude
  108. Summary:        Python 2 bindings for prelude
  109. Requires:       %{libname}%{?_isa} = %{version}-%{release}
  110.  
  111. %description -n python-prelude
  112. Provides python 2 bindings for prelude.
  113.  
  114. %package -n python3-prelude
  115. Summary:        Python 3 bindings for prelude
  116. Requires:       %{libname}%{?_isa} = %{version}-%{release}
  117.  
  118. %description -n python3-prelude
  119. Provides python 3 bindings for prelude.
  120.  
  121. %package -n perl-prelude
  122. Summary:        Perl bindings for prelude
  123. Requires:       %{libname}%{?_isa} = %{version}-%{release}
  124.  
  125. %description -n perl-prelude
  126. Provides perl bindings for prelude.
  127.  
  128. %package -n ruby-prelude
  129. Summary:        Ruby bindings for prelude
  130. Requires:       %{libname}%{?_isa} = %{version}-%{release}
  131.  
  132. %description -n ruby-prelude
  133. Provides ruby bindings for prelude.
  134.  
  135. %package -n lua-prelude
  136. Summary:        Lua bindings for prelude
  137. Requires:       %{libname}%{?_isa} = %{version}-%{release}
  138. Requires:       lua
  139.  
  140. %description -n lua-prelude
  141. Provides Lua bindings for prelude generated by SWIG.
  142.  
  143. %package doc
  144. Summary:        Libprelude documentation
  145.  
  146. %description doc
  147. Libprelude documentation files.
  148.  
  149. %prep
  150. %setup -q
  151. %autopatch -p1
  152.  
  153. %build
  154. %configure \
  155.     --without-included-ltdl \
  156.     --disable-static \
  157.     --enable-shared \
  158.     --with-swig \
  159.     --with-python2 \
  160.     --with-python3 \
  161.     --with-ruby \
  162.     --with-lua \
  163.     --with-perl-installdirs=vendor \
  164.     --without-included-regex \
  165.     --includedir=%{_includedir}/%{name} \
  166.     --enable-gtk-doc \
  167.     --with-html-dir=%{_docdir}/%{libnamedevel}
  168. %make_build
  169.  
  170. %install
  171. %make_install
  172.  
  173. %{_bindir}/chrpath -d %{buildroot}%{_libdir}/*.so.*
  174.  
  175. find %{buildroot} -name '*.la' -delete
  176. find %{buildroot} -name 'perllocal.pod' -delete
  177. find %{buildroot} -name '.packlist' -delete
  178.  
  179. %post -n %{libname} -p /sbin/ldconfig
  180. %postun -n %{libname} -p /sbin/ldconfig
  181.  
  182. %post -n %{libcpp} -p /sbin/ldconfig
  183. %postun -n %{libcpp} -p /sbin/ldconfig
  184.  
  185. %files -n %{libname}
  186. %{_libdir}/libprelude.so.%{major}
  187. %{_libdir}/libprelude.so.%{major}.*
  188.  
  189. %files -n %{libcpp}
  190. %{_libdir}/libpreludecpp.so.%{cppmajor}
  191. %{_libdir}/libpreludecpp.so.%{cppmajor}.*
  192.  
  193. %files -n %{libnamedevel}
  194. %{_datadir}/%{name}
  195. %{_datadir}/%{name}/swig
  196. %{_bindir}/%{name}-config
  197. %{_libdir}/*.so
  198. %{_libdir}/pkgconfig/*.pc
  199. %{_includedir}/%{name}/
  200. %{_datadir}/aclocal/*.m4
  201. %{_mandir}/man1/%{name}-config.1*
  202.  
  203. %files -n prelude-tools
  204. # Force default attrs because libprelude force others
  205. %defattr(- , root, root, 755)
  206. %{_bindir}/prelude-adduser
  207. %{_bindir}/prelude-admin
  208. %{_mandir}/man1/prelude-admin.1*
  209. %dir %{_sysconfdir}/prelude
  210. %dir %{_sysconfdir}/prelude/default
  211. %dir %{_sysconfdir}/prelude/profile
  212. %config(noreplace)  %{_sysconfdir}/prelude/default/*.conf
  213. %dir %{_var}/spool/prelude
  214.  
  215. %files -n python-prelude
  216. %{python2_sitearch}/*
  217.  
  218. %files -n python3-prelude
  219. %{python3_sitearch}/*
  220.  
  221. %files -n perl-prelude
  222. %{perl_vendorarch}/*.pm
  223. # Force attrs because libprelude set it to 555
  224. %attr(755, root, root) %{perl_vendorarch}/auto/Prelude/Prelude.so
  225.  
  226. %files -n ruby-prelude
  227. %{ruby_vendorarchdir}/*
  228.  
  229. %files -n lua-prelude
  230. %{_libdir}/lua/*/prelude.so
  231.  
  232. %files doc
  233. %{_docdir}/%{libnamedevel}
  234. %license COPYING
  235. %doc AUTHORS ChangeLog README NEWS LICENSE.README HACKING.README
  236.  
  237. %changelog
  238. * Wed Oct 19 2016 Thomas Andrejak <thomas.andrejak@gmail.com> - 1:3.1.0-1
  239. - Bump version
  240.  
  241. * Sun Mar 10 2013 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-17
  242. - Rebuild with new gnutls
  243.  
  244. * Thu Sep 06 2012 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-16
  245. - Add provides bundled gnulib
  246.  
  247. * Wed Aug 08 2012 Petr Pisar <ppisar@redhat.com> - 1:1.0.0-15
  248. - Fix building with glibc-2.16.6 (bug #839602)
  249.  
  250. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-14
  251. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  252.  
  253. * Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 1:1.0.0-13
  254. - Perl 5.16 rebuild
  255.  
  256. * Tue Mar 13 2012 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-12
  257. - Drop support for ruby
  258.  
  259. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-11
  260. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  261.  
  262. * Tue Jul 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-10
  263. - Perl mass rebuild
  264.  
  265. * Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-9
  266. - Fix gcc 4.6 C++ bug (#715983)
  267.  
  268. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-8
  269. - Perl mass rebuild
  270.  
  271. * Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-7
  272. - Perl 5.14 mass rebuild
  273.  
  274. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-6
  275. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  276.  
  277. * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.0.0-5
  278. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  279.  
  280. * Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.0.0-4
  281. - Mass rebuild with perl-5.12.0
  282.  
  283. * Sun May 02 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0-3
  284. - Fix requires statements
  285.  
  286. * Fri Apr 30 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0-2
  287. - New upstream release
  288.  
  289. * Sat Jan 30 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0rc1-1
  290. - New upstream release
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement