-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update for fedora 25 #75
base: master
Are you sure you want to change the base?
Conversation
@@ -221,7 +221,10 @@ def generate(args): | |||
data['source_url'] = _get_source_url(args.name, url['filename']) | |||
else: | |||
data['source_url'] = args.name + '-' + args.version + '.zip' | |||
data['year'] = datetime.datetime.now().year # set current year | |||
|
|||
now = datetime.datetime.now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change this? AFAICS you never use it in the fedora template..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't feel like calling now() twice for no particular reason.
The 'year' was already initialized by the existing init ... that is not changed. (there is data['year'] = now.year)
I am adding template of 'changelog_date' in a format suitable for Fedora changes.
The 'changelog_date' is used in the spec file template.
@xambroz thanks for the PR! Is there a easy way (without a Fedora system) to test this somehow? |
@xambroz friendly ping... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a easy way (without a Fedora system) to test this somehow?
@toabctl Best way testing the spec file is of course on Fedora. Generating the spec file and trying to build that one with rpmbuild.
Would you be having some easy way testing spec file for SuSE without SuSE ?
@@ -221,7 +221,10 @@ def generate(args): | |||
data['source_url'] = _get_source_url(args.name, url['filename']) | |||
else: | |||
data['source_url'] = args.name + '-' + args.version + '.zip' | |||
data['year'] = datetime.datetime.now().year # set current year | |||
|
|||
now = datetime.datetime.now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't feel like calling now() twice for no particular reason.
The 'year' was already initialized by the existing init ... that is not changed. (there is data['year'] = now.year)
I am adding template of 'changelog_date' in a format suitable for Fedora changes.
The 'changelog_date' is used in the spec file template.
There's a tool called "mock" that I use on Fedora and RHEL to test builds across multiple platforms. I see that it has built-in support for the OpenSuSE "tumbleweed" release, which may be helpful for multiple platform testing. as asked by xambroz. |
@xambroz Does this still make sense? If yes, could you rebase it, please? |
Hello,
I have done some updates to the spec teplate for Fedora.
On one hand Fedora wants to prefer python3 packages over python2, on the other hand it is not always possible.
I have tried to make the package compliant with the current Fedora python packaging guidelines while keeping easy define to switch off the python3 generation.
Best regards
Michal Ambroz