Package libpreludedb: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-python3 # END SourceDeps(oneline) Group: System/Libraries %add_optflags %optflags_shared # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} # API version for libpreludedb %global major 7 # API version for libpreludedb c++ binding %global cppmajor 2 Name: libpreludedb Version: 5.0.0 Release: alt1_1.1 Summary: Framework for easy access to the IDMEF database # Prelude is GPL-2.0+ # libmissing is LGPL-2.1+ License: GPLv2+ URL: https://www.prelude-siem.org/ Source0: https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz # https://www.prelude-siem.org/issues/866 Patch0: libpreludedb-5.0.0-manpages.patch # https://www.prelude-siem.org/issues/867 Patch1: libpreludedb-5.0.0-undefined_non_weak_symbol.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: bison BuildRequires: chrpath BuildRequires: flex BuildRequires: gtk-doc gtk-doc-mkpdf BuildRequires: glib2-devel libgio libgio-devel BuildRequires: swig BuildRequires: pkgconfig(gnutls) BuildRequires: libgpg-error-devel BuildRequires: libmariadb-devel BuildRequires: postgresql-devel BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(libprelude) >= %{version} BuildRequires: pkgconfig(openssl) BuildRequires: perl-devel BuildRequires: rpm-build-perl BuildRequires: python3-devel BuildRequires: pkgconfig(zlib) %ifnarch s390 BuildRequires: valgrind %endif Requires: preludedb-mysql Requires: preludedb-pgsql Requires: preludedb-sqlite3 # Upstream do not use explicit version of gnulib, just checkout # and update files. In libprelude 5.0.0, the checkout has been done # on 2018-09-03 Provides: bundled(gnulib) = 20180903 Source44: import.info %description The PreludeDB Library provides an abstraction layer upon the type and the format of the database used to store IDMEF alerts. It allows developers to use the Prelude IDMEF database easily and efficiently without worrying about SQL, and to access the database independently of the type/format of the database. %description -l ru_RU.UTF-8 PreludeDB библиотека предоставляет несколько уровеней абстракции и форматов баз данных для хранения IDMEF алертов. Она позволяет разработчикам использовать базу данных Prelude IDMEF легко и эффективно не беспокоясь о SQL, и получать доступ к базе данных независимо от ее формата. %package devel Group: Development/C Summary: Libraries and headers for PreludeDB Requires: %{name} = %{version}-%{release} %description devel Libraries and headers you can use to access Prelude database using the Prelude Library. The PreludeDB Library provides an abstraction layer upon the type and the format of the database used to store IDMEF alerts. It allows developers to use the Prelude IDMEF database easily and efficiently without worrying about SQL, and to access the database independently of the type/format of the database. %package -n preludedb-tools Group: System/Libraries Summary: Command-line tools for %{name} Requires: %{name} = %{version}-%{release} %description -n preludedb-tools Provides a convenient interface for accessing Prelude alerts. %package -n python3-module-preludedb Group: System/Libraries Summary: Python 3 bindings for preludedb Requires: %{name} = %{version}-%{release} %{?python_provide:%python_provide python%{python3_pkgversion}-preludedb} %description -n python3-module-preludedb Provides python 3 bindings for preludedb. %package -n preludedb-mysql Group: System/Libraries Summary: Plugin to use prelude with a MySQL database Requires: %{name} = %{version}-%{release} %description -n preludedb-mysql This plugin authorize prelude to store alerts into a MySQL database. %package -n preludedb-pgsql Group: System/Libraries Summary: Plugin to use prelude with a PostgreSQL database Requires: %{name} = %{version}-%{release} %description -n preludedb-pgsql This plugin authorize prelude to store alerts into a PostgreSQL database. %package -n preludedb-sqlite3 Group: System/Libraries Summary: Plugin to use prelude with a SQLite3 database Requires: %{name} = %{version}-%{release} %description -n preludedb-sqlite3 This plugin authorize prelude to store alerts into a SQLite3 database. %package doc Group: System/Libraries Summary: Documentation for preludedb BuildArch: noarch %description doc Provides documentation for preludedb generated by gtk-doc. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %configure \ --disable-rpath \ --disable-static \ --enable-shared \ --includedir=%{_includedir}/%{name} \ --with-swig \ --with-perl-installdirs=vendor \ --without-python2 \ --with-python3 \ --enable-gtk-doc \ --with-html-dir=%{_docdir}/%{name}-devel sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool %make_build %install %makeinstall_std chrpath -d %{buildroot}%{_libdir}/*.so.* find %{buildroot} -name '*.la' -delete find %{buildroot} -name 'perllocal.pod' -delete find %{buildroot} -name '.packlist' -delete chmod +x %{buildroot}%{_datadir}/%{name}/classic/mysql2pgsql.sh chmod +x %{buildroot}%{_datadir}/%{name}/classic/mysql2sqlite.sh # Enable test again after fixing #1629893 #%check #%make_build check %files %{_libdir}/%{name}.so.%{major} %{_libdir}/%{name}.so.%{major}.* %{_libdir}/%{name}cpp.so.%{cppmajor} %{_libdir}/%{name}cpp.so.%{cppmajor}.* %dir %{_libdir}/%{name}/ %dir %{_libdir}/%{name}/plugins %dir %{_libdir}/%{name}/plugins/formats %dir %{_libdir}/%{name}/plugins/sql %{_libdir}/%{name}/plugins/formats/classic.so %doc --no-dereference COPYING LICENSE.README HACKING.README %doc README NEWS %files devel %{_datadir}/%{name} %{_bindir}/%{name}-config %{_libdir}/%{name}.so %{_libdir}/%{name}cpp.so %{_includedir}/%{name} %{_datadir}/aclocal/%{name}.m4 %{_mandir}/man1/%{name}-config.1* %files -n preludedb-tools %{_bindir}/preludedb-admin %{_mandir}/man1/preludedb-admin.1* %files -n python3-module-preludedb %{python3_sitelibdir}/_preludedb.*so %{python3_sitelibdir}/__pycache__/preludedb.cpython-??.*pyc %{python3_sitelibdir}/preludedb-%{version}-py?.?.egg-info %{python3_sitelibdir}/preludedb.py %files -n preludedb-mysql %{_libdir}/%{name}/plugins/sql/mysql.so %dir %{_datadir}/%{name}/classic %{_datadir}/%{name}/classic/mysql*.sql %files -n preludedb-pgsql %{_libdir}/%{name}/plugins/sql/pgsql.so %dir %{_datadir}/%{name}/classic %{_datadir}/%{name}/classic/pgsql*.sql %files -n preludedb-sqlite3 %{_libdir}/%{name}/plugins/sql/sqlite3.so %dir %{_datadir}/%{name}/classic %{_datadir}/%{name}/classic/sqlite*.sql %files doc %{_docdir}/%{name}-devel %doc --no-dereference COPYING LICENSE.README HACKING.README %doc ChangeLog README NEWS %changelog * Thu Apr 04 2019 Alexei Takaseev <taf@altlinux.org> 5.0.0-alt1_1.1 - Change BR libpq5.11-devel postgresql11-devel to postgresql-devel * Sat Mar 16 2019 Igor Vlasenko <viy@altlinux.ru> 5.0.0-alt1_1 - update to new release by fcimport * Tue Feb 19 2019 Igor Vlasenko <viy@altlinux.ru> 4.1.0-alt1_6 - new version * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 4.0.0-alt1_1.1 - (NMU) Rebuilt with python-3.6.4. * Sat Nov 25 2017 Igor Vlasenko <viy@altlinux.ru> 4.0.0-alt1_1 - new version * Thu Feb 02 2017 Igor Vlasenko <viy@altlinux.ru> 3.1.0-alt1_1 - new version * Thu Sep 25 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.6-alt1.rc2.git20140916 - Version 1.2.6rc2 * Tue Sep 23 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.6-alt1.rc1.git20140916 - Version 1.2.6rc1 * Fri Aug 30 2013 Vladimir Lettiev <crux@altlinux.ru> 1.0.0-alt3 - built for perl 5.18 * Sun Apr 14 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 1.0.0-alt2.qa1 - NMU: rebuilt with libmysqlclient.so.18. * Tue Sep 04 2012 Vladimir Lettiev <crux@altlinux.ru> 1.0.0-alt2 - rebuilt for perl-5.16 * Wed Aug 29 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.0-alt1.4 - Fixed build with new glibc * Mon Apr 16 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 1.0.0-alt1.3.1.1 - Rebuild to remove redundant libpython2.7 dependency * Mon Nov 07 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.0.0-alt1.3.1 - Rebuild with Python-2.7 * Mon Oct 17 2011 Alexey Tourbin <at@altlinux.ru> 1.0.0-alt1.3 - Rebuilt for perl-5.14 * Sat Mar 12 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.0-alt1.2 - Rebuilt for debuginfo * Fri Nov 05 2010 Vladimir Lettiev <crux@altlinux.ru> 1.0.0-alt1.1 - rebuilt with perl 5.12 * Tue Jul 27 2010 Slava Dubrovskiy <dubrsl@altlinux.org> 1.0.0-alt1 - New version * Wed Jan 13 2010 Slava Dubrovskiy <dubrsl@altlinux.org> 0.9.15.3-alt1 - New version * Wed Nov 25 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.15.1-alt3.1 - Rebuilt with python 2.6 * Mon Mar 09 2009 Slava Dubrovskiy <dubrsl@altlinux.org> 0.9.15.1-alt3 - Rename python-modules-%name to python-module-%name - Add Obsoletes: python-modules-%name <= 0.9.15.1-alt2 * Sun Jan 11 2009 Slava Dubrovskiy <dubrsl@altlinux.ru> 0.9.15.1-alt2 - Change requires from sqlite to sqlite3 in sqlite subpackage - Add instruction for setup sqlite database in post - Add groupadd and useradd in pre for sqlite subpackage * Sat Oct 18 2008 Slava Dubrovskiy <dubrsl@altlinux.ru> 0.9.15.1-alt1 - New version - Add description on ru_RU.UTF-8 - Add subpackage %name-devel-doc * Sat Jun 28 2008 Slava Dubrovskiy <dubrsl@altlinux.ru> 0.9.14.1-alt1 - Build for ALT |