Project

General

Profile

Actions

Feature #16

closed
EJ EJ

Allow customers to work with a single repo instead of multiple ones

Feature #16: Allow customers to work with a single repo instead of multiple ones

Added by Emmanuel Jubera [SAFT] almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Target version:
Start date:
05/18/2022
Due date:
% Done:

0%

Estimated time:
Affects Version/s:
armel-1.0
Fix Version/s:
Labels:

Description

The default .spec file of an application is designed to work when the sources are stored at the root of a git repository.
When the sources are located in a sub-directory of the git repo, one needs to add some linux commands in order for the build to work fine.
For example, when the sources are in a sub-directory located at the root of the git repo, the following commands added at the end of %prep section will do the trick:

mv %{_builddirsrc}/%{name}-%{version}/%{name} %{_builddirsrc}/%{name}
rm -rf %{_builddirsrc}/%{name}-%{version}
mv %{_builddirsrc}/%{name} %{_builddirsrc}/%{name}-%{version}

It would be nice to have a simpler way to specify the path to application sources.

YB Updated by Yann Bodéré almost 4 years ago Actions #1

  • Assignee changed from Vincent Rubiolo to Marc-Antoine Riou

SD Updated by Sebastien Douheret [IoT.bzh] almost 4 years ago Actions #2

  • Affects Version/s armel-1.0 added

VR Updated by Vincent Rubiolo almost 4 years ago Actions #3

This is a roadmap item for customers like SAFT who develop in a single repository.

VR Updated by Vincent Rubiolo over 3 years ago Actions #4

  • Subject changed from Provide a simple way to specify path to sources in .spec file to Provide a simple way to specify path to source directory in .spec files

SD Updated by Sebastien Douheret [IoT.bzh] over 3 years ago Actions #5

  • Subject changed from Provide a simple way to specify path to source directory in .spec files to Allow customers to work with a single repo instead of multiple ones

MR Updated by Marc-Antoine Riou over 3 years ago Actions #6

Instead of using autosetup tool with the following args

%autosetup -p 1

Append the argument name at the end of the command

%autosetup -p 1 -n %{name}-%{version}/Common/%{name}

Then you have to be carreful about your tarball architecture, it must never change for the macro expansion to be effective

SD Updated by Sebastien Douheret [IoT.bzh] over 3 years ago Actions #7

  • Status changed from New to Resolved

EJ Updated by Emmanuel Jubera [SAFT] over 3 years ago Actions #8

  • Assignee changed from Marc-Antoine Riou to Emmanuel Jubera [SAFT]

EJ Updated by Emmanuel Jubera [SAFT] over 3 years ago Actions #9

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom