mguessan / davmail

DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway - Synced with main subversion repository at
http://davmail.sourceforge.net
GNU General Public License v2.0
582 stars 86 forks source link

Linux: Use %{version} and source based on last Git tag #290

Closed Thaodan closed 10 months ago

Thaodan commented 1 year ago

The change allows to generate the sources from Git and take Git as the source of version numbers.

Contains changes from #289.

Thaodan commented 1 year ago

Example usage for this can be seen here: https://build.opensuse.org/package/show/home:Thaodan:network/davmail

Run osc service ra and it will update to the last tagged version. NOTE: Right now the package is set to my development branch, revision needs to be set to @PARENT_TAG@ and vrsionformat also to the same (to indicate the differences between development versions besides the parent tag).

Further this also allows to update the package using scm workflow and test PR's against the obs as explain in the obs documentation here: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.scm_ci_workflow_integration.html

mguessan commented 10 months ago

Closing this after merging proposed changes and refactored to make spec file work on latest fedora. Please have a look at latest spec file for any additional enhancoements.