Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package osc for openSUSE:Factory checked in 
at 2025-12-16 15:55:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/osc (Old)
 and      /work/SRC/openSUSE:Factory/.osc.new.1939 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "osc"

Tue Dec 16 15:55:56 2025 rev:220 rq:1323001 version:1.22.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/osc/osc.changes  2025-11-10 19:22:18.496849264 
+0100
+++ /work/SRC/openSUSE:Factory/.osc.new.1939/osc.changes        2025-12-16 
16:02:02.533475034 +0100
@@ -1,0 +2,18 @@
+Tue Dec  2 19:10:21 UTC 2025 - Antonio Teixeira <[email protected]>
+
+- PKGBUILD changes
+  * Remove redundant packages from makedepends. If a package depends
+    on something, it implicitly makedepends on it as well
+  * Add python-ruamel-yaml dependency
+  * Build and install man pages
+  * Add python-argparse-manpage and python-sphinx to makedepends for
+    building man pages
+  * Add check() to run the test suite
+  * Add checkdepends for test suite dependencies
+  * Add optdepends as an equivalent to RPM's Recommends, making it
+    easier for users to find packages needed for optional features
+  * Use $pkgname variable across the script
+  * Install shell completion files
+  * Bump pkgrel
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ osc.spec ++++++
--- /var/tmp/diff_new_pack.hgQTVn/_old  2025-12-16 16:02:05.829614342 +0100
+++ /var/tmp/diff_new_pack.hgQTVn/_new  2025-12-16 16:02:05.833614511 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package osc
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++++++ PKGBUILD ++++++
--- /var/tmp/diff_new_pack.hgQTVn/_old  2025-12-16 16:02:05.885616709 +0100
+++ /var/tmp/diff_new_pack.hgQTVn/_new  2025-12-16 16:02:05.893617047 +0100
@@ -1,24 +1,98 @@
 pkgname=osc
 pkgver=1.22.0
-pkgrel=0
+pkgrel=1
 pkgdesc="Command-line client for the Open Build Service"
 arch=('x86_64')
 url="https://www.github.com/openSUSE/osc";
 license=('GPL-2.0+' 'GPL-2.0')
 groups=('base-devel')
-depends=('python-cryptography' 'python-urllib3')
-makedepends=('python>=3.6' 'python-cryptography' 'python-setuptools' 
'python-urllib3')
-source=(osc-${pkgver}.tar.gz)
+depends=('python-cryptography' 'python-ruamel-yaml' 'python-urllib3')
+makedepends=('python>=3.6' 'python-argparse-manpage' 'python-setuptools' 
'python-sphinx')
+checkdepends=('diffstat' 'git' 'nano' 'python-yaml' 'vim')
+optdepends=('build: osc build support'
+            'ca-certificates: CA certificates'
+            'diffstat: diffstat support'
+            'git: git integration'
+            'git-lfs: git integration'
+            'obs-scm-bridge: git integration'
+            'obs-service-recompress: recompress source files'
+            'obs-service-download_files: download source files'
+            'obs-service-format_spec_file: reformat spec files to SUSE 
standard'
+            'obs-service-set_version: update version string in RPM spec or 
Debian changelog'
+            'obs-service-source_validator: validate package sources'
+            'obs-service-tar_scm: fetch sources from version control repos'
+            'openssh: ssh authentication support'
+            'python-argcomplete: git-obs completions support'
+            'python-progressbar: download progress bar support'
+            'python-distro: support for setting the default editor'
+            'python-keyring: keyring support'
+            'python-zstandard: support for opening control.tar.zst in debquery'
+            'xdg-utils: osc browse support')
+source=($pkgname-$pkgver.tar.gz)
 md5sums=('SKIP')
 
 build() {
-  cd "${srcdir}"/osc-${pkgver}
+  cd "$pkgname-$pkgver"
+
+  # build docs
+  PYTHONPATH=. argparse-manpage \
+    --output=osc.1 \
+    --format=single-commands-section \
+    --module=osc.commandline \
+    --function=argparse_manpage_get_parser \
+    --project-name=osc \
+    --prog=osc \
+    --description="Command-line client for Open Build Service" \
+    --author="Contributors to the osc project. See the project's GIT history 
for the complete list." \
+    --url="https://github.com/openSUSE/osc/";
+  PYTHONPATH=. argparse-manpage \
+    --output=git-obs.1 \
+    --format=single-commands-section \
+    --module=osc.commandline_git \
+    --function=argparse_manpage_get_parser \
+    --project-name=osc \
+    --prog=git-obs \
+    --description="Git based command-line client for Open Build Service" \
+    --author="Contributors to the osc project. See the project's GIT history 
for the complete list." \
+    --url="https://github.com/openSUSE/osc/";
+  sphinx-build -b man doc .
+
   python setup.py build
 }
 
 package() {
   msg "Installing osc ..."
-  cd "${srcdir}"/osc-${pkgver}
+  cd "$pkgname-$pkgver"
   python setup.py install --root="${pkgdir}/" --optimize=1 --prefix=/usr
+
+  # install completions for osc
+  install -Dm0755 contrib/osc.complete $pkgdir/usr/share/osc/complete
+  install -Dm0644 contrib/complete.csh $pkgdir/etc/profile.d/osc.csh
+  install -Dm0644 contrib/complete.sh 
$pkgdir/usr/share/bash-completion/completions/osc.bash
+  install -Dm0644 contrib/osc.fish 
$pkgdir/usr/share/fish/vendor_completions.d/osc.fish
+  install -Dm0644 contrib/osc.zsh $pkgdir/usr/share/zsh/site-functions/_osc
+
+  # install completions for git-obs
+  install -Dm0644 contrib/git-obs-complete.bash 
$pkgdir/usr/share/bash-completion/completions/git-obs.bash
+  install -Dm0644 contrib/git-obs-complete.fish 
$pkgdir/usr/share/fish/vendor_completions.d/git-obs.fish
+  install -Dm0644 contrib/git-obs-complete.zsh 
$pkgdir/usr/share/zsh/site-functions/_git-obs
+
+  # install man page
+  install -Dm0644 git-obs-metadata.1 
$pkgdir/usr/share/man/man1/git-obs-metadata.1
+  install -Dm0644 git-obs-quickstart.1 
$pkgdir/usr/share/man/man1/git-obs-quickstart.1
+  install -Dm0644 osc.1 $pkgdir/usr/share/man/man1/osc.1
+  install -Dm0644 git-obs.1 $pkgdir/usr/share/man/man1/git-obs.1
+  install -Dm0644 oscrc.5 $pkgdir/usr/share/man/man5/oscrc.5
+
+  # inject argcomplete marker to the generated git-obs executable
+  sed -i '3i # PYTHON_ARGCOMPLETE_OK' $pkgdir/usr/bin/git-obs
+
+  # inject zsh compdef header so that it gets autoloaded
+  sed -i '1i #compdef git-obs' $pkgdir/usr/share/zsh/site-functions/_git-obs
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  python -m unittest
 }
 

Reply via email to