diff --git a/extra/obs/algorithms-library.spec b/extra/obs/algorithms-library.spec
index 742d8240ad04ca382bcd9eb3e14b032de8b690f3..1b401b6808063682858d6f4de7ef696f180a5d56 100644
--- a/extra/obs/algorithms-library.spec
+++ b/extra/obs/algorithms-library.spec
@@ -42,7 +42,7 @@ 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}
+Requires:       algorithms-library = 0.0.1
 
 %description devel
 Theoretical computer science datastructures and algorithms implementation development sources.
@@ -59,7 +59,7 @@ The library provides graphical and console interface similar to bash with many c
 mkdir debug
 cd debug
 cmake -DCMAKE_BUILD_TYPE=Release -DALIB_PRODUCTION=1 ..
-make
+make -j6
 
 %install
 cd debug
@@ -67,7 +67,12 @@ cd debug
 
 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
+  find ${library}/src/ -name "*\.hpp" -o -name "*\.h" -o -name "*\.hxx" | while read line; do
+    if [ -s "$line" ]; then
+      target=$(dirname ${RPM_BUILD_ROOT}/usr/include/algorithms-library/`echo $line | cut -sd / -f 3-`)
+      mkdir -p $target && cp $line $target
+    fi
+  done
 done
 cd alib2std/src/
 cp -r alib ${RPM_BUILD_ROOT}/usr/include/algorithms-library/
@@ -197,8 +202,8 @@ cp -r alib ${RPM_BUILD_ROOT}/usr/include/algorithms-library/
 /usr/include/algorithms-library/*
 
 %changelog
+* Wed Nov 15 2018 Jan Travnicek <Jan.Travnicek@fit.cvut.cz> 0.0.1-2
+- Add devel package
+
 * 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