diff --git a/extra/obs/_service b/extra/obs/_service new file mode 100644 index 0000000000000000000000000000000000000000..8ebfdd4806af9699f9aeeaed9fee5a2c6ef4818b --- /dev/null +++ b/extra/obs/_service @@ -0,0 +1,8 @@ +<services> + <service name="download_url"> + <param name="host">app.evandar.cz</param> + <param name="protocol">https</param> + <param name="path">/alib-proxy/down/1</param> + <param name="filename">algorithm-library.tar.gz</param> + </service> +</services> diff --git a/extra/obs/algorithms-library.spec b/extra/obs/algorithms-library.spec new file mode 100644 index 0000000000000000000000000000000000000000..5a332690e1d2caacddced39a5ec97c800164d05d --- /dev/null +++ b/extra/obs/algorithms-library.spec @@ -0,0 +1,177 @@ +# +# spec file for package MYPACK +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +# adresář ve staĹľenĂ©m tar.gz z _service se zdrojáky obsahuje adresář kterĂ˝ musĂ mĂt jmĂ©no ${Name}-${Version} + +Name: algorithms-library +Version: 0.0.1 +Release: 1%{?dist} +Summary: Theoretical computer science datastructures and algorithms implementation +License: GPL-3.0-or-later +Group: System/Libraries +Url: https://gitlab.fit.cvut.cz/algorithms-library-toolkit/automata-library +Source0: algorithms-library.tar.gz +Patch0: remove-werror.patch +Patch1: install-path.patch +BuildRequires: python3 cmake gcc-c++ curl bash make libxml2-devel cppunit-devel tclap readline-devel libQt5Widgets-devel libQt5Xml-devel graphviz-devel jsoncpp-devel +Requires: readline libxml2 libQt5Widgets5 + +%description +Theoretical computer science datastructures and algorithms implementation. + +The library provides graphical and console interface similar to bash with many classical algorithms manipulating automata, grammars, regular expressions, trees and strings. + +#------------------------------------------------------------------ + +%prep +%setup -q +%patch0 -p0 +%patch1 -p0 + +%build +./CMake/generate.py -w -m + +mkdir debug +cd debug +cmake -DCMAKE_BUILD_TYPE=Release .. +make -j5 + +%install +cd debug +%makeinstall + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +/usr/bin/aaccess2 +/usr/bin/aarbology2 +/usr/bin/acast2 +/usr/bin/acompaction2 +/usr/bin/acompare2 +/usr/bin/aconversions2 +/usr/bin/aconvert2 +/usr/bin/aderivation2 +/usr/bin/adeterminize2 +/usr/bin/aecho2 +/usr/bin/aepsilon2 +/usr/bin/agenerate2 +/usr/bin/agui2 +/usr/bin/aintegral2 +/usr/bin/aintrospection2 +/usr/bin/alangop2 +/usr/bin/aminimize2 +/usr/bin/anormalize2 +/usr/bin/aql2 +/usr/bin/aquery2 +/usr/bin/arand2 +/usr/bin/araw2 +/usr/bin/arename2 +/usr/bin/areverse2 +/usr/bin/arun2 +/usr/bin/astat2 +/usr/bin/astringology2 +/usr/bin/atrim2 +/usr/bin/tniceprint + +/usr/lib/libalib2abstraction.so +/usr/lib/libalib2abstraction.so.0 +/usr/lib/libalib2abstraction.so.0.0.1 + +/usr/lib/libalib2algo.so +/usr/lib/libalib2algo.so.0 +/usr/lib/libalib2algo.so.0.0.1 + +/usr/lib/libalib2algo_experimental.so +/usr/lib/libalib2algo_experimental.so.0 +/usr/lib/libalib2algo_experimental.so.0.0.1 + +/usr/lib/libalib2aux.so +/usr/lib/libalib2aux.so.0 +/usr/lib/libalib2aux.so.0.0.1 + +/usr/lib/libalib2cli.so +/usr/lib/libalib2cli.so.0 +/usr/lib/libalib2cli.so.0.0.1 + +/usr/lib/libalib2common.so +/usr/lib/libalib2common.so.0 +/usr/lib/libalib2common.so.0.0.1 + +/usr/lib/libalib2data.so +/usr/lib/libalib2data.so.0 +/usr/lib/libalib2data.so.0.0.1 + +/usr/lib/libalib2data_experimental.so +/usr/lib/libalib2data_experimental.so.0 +/usr/lib/libalib2data_experimental.so.0.0.1 + +/usr/lib/libalib2dummy.so +/usr/lib/libalib2dummy.so.0 +/usr/lib/libalib2dummy.so.0.0.1 + +/usr/lib/libalib2elgo.so +/usr/lib/libalib2elgo.so.0 +/usr/lib/libalib2elgo.so.0.0.1 + +/usr/lib/libalib2graph_algo.so +/usr/lib/libalib2graph_algo.so.0 +/usr/lib/libalib2graph_algo.so.0.0.1 + +/usr/lib/libalib2graph_data.so +/usr/lib/libalib2graph_data.so.0 +/usr/lib/libalib2graph_data.so.0.0.1 + +/usr/lib/libalib2gui.so +/usr/lib/libalib2gui.so.0 +/usr/lib/libalib2gui.so.0.0.1 + +/usr/lib/libalib2measure.so +/usr/lib/libalib2measure.so.0 +/usr/lib/libalib2measure.so.0.0.1 + +/usr/lib/libalib2raw.so +/usr/lib/libalib2raw.so.0 +/usr/lib/libalib2raw.so.0.0.1 + +/usr/lib/libalib2raw_cli_integration.so +/usr/lib/libalib2raw_cli_integration.so.0 +/usr/lib/libalib2raw_cli_integration.so.0.0.1 + +/usr/lib/libalib2std.so +/usr/lib/libalib2std.so.0 +/usr/lib/libalib2std.so.0.0.1 + +/usr/lib/libalib2str.so +/usr/lib/libalib2str.so.0 +/usr/lib/libalib2str.so.0.0.1 + +/usr/lib/libalib2str_cli_integration.so +/usr/lib/libalib2str_cli_integration.so.0 +/usr/lib/libalib2str_cli_integration.so.0.0.1 + +/usr/lib/libalib2xml.so +/usr/lib/libalib2xml.so.0 +/usr/lib/libalib2xml.so.0.0.1 + +%changelog +* Wed Nov 14 2018 Jan Travnicek <Jan.Travnicek@fit.cvut.cz> 0.0.1-1 +- Initial RPM release diff --git a/extra/obs/install-path.patch b/extra/obs/install-path.patch new file mode 100644 index 0000000000000000000000000000000000000000..06a622c4770b9ec138badfcdaab27508e33d0e9d --- /dev/null +++ b/extra/obs/install-path.patch @@ -0,0 +1,12 @@ +diff --git CMake/CMakeLists_root.txt CMake/CMakeLists_root.txt +index 70f40be32..a649470c8 100644 +--- CMake/CMakeLists_root.txt ++++ CMake/CMakeLists_root.txt +@@ -118,6 +118,7 @@ endif() + # Cpp version + set(CMAKE_CXX_STANDARD {{cpp_version}}) + ++set(CMAKE_INSTALL_PREFIX /usr) + set(CMAKE_INSTALL_RPATH "${{CMAKE_INSTALL_PREFIX}}/lib") + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + diff --git a/extra/obs/remove-werror.patch b/extra/obs/remove-werror.patch new file mode 100644 index 0000000000000000000000000000000000000000..62565f1c31f96af2238512e61d2428466fbb775d --- /dev/null +++ b/extra/obs/remove-werror.patch @@ -0,0 +1,13 @@ +diff --git CMake/CMakeLists_root.txt CMake/CMakeLists_root.txt +index 70f40be32..a2f4a971a 100644 +--- CMake/CMakeLists_root.txt ++++ CMake/CMakeLists_root.txt +@@ -78,7 +78,7 @@ endif () + # Flags according to Debug/Release decision + # - CMake uses -g on Debug implicitly + # - fPIC for libraries will be enabled explicitly +-set(ALIB_BUILD_FLAGS_COMMON -Wall -pedantic -pipe -Wextra -Werror -Wshadow -Wpointer-arith -Wcast-qual -Wdelete-non-virtual-dtor -Wredundant-decls) ++set(ALIB_BUILD_FLAGS_COMMON -Wall -pedantic -pipe -Wextra -Wshadow -Wpointer-arith -Wcast-qual -Wdelete-non-virtual-dtor -Wredundant-decls) + set(ALIB_BUILD_FLAGS_DEBUG ${{ALIB_BUILD_FLAGS_COMMON}} -Og) + set(ALIB_BUILD_FLAGS_RELEASE ${{ALIB_BUILD_FLAGS_COMMON}} -O3) +