]>
Commit | Line | Data |
---|---|---|
5211581e AM |
1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: The PreludeDB Library | |
3 | Name: libpreludedb | |
4 | %define _rc rc8 | |
5 | Version: 0.9.0 | |
6 | Release: 0.%{_rc}.1 | |
7 | License: GPL | |
8 | Group: Libraries | |
9 | Source0: http://www.prelude-ids.org/download/releases/%{name}-%{version}-%{_rc}.tar.gz | |
10 | # Source0-md5: cbc7a78a5fbdb8efc640131abbb95d21 | |
11 | URL: http://www.prelude-ids.org/ | |
12 | BuildRequires: perl-devel | |
13 | BuildRequires: python-devel | |
14 | BuildRequires: libprelude-devel >= 0.9.0 | |
15 | BuildRequires: mysql-devel | |
16 | BuildRequires: postgresql-devel | |
17 | BuildRequires: pkgconfig | |
18 | BuildRequires: gtk-doc | |
19 | BuildRequires: bison | |
20 | BuildRequires: flex | |
21 | BuildRequires: rpm-perlprov | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | The PreludeDB Library provides an abstraction layer upon the type and | |
26 | the format of the database used to store IDMEF alerts. It allows | |
27 | developers to use the Prelude IDMEF database easily and efficiently | |
28 | without worrying about SQL, and to access the database independently | |
29 | of the type/format of the database. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files and develpment documentation for libpreludedb | |
33 | Group: Development/Libraries | |
34 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files and develpment documentation for libpreludedb. | |
38 | ||
39 | %package static | |
40 | Summary: Static libpreludedb library | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static libpreludedb library. | |
46 | ||
47 | %package -n perl-libpreludedb | |
48 | Summary: libpreludedb perl bindings | |
49 | Group: Development/Languages/Perl | |
50 | ||
51 | %description -n perl-libpreludedb | |
52 | libpreludedb perl bindings. | |
53 | ||
54 | %package -n python-libpreludedb | |
55 | Summary: libpreludedb python bindings | |
56 | Group: Development/Languages/Python | |
57 | ||
58 | %description -n python-libpreludedb | |
59 | libpreludedb python bindings. | |
60 | ||
61 | %prep | |
62 | %setup -q -n %{name}-%{version}-%{_rc} | |
63 | ||
64 | %build | |
65 | %configure \ | |
66 | --enable-shared \ | |
67 | --enable-static \ | |
68 | --enable-perl \ | |
69 | --enable-python \ | |
70 | --enable-gtk-doc \ | |
71 | --with-html-dir=%{_gtkdocdir}/libpreludedb | |
72 | ||
73 | %{__make} | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | cd bindings/perl && %{__perl} Makefile.PL \ | |
82 | INSTALLDIRS=vendor | |
83 | cd ../.. | |
84 | %{__make} -C bindings/perl install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
88 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
98 | %doc AUTHORS ChangeLog NEWS README | |
99 | %attr(755,root,root) %{_bindir}/prelude-db-create.sh | |
100 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
101 | %dir %{_libdir}/%{name} | |
102 | %dir %{_libdir}/%{name}/plugins | |
103 | %dir %{_libdir}/%{name}/plugins/* | |
104 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*/*.so | |
105 | %{_libdir}/%{name}/plugins/*/*.la | |
106 | %{_datadir}/%{name} | |
107 | ||
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
110 | %attr(755,root,root) %{_bindir}/libpreludedb-config | |
111 | %attr(755,root,root) %{_libdir}/lib*.so | |
112 | %{_libdir}/lib*.la | |
113 | %{_includedir}/libpreludedb | |
114 | %{_aclocaldir}/*.m4 | |
115 | %{_gtkdocdir}/libpreludedb | |
116 | ||
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/lib*.a | |
120 | ||
121 | %files -n perl-libpreludedb | |
122 | %defattr(644,root,root,755) | |
123 | %dir %{perl_vendorarch}/auto/PreludeDB | |
124 | %attr(755,root,root) %{perl_vendorarch}/auto/PreludeDB/*.so | |
125 | %{perl_vendorarch}/auto/PreludeDB/*.bs | |
126 | %{perl_vendorarch}/PreludeDB.pm | |
127 | ||
128 | %files -n python-libpreludedb | |
129 | %defattr(644,root,root,755) | |
130 | %attr(755,root,root) %{py_sitedir}/*.so | |
131 | %{py_sitedir}/*.py[co] |