rpmfluff is a lightweight way of building RPMs, and sabotaging them so they are broken in controlled ways.
It is intended for use when testing RPM-testers e.g. rpmlint and writing test cases for RPM tools e.g. yum
Author: dmalcolm@redhat.com
Homepage: https://pagure.io/rpmfluff
pip install rpmfluff, but fixed small issue with tests for python3-rpm-4.14.2-0.rc1.1.fc29.2.x86_64 compatibilityadd_simple_payload_file_random() if you want to include some file to the rpm and you do not care about the content%pre/%post/%preun/%prepost capabilities4fccecd1e4485d24e69730d45a99e000)a0de0ab92f5100ffcbeb6702cef9d75e)56227a900b60a4d1babb9fdc3055d577)f62f0e54f1eae70dd0d9926eed0892cb)be164a407b3ae8c3239c5b9352b946fc)03ed0d57ab059aa4a3dd5182ae77473c)dc15e98f125e1a46e47648ff38f627d3)ae0a846c239a60b71bbbcf4e2c84be72)e8f4e9607128a2817262761592eb8080) - python-rpmfluff-0.4.2-1.fc22.src.rpm752be6d7ece44535392583c18e007a2e) - python-rpmfluff-0.4.1-1.fc22.src.rpm296472d772ee0cc04e9d9afd35880fd1) - python-rpmfluff-0.3-5.fc12.src.rpm0d7ce618fb7222b11986bfb078f0454e) - python-rpmfluff-0.2-2.fc9.src.rpm505e95609285d177df4ba875fd5fa228) - python-rpmfluff-0.1-1.fc9.src.rpm>>> import rpmfluff
>>> foo = rpmfluff.SimpleRpmBuild("foo", "0.1", "1")
>>> foo.make()
This is bit harder, because we depend on rpm module which is not distributed over PyPI and by default Python in virtual environment do not see systems libraries:
virtualenv-3 --system-site-packages venv source venv/bin/activate pip install --ignore-installed rpmfluff
Feel free to fork here and send pull requests or email me to add you as a contributor directly to this repository. If you just need the code, then:
$ git clone https://pagure.io/rpmfluff.git