Skip to content

Updating spec file to work with haproxy 3.2.x #71

@sharumpe

Description

@sharumpe

Apologies - I was trying to create a pull request, but it just greys out the button when I submit it.
My fork is here: https://github.com/sharumpe/rpm-haproxy

When attempting a build of haproxy 3.2.4, I got errors about a couple of missing files:

  • README (which is now README.md in 3.2.0 and above)
  • docs/architecture.txt (which does not exist in 3.2.0 and above)

I don't know enough about how spec files may be able to use different options if, for example, the version is 3.2 or above. That would probably make most of this unnecessary, but for now, this is what I've had success with.

This pull request contains two changes:

  • Updating Makefile to allow specifying a different spec file with USE_SPEC=<filename>
  • Adding duplicate specfile haproxy3.spec, which has fixed references in the %doc section

My build process now specifies USE_SPEC=haproxy3.spec with the other options, which allowed the build to succeed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions