Skip to content
Snippets Groups Projects
Commit c75a5bc0 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

update spec file

parent 63a83659
No related branches found
No related tags found
No related merge requests found
Pipeline #23021 canceled
...@@ -42,7 +42,7 @@ The library provides graphical and console interface similar to bash with many c ...@@ -42,7 +42,7 @@ The library provides graphical and console interface similar to bash with many c
%package devel %package devel
Summary: Development files for algorithms-library Summary: Development files for algorithms-library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: algorithms-library = 0.0.1-2%{?dist} Requires: algorithms-library = 0.0.1
   
%description devel %description devel
Theoretical computer science datastructures and algorithms implementation development sources. 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 ...@@ -59,7 +59,7 @@ The library provides graphical and console interface similar to bash with many c
mkdir debug mkdir debug
cd debug cd debug
cmake -DCMAKE_BUILD_TYPE=Release -DALIB_PRODUCTION=1 .. cmake -DCMAKE_BUILD_TYPE=Release -DALIB_PRODUCTION=1 ..
make make -j6
   
%install %install
cd debug cd debug
...@@ -67,7 +67,12 @@ cd debug ...@@ -67,7 +67,12 @@ cd debug
   
cd .. 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 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 done
cd alib2std/src/ cd alib2std/src/
cp -r alib ${RPM_BUILD_ROOT}/usr/include/algorithms-library/ cp -r alib ${RPM_BUILD_ROOT}/usr/include/algorithms-library/
...@@ -197,8 +202,8 @@ 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/* /usr/include/algorithms-library/*
   
%changelog %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 * Wed Nov 14 2018 Jan Travnicek <Jan.Travnicek@fit.cvut.cz> 0.0.1-1
- Initial RPM release - Initial RPM release
* Wed Nov 14 2018 Jan Travnicek <Jan.Travnicek@fit.cvut.cz> 0.0.1-2
- Add devel package
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment