157
by Ángel Guzmán Maeso (shakaran)
Make a script for automatize the rpm package creation |
1 |
#!/bin/bash
|
2 |
# Required: sudo apt-get install rpm
|
|
3 |
||
4 |
# Move to working folder
|
|
5 |
cd ../
|
|
6 |
||
7 |
# For create a source package from setup.py:
|
|
8 |
# python setup.py sdist
|
|
9 |
||
10 |
# Create src and install packages for RPM
|
|
11 |
python setup.py bdist_rpm |
|
12 |
||
13 |
# Remove and clean build folder
|
|
14 |
python setup.py clean |
|
15 |
rm -rf build |
|
16 |
||
17 |
# For install:
|
|
18 |
# python setup.py install
|
|
19 |
||
20 |
# For show more formats:
|
|
21 |
# python setup.py bdist --help-formats
|
|
22 |
||
23 |
# sudo python setup.py install --install-layout=deb
|