diff --git a/extra/obs/_service b/extra/obs/_service
index 8ebfdd4806af9699f9aeeaed9fee5a2c6ef4818b..2e3b06cb16a49b22a9d1ae30508dacc859482b99 100644
--- a/extra/obs/_service
+++ b/extra/obs/_service
@@ -2,7 +2,7 @@
   <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>
+    <param name="path">/alib-proxy/api/download/518/release</param>
+    <param name="filename">algorithms-library.tar.gz</param>
   </service>
 </services>
diff --git a/extra/obs/algorithms-library.spec b/extra/obs/algorithms-library.spec
index 5a332690e1d2caacddced39a5ec97c800164d05d..742d8240ad04ca382bcd9eb3e14b032de8b690f3 100644
--- a/extra/obs/algorithms-library.spec
+++ b/extra/obs/algorithms-library.spec
@@ -1,35 +1,36 @@
 #
-# spec file for package MYPACK
+# spec file for package algorithms-library
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# This file is part of Algorithms library toolkit.
+# Copyright (C) 2018 Jan Travnicek (jan.travnicek@fit.cvut.cz)
 #
-# 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/
+# Algorithms library toolkit is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Algorithms library toolkit is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Algorithms library toolkit.  If not, see <http://www.gnu.org/licenses/>.
 #
-
 
 # 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}
+Release:        2%{?dist}
 Summary:        Theoretical computer science datastructures and algorithms implementation
 License:        GPL-3.0-or-later
-Group:          System/Libraries
+Group:          Productivity/Scientific/Math
 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
+Requires:       readline
 
 %description
 Theoretical computer science datastructures and algorithms implementation.
@@ -38,23 +39,39 @@ The library provides graphical and console interface similar to bash with many c
 
 #------------------------------------------------------------------
 
+%package devel
+Summary:        Development files for algorithms-library
+Group:          Development/Libraries/C and C++
+Requires:       algorithms-library = 0.0.1-2%{?dist}
+
+%description devel
+Theoretical computer science datastructures and algorithms implementation development sources.
+
+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
+cmake -DCMAKE_BUILD_TYPE=Release -DALIB_PRODUCTION=1 ..
+make
 
 %install
 cd debug
 %makeinstall
 
+cd ..
+for library in alib2std alib2abstraction alib2algo alib2algo_experimental alib2aux alib2cli alib2common alib2data alib2data_experimental  alib2dummy alib2elgo alib2graph_algo alib2graph_data alib2gui alib2measure alib2raw alib2raw_cli_integration alib2std alib2str alib2str_cli_integration alib2xml; do
+  find ${library}/src/ -name "*\.hpp" -o -name "*\.h" -o -name "*\.hxx" | while read line; do target=$(dirname ${RPM_BUILD_ROOT}/usr/include/algorithms-library/`echo $line | cut -sd / -f 3-`); mkdir -p $target && cp $line $target; done
+done
+cd alib2std/src/
+cp -r alib ${RPM_BUILD_ROOT}/usr/include/algorithms-library/
+
 %post
 /sbin/ldconfig
 
@@ -62,6 +79,7 @@ cd debug
 /sbin/ldconfig
 
 %files
+%defattr(-,root,root)
 /usr/bin/aaccess2
 /usr/bin/aarbology2
 /usr/bin/acast2
@@ -92,86 +110,95 @@ cd debug
 /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
 
+%files devel
+%defattr(-,root,root)
+/usr/lib/libalib2abstraction.so
+/usr/lib/libalib2algo.so
+/usr/lib/libalib2algo_experimental.so
+/usr/lib/libalib2aux.so
+/usr/lib/libalib2cli.so
+/usr/lib/libalib2common.so
+/usr/lib/libalib2data.so
+/usr/lib/libalib2data_experimental.so
+/usr/lib/libalib2dummy.so
+/usr/lib/libalib2elgo.so
+/usr/lib/libalib2graph_algo.so
+/usr/lib/libalib2graph_data.so
+/usr/lib/libalib2gui.so
+/usr/lib/libalib2measure.so
+/usr/lib/libalib2raw.so
+/usr/lib/libalib2raw_cli_integration.so
+/usr/lib/libalib2std.so
+/usr/lib/libalib2str.so
+/usr/lib/libalib2str_cli_integration.so
+/usr/lib/libalib2xml.so
+
+%dir /usr/include/algorithms-library
+/usr/include/algorithms-library/*
+
 %changelog
 * Wed Nov 14 2018 Jan Travnicek <Jan.Travnicek@fit.cvut.cz> 0.0.1-1
 - Initial RPM release
+
+* Wed Nov 14 2018 Jan Travnicek <Jan.Travnicek@fit.cvut.cz> 0.0.1-2
+- Add devel package
diff --git a/extra/obs/install-path.patch b/extra/obs/install-path.patch
deleted file mode 100644
index 06a622c4770b9ec138badfcdaab27508e33d0e9d..0000000000000000000000000000000000000000
--- a/extra/obs/install-path.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-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)
-