rpmfluff

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.  |  https://fedorahosted.org/rpmfluff/

rpmfluff

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

News

  • 2016-06-14: Git moved to https://pagure.io/rpmfluff/
  • 2015-08-20: John Dulaney implemented weak dependencies.
  • 2015-07-10: And one tiny release to incorporate Will Woods's comment I have missed yesterday.
  • 2015-07-09: David Shea made rpmfluff running on Python 3 - awesome! RHEL5 (i.e. Python 2.4) support was dropped. Released version 0.4.
  • 2014-04-30: Something changed and we can not blindly remove newline here as it is not there now. But trying to keep it compatible with what we had before.
  • 2010-02-12: Now version is in the separate file
  • 2010-01-26: Fix for deprecated popen2 module
  • 2010-01-07: Now using EGGs for building
  • 2009-12-18: Released version 0.3, let's try to get to Fedora
  • 2009-05-14: Added method add_simple_payload_file_random() if you want to include some file to the rpm and you do not care about the content
  • 2009-04-22: Fixed build issues on ppc
  • 2009-01-06: Added %pre/%post/%preun/%prepost capabilities
  • 2008-09-08: Fixed 2 small issues and created 0.2-2 version
  • 2008-09-08: Commited new big bunch of changes by David Malcolm and released version 0.2
  • 2008-07-11: Package renamed to python-rpmfluff, now works on the F9, some more changes
  • 2008-07-08: Initial commit of David Malcolm's code from former Table Cloth project

Releases

Examples

Just build empty rpm

>>> import rpmfluff
>>> foo = rpmfluff.SimpleRpmBuild("foo", "0.1", "1")
>>> foo.make()

Coding

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