Package Details: obs-service-format_spec_file-git r120.402059d-1

Git Clone URL: https://aur.archlinux.org/obs-service-format_spec_file-git.git (read-only, click to copy)
Package Base: obs-service-format_spec_file-git
Description: An OBS source service: reformats a spec file to SUSE standard
Upstream URL: https://github.com/openSUSE/obs-service-format_spec_file
Licenses: GPL2
Conflicts: obs-service-format_spec_file
Provides: obs-service-format_spec_file
Submitter: c-mauderer
Maintainer: c-mauderer
Last Packager: c-mauderer
Votes: 0
Popularity: 0.000000
First Submitted: 2018-04-01 19:29 (UTC)
Last Updated: 2018-04-01 19:29 (UTC)

Required by (2)

  • osc (requires obs-service-format_spec_file) (optional)
  • osc-git (requires obs-service-format_spec_file) (optional)

Sources (1)

Latest Comments

yurikoles commented on 2024-09-26 00:30 (UTC) (edited on 2024-09-26 00:30 (UTC) by yurikoles)

Please consider the following patch.

From 84c4beaebf37c46c98b653e60d47662ff1e39995 Mon Sep 17 00:00:00 2001
From: Yurii Kolesnykov <root@yurikoles.com>
Date: Thu, 26 Sep 2024 03:23:42 +0300
Subject: [PATCH] pkgver to follow stable package

Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
---
 PKGBUILD | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index d13a587..5c9d926 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,25 @@
 _servicename=format_spec_file
 pkgname=obs-service-${_servicename}-git
-pkgver=r120.402059d
+pkgver=20240121.r194.f8724f1
 pkgrel=1
+epoch=1
 pkgdesc='An OBS source service: reformats a spec file to SUSE standard'
 arch=('any')
 url='https://github.com/openSUSE/obs-service-format_spec_file'
 license=('GPL2')
 depends=('obs-service-source_validator' 'perl-timedate')
 makedepends=('git')
-provides=("${pkgname%-git}")
+provides=("${pkgname%-git}=${pkgver}")
 conflicts=("${pkgname%-git}")
 source=("${pkgname%-git}::git+https://github.com/openSUSE/${pkgname%-git}")
 sha256sums=('SKIP')

 pkgver() {
    cd "${srcdir}/${pkgname%-git}"
-   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+   printf "%s.r%s.%s" \
+       "$(git log -1 --format=%cd --date=format:%Y%m%d)" \
+       "$(git rev-list --count HEAD)" \
+       "$(git rev-parse --short HEAD)"
 }

 package() {
-- 
2.46.1