Guest User

Untitled

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