Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mnhauke:security
snarf
snarf.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File snarf.spec of Package snarf
# # spec file for package snarf # # Copyright (c) 2014, Martin Hauke <mardnh@gmx.de> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define soname 0 Name: snarf Version: 0.2.4 Release: 0 Summary: Structured Network Alert Reporting Framework (snarf) License: LGPL-2.0 Group: System/Libraries Url: http://tools.netsa.cert.org/snarf Source: http://tools.netsa.cert.org/releases/%{name}-%{version}.tar.gz Patch1: snarf-fix-no-return-in-nonvoid-function-snarfd.diff Patch2: snarf-fix-implicit-pointer-decl-sink_email.diff BuildRequires: fdupes BuildRequires: glib2-devel BuildRequires: python-devel BuildRequires: python-netsa BuildRequires: python-protobuf BuildRequires: python-pyzmq BuildRequires: pkg-config BuildRequires: pkgconfig(libprotobuf-c) BuildRequires: libyaml-devel BuildRequires: zeromq-devel = 2.2.0 # configure is checking for /sbin/sendmail BuildRequires: sendmail #BuildRequires: doxygen BuildRoot: %{_tmppath}/%{name}-%{version}-build %description snarf is a distributed alert reporting system. Applications can use snarf's C and Python APIs to construct and send network alert messages, which can then be routed to multiple destinations in a configurable manner. This subpackage contains a c library for constructing, sending and receiving snarf alerts. %package -n libsnarf%{soname} Summary: Structured Network Alert Reporting Framework (snarf) License: LGPL-2.0 Group: Development/Libraries/C and C++ %description -n libsnarf%{soname} snarf is a distributed alert reporting system. Applications can use snarf's C and Python APIs to construct and send network alert messages, which can then be routed to multiple destinations in a configurable manner. %package -n libsnarf-devel Summary: Static libraries and C header files for libsnarf License: LGPL-2.0 Group: Development/Libraries/C and C++ Requires: libsnarf%{soname} = %{version} %description -n libsnarf-devel snarf is a distributed alert reporting system. Applications can use snarf's C and Python APIs to construct and send network alert messages, which can then be routed to multiple destinations in a configurable manner. This subpackage contains libraries and header files for developing applications that want to make use of libsnarf. %package -n python-snarf Summary: Python bindings to snarf License: LGPL-2.0 Group: Development/Libraries/C and C++ Requires: libsnarf%{soname} = %{version} %description -n python-snarf snarf is a distributed alert reporting system. Applications can use snarf's C and Python APIs to construct and send network alert messages, which can then be routed to multiple destinations in a configurable manner. This subpackage contains python bindings for snarf. %prep %setup -q %patch1 -p1 %patch2 -p1 %build %configure make %{?_smp_mflags} %install %make_install mkdir -p %{buildroot}/%{_sysconfdir}/snarf/ # FIXME: init file handling - removed for now !!! mv %{buildroot}/%{_datadir}/snarf/snarf.conf.sample %{buildroot}/%{_sysconfdir}/snarf/ rm %{buildroot}/%{_datadir}/snarf/snarfd.sysconfig rm %{buildroot}/%{_datadir}/snarf/snarfd.init.d # Workaround for building and packaging the python module the correct way rm -rf %{buildroot}/%{python_sitelib}/* cd python python setup.py build python setup.py install --prefix=%{_prefix} --root=%{buildroot} # rm -f %{buildroot}/%{_libdir}/*.{la,a} %fdupes %{buildroot}/%{python_sitelib} %post -n libsnarf%{soname} -p /sbin/ldconfig %postun -n libsnarf%{soname} -p /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS COPYING NEWS README.rst %doc dstat_snarf.py %doc snarf-%{version}.pdf %{_bindir}/snarfd %{_bindir}/snarfc %{_mandir}/man?/snarf* %dir %{_sysconfdir}/snarf/ %config %{_sysconfdir}/snarf/snarf.conf.sample %files -n libsnarf%{soname} %defattr(-,root,root) %{_libdir}/libsnarf.so.* %files -n python-snarf %defattr(-,root,root) %{python_sitelib}/* %{_bindir}/snarf*.py %files -n libsnarf-devel %defattr(-,root,root) %dir %{_includedir}/snarf %{_includedir}/snarf/*.h %{_libdir}/libsnarf.so %{_libdir}/pkgconfig/libsnarf.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor