Bug #2770

Devbox: missing rpmspec command

Added by Giacomo Sanchietti over 5 years ago. Updated almost 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-devbox
Target version:v6.6-rc1
Security class: Resolution:WONTFIX
Affected version:v6.5-final NEEDINFO:No

Description

The build system uses rpmspec command for building rpm directly from .spec files (not .spec.in).
rpmspec is not available on CentOS 6, but only on Fedora. So, on a regular NethServer, there is no way to build rpm directly from spec using the build system.

The build system should search for rpmspec command, if not found it should use some bash scripts or a documented workaround.


Related issues

Related to NethServer 6 - Bug #2879: build-rpm error on Fedora 20 CLOSED
Related to NethServer 6 - Feature #3009: nethserver-devbox replacements CLOSED

Associated revisions

Revision b1cb2b01
Added by Davide Principi almost 5 years ago

Initial commit. Refs #2879 #2770

RPM build automation scripts. Create and sign RPMs with mock and
basic tools.

History

#1 Updated by Giacomo Sanchietti over 5 years ago

  • Target version set to ~FUTURE

#2 Updated by Davide Principi about 5 years ago

  • Status changed from NEW to TRIAGED
  • Target version changed from ~FUTURE to v6.5
  • % Done changed from 0 to 20

#3 Updated by Davide Principi about 5 years ago

  • Related to Bug #2879: build-rpm error on Fedora 20 added

#4 Updated by Davide Principi almost 5 years ago

Workaround
  • install nethserver-mock package from nethserver-testing repository
  • from the git repository directory run make-rpms:
      make-rpms yourproject.spec
    
    RPMs and mock log files are written to the current working directory.
  • sign the RPMs:
      sign-rpms -k <KEYID> *.rpm
    

#5 Updated by Davide Principi almost 5 years ago

#6 Updated by Davide Principi almost 5 years ago

  • Target version changed from v6.5 to v6.6-beta1

#7 Updated by Davide Principi almost 5 years ago

  • Target version changed from v6.6-beta1 to v6.6-rc1

#8 Updated by Davide Principi almost 5 years ago

  • Status changed from TRIAGED to CLOSED
  • % Done changed from 20 to 100
  • Resolution set to WONTFIX

The nethserver-mock and nethserver-buildiso packages are compatible with the new mock versions and obsolete nethserver-devbox.

Also available in: Atom PDF