File PREPARE_PACKAGE of Package swipl

#
# PREPARE_PACKAGE for swipl
#
# Description:
# Some hints to prepare the archive file of swipl.
#
# Summary:
# swipl developers use git submodules to structurate their
# work. Unfortunately, these submodules are not included
# in the archive file that is generated and available
# on GitHub as well as other useful files (configure,
# config.h.in, ...)
# In this file I suggest a way to create an archive which
# would include this missing files and therefore an archive
# which allows us to easily create a rpm.
#
# TODO:
# * make a proper bash script
# * improve file filter: there must remain some files
#   that are not needed...
# * spec file need to be reviewed because some doc files are not installed...
#

1. Install git.
2. Clone the swipl stable repository:
    git clone https://github.com/SWI-Prolog/swipl.git
3. Get the submodules and the documentation:
    cd swipl
    ./prepare # make sure to accept to download the documentation
4. Create archive
   find . -type f | grep -iEv "win32|windows|macos|cygwin|cache|/\." > filelist
   tar czf swipl-${version} -T filelist --transform 's,^.,swipl-%{version},'

Then you just have to update the rpm spec file!
openSUSE Build Service is sponsored by