Feature #16
closedAllow customers to work with a single repo instead of multiple ones
0%
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.
Updated by Yann Bodéré over 2 years ago
- Assignee changed from Vincent Rubiolo to Marc-Antoine Riou
Updated by Sebastien Douheret [IoT.bzh] over 2 years ago
- Affects Version/s armel-1.0 added
Updated by Vincent Rubiolo over 2 years ago
This is a roadmap item for customers like SAFT who develop in a single repository.
Updated by Vincent Rubiolo about 2 years ago
- 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
Updated by Sebastien Douheret [IoT.bzh] about 2 years ago
- 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
Updated by Marc-Antoine Riou about 2 years ago
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
Updated by Sebastien Douheret [IoT.bzh] almost 2 years ago
- Status changed from New to Resolved
Updated by Emmanuel Jubera [SAFT] almost 2 years ago
- Assignee changed from Marc-Antoine Riou to Emmanuel Jubera [SAFT]
Updated by Emmanuel Jubera [SAFT] almost 2 years ago
- Status changed from Resolved to Closed