]> git.pld-linux.org Git - packages/libpreludedb.git/blame - libpreludedb.spec
- initial pld release
[packages/libpreludedb.git] / libpreludedb.spec
CommitLineData
5211581e
AM
1%include /usr/lib/rpm/macros.perl
2Summary: The PreludeDB Library
3Name: libpreludedb
4%define _rc rc8
5Version: 0.9.0
6Release: 0.%{_rc}.1
7License: GPL
8Group: Libraries
9Source0: http://www.prelude-ids.org/download/releases/%{name}-%{version}-%{_rc}.tar.gz
10# Source0-md5: cbc7a78a5fbdb8efc640131abbb95d21
11URL: http://www.prelude-ids.org/
12BuildRequires: perl-devel
13BuildRequires: python-devel
14BuildRequires: libprelude-devel >= 0.9.0
15BuildRequires: mysql-devel
16BuildRequires: postgresql-devel
17BuildRequires: pkgconfig
18BuildRequires: gtk-doc
19BuildRequires: bison
20BuildRequires: flex
21BuildRequires: rpm-perlprov
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The PreludeDB Library provides an abstraction layer upon the type and
26the format of the database used to store IDMEF alerts. It allows
27developers to use the Prelude IDMEF database easily and efficiently
28without worrying about SQL, and to access the database independently
29of the type/format of the database.
30
31%package devel
32Summary: Header files and develpment documentation for libpreludedb
33Group: Development/Libraries
34Requires: %{name}-libs = %{epoch}:%{version}-%{release}
35
36%description devel
37Header files and develpment documentation for libpreludedb.
38
39%package static
40Summary: Static libpreludedb library
41Group: Development/Libraries
42Requires: %{name}-devel = %{epoch}:%{version}-%{release}
43
44%description static
45Static libpreludedb library.
46
47%package -n perl-libpreludedb
48Summary: libpreludedb perl bindings
49Group: Development/Languages/Perl
50
51%description -n perl-libpreludedb
52libpreludedb perl bindings.
53
54%package -n python-libpreludedb
55Summary: libpreludedb python bindings
56Group: Development/Languages/Python
57
58%description -n python-libpreludedb
59libpreludedb 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
76rm -rf $RPM_BUILD_ROOT
77
78%{__make} install \
79 DESTDIR=$RPM_BUILD_ROOT
80
81cd bindings/perl && %{__perl} Makefile.PL \
82 INSTALLDIRS=vendor
83cd ../..
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
91rm -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]
This page took 0.06765 seconds and 4 git commands to generate.