GitHub - sgidevnet/spec.py: Generate the file listing for a spec file to use with EPM
Generate the file listing for a spec file to use with EPM - sgidevnet/spec.py
github.com
This Python script can make packaging a bit easier by doing everything that EPM expects to be done. All you need to provide is the package header file and a working installation of the software you're packaging. Here's an example:
Code:
(gcc4) esp@calcifer ~/epm/gdb-6.8 $ cat header
%product GDB 6.8
%copyright The GNU Project
%vendor SGUG
%license /usr/people/esp/epm/gdb-6.8/LICENSE
%readme /usr/people/esp/epm/gdb-6.8/README
%description The GNU debugger
%version 6.8-01 2019020701
(gcc4) esp@calcifer ~/epm/gdb-6.8 $ python3 ~/spec.py/spec.py -h header -t -p gdb -e /opt/local/gdb
/usr/people/esp/epm/gdb-6.8/gdb-6.8-01-irix-6.5-mips.tardist
(gcc4) esp@calcifer ~/epm/gdb-6.8 $ ls -l *tardist
-rw-r--r-- 1 esp user 28021760 Feb 12 04:25 gdb-6.8-01-irix-6.5-mips.tardist