From: Elan Ruusamäe Date: Sat, 25 Jul 2015 11:14:24 +0000 (+0300) Subject: include third-party tarball, update BR X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=746ea4b4d2b5543bf82dd5f56ec63c342d6b57fd;p=packages%2Fosquery.git include third-party tarball, update BR --- diff --git a/osquery.spec b/osquery.spec index 0883790..b3defe7 100644 --- a/osquery.spec +++ b/osquery.spec @@ -6,7 +6,25 @@ License: BSD Group: Applications/Databases Source0: https://github.com/facebook/osquery/archive/%{version}/%{name}-%{version}.tar.gz # Source0-md5: af772f7fe7b9b9a3e8ef2abfa69c2d04 +Source1: https://github.com/osquery/third-party/archive/%{version}/%{name}-third-party-%{version}.tar.gz +# Source1-md5: 940f351cef7965b0f57df70d54885ded URL: https://osquery.io/ +BuildRequires: bzip2-devel +BuildRequires: cryptsetup-devel +BuildRequires: device-mapper-devel +BuildRequires: doxygen +BuildRequires: gflags-devel +BuildRequires: iptables-devel +BuildRequires: libblkid-devel +BuildRequires: libdpkg-devel +BuildRequires: libgcrypt-devel +BuildRequires: libuuid-devel +BuildRequires: ncurses-devel +BuildRequires: openssl-devel +BuildRequires: python +BuildRequires: readline-devel +BuildRequires: thrift-devel +BuildRequires: udev-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -17,14 +35,21 @@ concepts such as running processes, loaded kernel modules, open network connections, browser plugins, hardware events or file hashes. %prep -%setup -q +%setup -q -a1 + +mv third-party-%{version}/* third-party %build -%{__make} deps +install -d build +cd build +%cmake \ + .. +%{__make} \ + CTEST_OUTPUT_ON_FAILURE=1 %install rm -rf $RPM_BUILD_ROOT -%{__make} install \ +%{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT %clean