Adrian Schröter 2025-02-03 12:17:45 +00:00 committed by Git OBS Bridge
commit c2c77fa25e
12 changed files with 242 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/openSUSE/obs-scm-bridge</param>
<param name="scm">git</param>
<param name="revision">0.6.1</param>
<param name="version">0.6.1</param>
</service>
<service mode="manual" name="set_version" />
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d38350094f54f4e5db5c19d817fee388ed63f0dcd777ad19b7c78fd417d3c408
size 69643

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9eb674d600b05f5935dc19a32a3d74eda0af5160b43c819a7970e3e161a21fb2
size 84491

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7756e24ad56b63b40881fae1e64d32c3bf029e9aedf8958eaf3e5ed387c8ea58
size 85003

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:723f5252d459863486eba1f12382a7437dae269f775d8285e56d99058336a122
size 86027

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aeca106d4e39360c75b6d1889742d95cd66a1895f37de61432961d5a9c2ec1a2
size 89611

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:423ea6ddd747263aa4f3f608814e8cfae8778eb61e7ea78f03675177ebbe37f7
size 90635

118
obs-scm-bridge.changes Normal file
View File

@ -0,0 +1,118 @@
-------------------------------------------------------------------
Mon Feb 3 12:16:48 UTC 2025 - Adrian Schröter <adrian@suse.de>
- 0.6.1
* new noobsinfo query parameter
(can be used to hide git informations in sources, binaries
won't contain them either then).
-------------------------------------------------------------------
Tue Jan 28 08:58:31 UTC 2025 - Adrian Schröter <adrian@suse.de>
- 0.6.0
* project mode: switching to to track package sources using
git sha sums instead of md5sum via download_assets
-------------------------------------------------------------------
Wed Dec 4 07:04:33 UTC 2024 - Adrian Schröter <adrian@suse.de>
- 0.5.4
* fixed support of subdir parameter usage on project level
* Fix handling of projectscmsync in the package xml writers
-------------------------------------------------------------------
Fri Nov 29 12:36:46 UTC 2024 - Adrian Schröter <adrian@suse.de>
- 0.5.3
* Switch to ssh url when using the bridge via osc
-------------------------------------------------------------------
Thu Nov 14 08:43:28 UTC 2024 - Adrian Schröter <adrian@suse.de>
- 0.5.2
* Don't overwrite files from git, but complain instead with
an error. For example _scmsync.obsinfo file must not be part
of the git tree. boo#1230469 CVE-2024-22038
-------------------------------------------------------------------
Wed Oct 30 09:10:41 UTC 2024 - Adrian Schröter <adrian@suse.de>
- 0.5.1
* Don't generate _scmsync.obsinfo outside of OBS source server
import use case (eg. no more for osc co)
* Enforce python 3.11 requirement
* Fix export of _scmsync.obsinfo in project mode
* Fix submodule detection
* EXPERIMENTAL: support multiple package subdirs via _subdirs
file. This syntax will change!
(not documented on purpose therefore atm)
* Using git credential manager
* Report some errors as transient, so that OBS can re-try
-------------------------------------------------------------------
Tue May 7 09:39:21 UTC 2024 - Adrian Schröter <adrian@suse.de>
- 0.5.0
project mode related enhancements:
* no more defining of bcntsynctag. We need to move this to package
spec files to avoid to have these always defined.
* QA hook to limit building a defined set of packages only
-------------------------------------------------------------------
Tue Apr 23 17:14:53 UTC 2024 - Adrian Schröter <adrian@suse.de>
- 0.4.3
* support SHA256 submodules
* minor improvements
-------------------------------------------------------------------
Wed Oct 18 15:20:51 UTC 2023 - Dirk Müller <dmueller@suse.com>
- readd git-lfs dependency
-------------------------------------------------------------------
Fri Jun 2 06:59:02 UTC 2023 - Adrian Schröter <adrian@suse.de>
- update to 0.4.2
* various fixes to handle additional git meta informations right
-------------------------------------------------------------------
Tue May 16 08:21:41 UTC 2023 - Adrian Schröter <adrian@suse.de>
- update to 0.4.0
* avoid export of .gitattributes file by default
* upstream osc is supported now
* export meta information of the git clone
* Add fallback code for a specific case
* Convert local links into symlinks in project git
-------------------------------------------------------------------
Thu Jan 26 14:52:54 UTC 2023 - Adrian Schröter <adrian@suse.de>
- update to 0.3.0
* optimize cloning when combining subdir parameter
* solve release number handling when using multiple spec files
* Require git-lfs to be always present and allow to opt out of lfs fetching
* support local symlinks to git submodules
* support recursive submodule cloning
* Fix the scmsync entry for relative submodule urls
-------------------------------------------------------------------
Tue Nov 8 12:44:07 UTC 2022 - Adrian Schröter <adrian@suse.de>
- update to 0.2.1
* fixed loss of branch informations in packages in project mode
-------------------------------------------------------------------
Wed Jun 8 09:55:31 UTC 2022 - Adrian Schröter <adrian@suse.de>
- update to version 0.2
* no shallow clone when used with osc
* support for LFS fetch
* bugfixes (_config file export and path handling)
-------------------------------------------------------------------
Thu Feb 17 10:01:46 UTC 2022 - Adrian Schröter <adrian@suse.de>
- initial release of version 0.1

4
obs-scm-bridge.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: obs-scm-bridge
version: 0.6.1
mtime: 1738315139
commit: 2445c3f5560a400d6abf8321ff746bcb47844d12

63
obs-scm-bridge.spec Normal file
View File

@ -0,0 +1,63 @@
#
# spec file for package obs-scm-bridge
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?fedora} || 0%{?rhel}
%define build_pkg_name obs-build
%else
%define build_pkg_name build
%endif
Name: obs-scm-bridge
Version: 0.6.1
Release: 0
Summary: A help service to work with git repositories in OBS
License: GPL-2.0-or-later
URL: https://github.com/openSUSE/obs-scm-bridge
Source0: %{name}-%{version}.tar.xz
Requires: %{build_pkg_name} >= 20211125
# these are just recommends in build package, but we need it here
Requires: perl(Date::Parse)
Requires: perl(LWP::UserAgent)
Requires: perl(Net::SSL)
Requires: perl(Pod::Usage)
Requires: perl(Time::Zone)
Requires: perl(URI)
Requires: perl(XML::Parser)
Requires: perl(YAML::LibYAML)
Recommends: python3-packaging
BuildArch: noarch
%if 0%{?fedora} || 0%{?rhel}
Requires: git
%else
Requires: git-core
Requires: git-lfs
%endif
%description
%prep
%autosetup
%build
%install
%make_install
%files
%{_prefix}/lib/obs/service
%changelog