summaryrefslogtreecommitdiffstats
path: root/packages/rpm/build.sh
blob: 64ab34bddea3578d04838b26eb85bd0761a647a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

set -e

[ $(whoami) == "root" ] || {
echo "Don't I need to be root to make RPM packages ?"
}

RPMBUILDPLACE=/usr/src/RPM/

cp doxygen.spec $RPMBUILDPLACE/SPECS

ls *.patch && {
cp *.patch $RPMBUILDPLACE/SOURCES
}

cp ../../../doxygen*.gz $RPMBUILDPLACE/SOURCES

urpmi --auto rpm-build libqt3-devel flex tetex-latex dvips

rpm -ba SPECS/doxygen.spec