Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:infrastructure
OOMAnalyser
OOMAnalyser.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File OOMAnalyser.spec of Package OOMAnalyser
# # spec file for package OOMAnalyser # # Copyright (c) 2023 Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net> # # 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 https://bugs.opensuse.org/ # Name: OOMAnalyser Version: 0.1 Release: 0 Summary: Web page for parsing OOM kernel logs License: MIT Group: Productivity/Other URL: https://github.com/openSUSE/oom-o-o Source0: _service Source1: node_modules.txz Source2: README.SUSE BuildRequires: nodejs-common BuildRequires: python39-Transcrypt BuildArch: noarch %description OOMAnalyser is a static web page which transforms OOM messages of the Linux kernel into a more user-friendly format. OOMAnalyser consists of a web page into whose input field the OOM message is copied. JavaScript code extracts the data from it and displays the details. All processing takes place in the browser. No data is transferred to external servers. This makes it possible to use a locally stored copy of the website for analysis. This project is written in Python and uses Transcrypt to translate Python code into JavaScript. %prep mv %{_sourcedir}/oom-o-o-%{version} %{name}-%{version} %setup -DTqa1 cp %{SOURCE2} . %build # Really ugly hacks to make this compile on Leap: # - mypy because there is no python39-mypy on Leap (Transcrypt works fine with the Python 3.6 version of mypy here) # - typed-ast needed because the mypy shipped with 15.4 does not allow the 15.4 shipped typed-ast version (albeit working fine for this) # note: this is only needed for building, the result is a static web page without any dependencies %if 0%{?suse_version} <= 1500 mkdir python-temp cp -r %{_prefix}/lib/python3.6/site-packages/mypy* python-temp cp -r %{_prefix}/lib64/python3.6/site-packages/typed_ast* python-temp sed -i 's/typed-ast.*/typed-ast==1.4.1/' python-temp/mypy-*-py3.6.egg-info/requires.txt export PYTHONPATH="%{_prefix}/lib/python3.9/site-packages:$PWD/python-temp" %endif transcrypt --build --map --nomin -e 6 OOMAnalyser.py node_modules/rollup/dist/bin/rollup --config rollup.config.mjs %install install -dm 0755 %{buildroot}/srv/www/%{name} install -m0644 %{name}.{html,js} %{buildroot}/srv/www/%{name} %files %license LICENSE.txt %doc README.md README.SUSE %dir /srv/www/%{name} /srv/www/%{name}/%{name}.{html,js} %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