On 19. 04. 20 17:09, Miro Hrončok wrote:
Anyway, now that I know what the immediate problem is, I'll try to
work around it. Regards,
In this particular case the version is trying to be read from git, I recommend
using %autosetup -S git and creating a %{version} tag in %prep.
I'll send a PR shortly.
OK. I've tired the usual:
%prep
...
git commit -q -a -m "rpmbuild %prep" --author "%{__scm_author}"
git tag -a -m '%{version} from rpmbuild' %{version}
But it is not that simple. The "versioneer" thing used here tries to read and
parse (or execute?) the nb2plots/_version.py file. The file has gitattributes
variables in it and git(hub) substitutes those with real values when the git
archive tarball is created. Hence any git-like voodoo in prep doesn't really
change that :(
I am afraid that sedding/patching the file is the only sane way forward.
Replacing
git_refnames = " (HEAD -> master)"
with
git_refnames = " (tag: 0.6)"
gets the job done.
Finishing the commit message...
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org