Pobshare/fedora/make_rpm.sh


Home Back

#!/usr/bin/env bash

mkdir -p $HOME/rpmbuild/SOURCES/
mkdir -p $HOME/rpmbuild/SOURCES/usr/{bin,lib/pobshare,share/applications}

cp ../pobshare $HOME/rpmbuild/SOURCES/usr/bin
cp ../*.py $HOME/rpmbuild/SOURCES/usr/lib/pobshare
cp -R ../locale $HOME/rpmbuild/SOURCES/usr/lib/pobshare
cp -R ../gui $HOME/rpmbuild/SOURCES/usr/lib/pobshare
cp -R ../icons $HOME/rpmbuild/SOURCES/usr/lib/pobshare
cp ../*.png $HOME/rpmbuild/SOURCES/usr/lib/pobshare
cp ../pobshare.desktop $HOME/rpmbuild/SOURCES/usr/share/applications

chmod +x $HOME/rpmbuild/SOURCES/usr/bin/pobshare
chmod +x $HOME/rpmbuild/SOURCES/usr/lib/pobshare/pobshare.py



tar czf $HOME/rpmbuild/SOURCES/pobshare-0.2.tar.gz $HOME/rpmbuild/SOURCES/usr


rpmbuild -ba --clean  pobshare.spec

Powered by Code, a simple repository browser by Fabio Di Matteo