Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2040

SPEC File %setup

    XMLWordPrintableJSON

Details

    • Server Development Platform

    Description

      I am no expert, but the SPEC file at http://github.com/mongodb/mongo/blob/master/rpm/mongo.spec does not work for me, and i'd thought i'd post the two minor changes that are needed to get it to work (at least for me).

      Firstly, file downloaded for the SOURCES should be renamed to mongodb-src-r1.7.2.tar.gz as this is what you download on the website, i.e.

      -Source0: %

      {name}

      -%

      {version}.tar.gz
      +Source0:mongodb-src-r%{version}

      .tar.gz

      Then, this file extracts differently too, so this should be updated:

      -%setup
      +%setup -n mongodb-src-r1.7.2

      There is a bug in that the man page of mongosniff is included, but not the binary:
      [in %files]
      +%{_bindir}/mongosniff

      The RPM will then build fine.

      Alex

      Attachments

        Issue Links

          Activity

            People

              backlog-server-devplatform Backlog - Server Development Platform Team (SDP)
              alex.davies Alex Davies
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: