- Remove pandoc BuildRequires * Add prebuilt-pandoc.sh to pre-generate the man pages * Add prebuilt-pandoc.tgz containing pre-generated man pages * Extract man pages in the appropriate directory during build OBS-URL: https://build.opensuse.org/request/show/616904 OBS-URL: https://build.opensuse.org/package/show/science:HPC/rdma-core?expand=0&rev=91
13 lines
291 B
Bash
13 lines
291 B
Bash
#!/bin/bash
|
|
TARBALL=$(rpmspec --parse rdma-core.spec | grep Source: | awk '{ print $NF}')
|
|
OUTDIR=$(tar tf rdma-core-18.1.0.1f4780139d62.tar.gz | head -n 1)
|
|
|
|
rm -Rf $OUTDIR
|
|
tar xf $TARBALL
|
|
cd $OUTDIR
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make docs
|
|
tar czf ../../prebuilt-pandoc.tgz pandoc-prebuilt
|