On Thu, Oct 27, 2016 at 2:11 PM arnaud gaboury <arnaud.gaboury@xxxxxxxxx> wrote:
On Thu, Oct 27, 2016 at 12:47 PM arnaud gaboury <arnaud.gaboury@xxxxxxxxx> wrote:How can I tell in my spec file that the source directory will be named %{name} and not %{name}.%{version} ?$ ls returns in fact mattermost. I guess the difference is due to untar.leaves me with this error: mattermost-3.4.0: No such file or directoryHere is part of my spec file:Now testing:
-----------------------------------------------
Name: mattermost
Version: 3.4.0
Release: 1%{?dist}
Summary: Mattermost is an open source, self-hosted Slack-alternative
URL: http://www.mattermost.org
Source0: https://releases.mattermost.com/%{version}/mattermost-%{version}-linux-amd64.tar.gz
License: MIT
Group: System Environment/Daemons
........
%prep
%autosetup
---------------------------
$ fedpkg --dist f24 prepEDIT : In fact, the unpacked directory is called platform-release-3.4 when the macro is looking for mattermost-3.4. I used this setup option:%autosetup -n platform-release-3.4but it doesn't solve my issue. I still get cd: mattermost-3.4: No such file or directoryWhat is wrong ?
NEW EDIT: the autosetup command as described above works indeed. The culprit was a line before poorly commented by #, which in fact is not the correct way to comment in spec file.
Thank you for help.Then, I though the %autosetup macro would have download the source, which is not the case. I need to run $ spectool -g *spec to get the source. Is it the normal behavior?
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx