Feature #16
closed
Allow customers to work with a single repo instead of multiple ones
Added by Emmanuel Jubera [SAFT] over 2 years ago.
Updated almost 2 years ago.
Affects Version/s:
armel-1.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.
- Assignee changed from Vincent Rubiolo to Marc-Antoine Riou
- Affects Version/s armel-1.0 added
This is a roadmap item for customers like SAFT who develop in a single repository.
- 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
- 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
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
- Status changed from New to Resolved
- Assignee changed from Marc-Antoine Riou to Emmanuel Jubera [SAFT]
- Status changed from Resolved to Closed
Also available in: Atom
PDF