Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mnhauke
coreemu
coreemu.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File coreemu.spec of Package coreemu
# # spec file for package coreemu # # Copyright (c) 2016-2021, 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/ # Name: coreemu Version: 7.5.0 Release: 0 Summary: Common Open Research Emulator for use with network namespaces License: BSD-2-Clause Group: System/Emulators/PC URL: https://www.nrl.navy.mil/itd/ncs/products/core Source: https://github.com/coreemu/core/archive/release-%{version}.tar.gz Source1: core-daemon.service BuildRequires: ImageMagick BuildRequires: autoconf BuildRequires: automake BuildRequires: bridge-utils BuildRequires: ebtables BuildRequires: ethtool BuildRequires: fdupes BuildRequires: help2man BuildRequires: iproute2 BuildRequires: openvswitch BuildRequires: pkgconfig BuildRequires: procps BuildRequires: python-dephell-rpm-macros # BuildRequires: python38-dephell # BuildRequires: python-rpm-macros BuildRequires: python3-grpcio-tools BuildRequires: python3-pip BuildRequires: python3-poetry BuildRequires: python3-setuptools BuildRequires: python3-sphinxcontrib-apidoc BuildRequires: pkgconfig(libev) # SECTION test requirements BuildRequires: python3-pytest BuildRequires: python3-mock BuildRequires: python3-netaddr BuildRequires: python3-Fabric BuildRequires: python3-Mako BuildRequires: python3-lxml BuildRequires: python3-pyproj # /SECTION Requires: python3-grpcio Requires: python3-pyproj Requires: python3-netaddr Requires: python3-Fabric Requires: python3-Mako Requires: python3-lxml Requires: bridge-utils Requires: ebtables Requires: iproute2 Requires: tcl Requires: tk Requires: tkimg Recommends: docker Recommends: frr Recommends: ipsec-tools Recommends: mgen Recommends: openvswitch Recommends: quagga Suggests: tcpdump Suggests: wireshark %description The Common Open Research Emulator provides Python modules and a GUI for building virtual networks using Linux network namespace containers and bridging. %prep %setup -q -n core-release-%{version} %build ./bootstrap.sh %configure \ --enable-docs=yes \ --enable-daemon=yes %make_build cd daemon %dephell_gensetup %python3_build %install %make_install cd daemon %python3_install install -d %{buildroot}%{_sysconfdir}/core/ install -m0660 data/core.conf data/logging.conf %{buildroot}%{_sysconfdir}/core/ install -m0755 scripts/core* %{buildroot}%{_bindir}/ install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/core-daemon.service # compat rc-symlink install -d %{buildroot}/%{_sbindir} ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rccore-daemon # Fix env-script-interpreter warnings #find scripts/ -iname "core*" | xargs sed -i 's|#!/usr/bin/env python3|#!/usr/bin/python3|g' # Delete examples from python sitelib # rm -R %{python3_sitelib}/examples %fdupes -s %{buildroot} %pre %service_add_pre core-daemon.service %post %service_add_post core-daemon.service %preun %service_del_preun core-daemon.service %postun %service_del_postun core-daemon.service %check ### FIXME #%# Don't run tests that require root/elevated privileges #%rm daemon/tests/test_distributed.py #%rm daemon/tests/test_core.py #%rm daemon/tests/test_grpc.py #%rm daemon/tests/test_gui.py #%rm daemon/tests/test_links.py #%rm daemon/tests/test_nodes.py #%rm daemon/tests/test_services.py #%rm daemon/tests/test_xml.py #%export PATH=$PATH:/usr/sbin/:%{buildroot}%{_bindir} #%cd daemon #%%pytest -k 'not (test_model_set or test_model_set_error or test_get_models)' #### TODO # * Servicefile testen # * alle Runtime-Abhängigkeiten testen - /bindir/core* mehr python zeugs # * -> /usr/lib/python3.8/site-packages/core/ # * besseres changelog # - python3 change # - verweis auf Changelog.md # - run testsuite # * kann man python3-sitelib examples löschenn -> die muss ich unbeding löschen !!! # * beim bau der docs exception dass da python modul nicht gefunden wird # -> [ 31s] No module named 'core' #[ 31s] WARNING: autodoc: failed to import module 'api.grpc.mobility_pb2' from module 'core'; the following exception was raised:... # * warnings aus dem post-build-scripts raus %files %license LICENSE %doc CHANGELOG.md README.md %dir %{_sysconfdir}/core %config(noreplace) %{_sysconfdir}/core/core.conf %config(noreplace) %{_sysconfdir}/core/logging.conf %{_bindir}/core-* %{_bindir}/coresendmsg %{_bindir}/netns %{_bindir}/vcmd %{_bindir}/vnoded %{_sbindir}/rccore-daemon %{_unitdir}/core-daemon.service %dir %{_prefix}/lib/core %dir %{_prefix}/lib/core/addons %{_prefix}/lib/core/addons/ipsecservice.tcl %{_prefix}/lib/core/*.tcl %{_datadir}/core %{_datadir}/pixmaps/core-gui.xpm %{_datadir}/applications/core-gui.desktop %{_mandir}/man1/*.1%{?ext_man} %{python3_sitelib}/core* %{python3_sitelib}/examples %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