1
0
Fork 0

Adding debian version 0.4.1-1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-05 05:23:39 +01:00
parent f4a13f7987
commit 6b69abf4e7
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
8 changed files with 193 additions and 0 deletions

1
debian/cargo-checksum.json vendored Normal file
View file

@ -0,0 +1 @@
{"package":"f682f4a0bd862be530f229a04ebca8b7a3842066b00cc7c0a915c5f1d2a8812d","files":{}}

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
forgejo-api (0.4.1-1) unstable; urgency=low
* Initial upload to sid (Closes: #1087909).
-- Daniel Baumann <daniel@debian.org> Wed, 20 Nov 2024 06:18:21 +0100

74
debian/control vendored Normal file
View file

@ -0,0 +1,74 @@
Source: forgejo-api
Section: utils
Priority: optional
Maintainer: Daniel Baumann <daniel@debian.org>
Build-Depends:
cargo:native <!nocheck>,
debhelper-compat (= 13),
dh-sequence-cargo,
librust-base64ct-1+default-dev (>= 1.6.0-~~) <!nocheck>,
librust-bytes-1+default-dev (>= 1.5.0-~~) <!nocheck>,
librust-reqwest-0.11+default-dev (>= 0.11.18-~~) <!nocheck>,
librust-reqwest-0.11+json-dev (>= 0.11.18-~~) <!nocheck>,
librust-reqwest-0.11+multipart-dev (>= 0.11.18-~~) <!nocheck>,
librust-serde-1+default-dev (>= 1.0.168-~~) <!nocheck>,
librust-serde-1+derive-dev (>= 1.0.168-~~) <!nocheck>,
librust-serde-json-1+default-dev (>= 1.0.108-~~) <!nocheck>,
librust-soft-assert-0.1+default-dev (>= 0.1.1-~~) <!nocheck>,
librust-thiserror-1+default-dev (>= 1.0.43-~~) <!nocheck>,
librust-time-0.3+default-dev (>= 0.3.26-~~) <!nocheck>,
librust-time-0.3+formatting-dev (>= 0.3.26-~~) <!nocheck>,
librust-time-0.3+parsing-dev (>= 0.3.26-~~) <!nocheck>,
librust-time-0.3+serde-dev (>= 0.3.26-~~) <!nocheck>,
librust-tokio-1+default-dev (>= 1.29.1-~~) <!nocheck>,
librust-tokio-1+net-dev (>= 1.29.1-~~) <!nocheck>,
librust-url-2+default-dev (>= 2.4.0-~~) <!nocheck>,
librust-url-2+serde-dev (>= 2.4.0-~~) <!nocheck>,
librust-zeroize-1+default-dev (>= 1.7.0-~~) <!nocheck>,
libstd-rust-dev <!nocheck>,
rustc:native <!nocheck>,
Rules-Requires-Root: no
Standards-Version: 4.7.0
Homepage: https://codeberg.org/Cyborus/forgejo-api
X-Cargo-Crate: forgejo-api
Package: librust-forgejo-api-dev
Section: rust
Architecture: any
Multi-Arch: same
Depends:
librust-base64ct-1+default-dev (>= 1.6.0-~~),
librust-bytes-1+default-dev (>= 1.5.0-~~),
librust-reqwest-0.11+default-dev (>= 0.11.18-~~),
librust-reqwest-0.11+json-dev (>= 0.11.18-~~),
librust-reqwest-0.11+multipart-dev (>= 0.11.18-~~),
librust-serde-1+default-dev (>= 1.0.168-~~),
librust-serde-1+derive-dev (>= 1.0.168-~~),
librust-serde-json-1+default-dev (>= 1.0.108-~~),
librust-soft-assert-0.1+default-dev (>= 0.1.1-~~),
librust-thiserror-1+default-dev (>= 1.0.43-~~),
librust-time-0.3+default-dev (>= 0.3.26-~~),
librust-time-0.3+formatting-dev (>= 0.3.26-~~),
librust-time-0.3+parsing-dev (>= 0.3.26-~~),
librust-time-0.3+serde-dev (>= 0.3.26-~~),
librust-tokio-1+default-dev (>= 1.29.1-~~),
librust-tokio-1+net-dev (>= 1.29.1-~~),
librust-url-2+default-dev (>= 2.4.0-~~),
librust-url-2+serde-dev (>= 2.4.0-~~),
librust-zeroize-1+default-dev (>= 1.7.0-~~),
${misc:Depends},
Provides:
librust-forgejo-api+default-dev (= ${binary:Version}),
librust-forgejo-api-0+default-dev (= ${binary:Version}),
librust-forgejo-api-0-dev (= ${binary:Version}),
librust-forgejo-api-0.4+default-dev (= ${binary:Version}),
librust-forgejo-api-0.4-dev (= ${binary:Version}),
librust-forgejo-api-0.4.1+default-dev (= ${binary:Version}),
librust-forgejo-api-0.4.1-dev (= ${binary:Version}),
Description: self-hosted lightweight software forge (Rust interface to Forgejo's Web API)
Forgejo is a forge software package for hosting software development version
control using Git as well as other collaborative features like bug tracking,
code review, continuous integration, kanban boards, tickets, and wikis.
.
This package contains the Rust interface to Forgejo's Web API for use with
cargo and dh-cargo.

47
debian/copyright vendored Normal file
View file

@ -0,0 +1,47 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: forgejo-api
Upstream-Contact: https://codeberg.org/Cyborus/forgejo-api/issues
Source: https://codeberg.org/Cyborus/forgejo-api/tags
Files: *
Copyright: 2023-2024 Cyborus <cyborus@cyborus.xyz>
License: Apache-2.0 or MIT
Files: debian/*
Copyright: 2024 Daniel Baumann <daniel@debian.org>
License: Apache-2.0 or MIT
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
https://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
The complete text of the Apache-2.0 License
can be found in /usr/share/common-licenses/Apache-2.0 file.
License: MIT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

14
debian/rules vendored Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/make -f
%:
dh ${@} --buildsystem cargo
execute_after_dh_auto_install:
# removing unneeded files
rm -rf debian/librust-*/usr/share/cargo/registry/*/.git*
rm -rf debian/librust-*/usr/share/cargo/registry/*/.woodpecker
rm -rf debian/librust-*/usr/share/cargo/registry/*/tests
rm -f debian/librust-*/usr/share/cargo/registry/*/*.orig
rm -f debian/librust-*/usr/share/cargo/registry/*/*.md
rm -f debian/librust-*/usr/share/cargo/registry/*/LICENSE*
rm -f debian/librust-*/usr/share/cargo/registry/*/swagger*.json

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)

47
debian/tests/control vendored Normal file
View file

@ -0,0 +1,47 @@
Test-Command: /usr/share/cargo/bin/cargo-auto-test forgejo-api 0.4.1 --all-targets --all-features
Features: test-name=rust-forgejo-api:@
Depends:
dh-cargo (>= 31),
librust-eyre-0.6+default-dev (>= 0.6.9-~~),
librust-reqwest-0.11+cookies-dev (>= 0.11.18-~~),
librust-reqwest-0.11+default-dev (>= 0.11.18-~~),
librust-tokio-1+default-dev (>= 1.29.1-~~),
librust-tokio-1+fs-dev (>= 1.29.1-~~),
librust-tokio-1+macros-dev (>= 1.29.1-~~),
librust-tokio-1+net-dev (>= 1.29.1-~~),
librust-tokio-1+rt-dev (>= 1.29.1-~~),
rustc,
@,
Restrictions: allow-stderr, skip-not-installable
Test-Command: /usr/share/cargo/bin/cargo-auto-test forgejo-api 0.4.1 --all-targets
Features: test-name=librust-forgejo-api-dev:default
Depends:
dh-cargo (>= 31),
librust-eyre-0.6+default-dev (>= 0.6.9-~~),
librust-reqwest-0.11+cookies-dev (>= 0.11.18-~~),
librust-reqwest-0.11+default-dev (>= 0.11.18-~~),
librust-tokio-1+default-dev (>= 1.29.1-~~),
librust-tokio-1+fs-dev (>= 1.29.1-~~),
librust-tokio-1+macros-dev (>= 1.29.1-~~),
librust-tokio-1+net-dev (>= 1.29.1-~~),
librust-tokio-1+rt-dev (>= 1.29.1-~~),
rustc,
@,
Restrictions: allow-stderr, skip-not-installable
Test-Command: /usr/share/cargo/bin/cargo-auto-test forgejo-api 0.4.1 --all-targets --no-default-features
Features: test-name=librust-forgejo-api-dev:
Depends:
dh-cargo (>= 31),
librust-eyre-0.6+default-dev (>= 0.6.9-~~),
librust-reqwest-0.11+cookies-dev (>= 0.11.18-~~),
librust-reqwest-0.11+default-dev (>= 0.11.18-~~),
librust-tokio-1+default-dev (>= 1.29.1-~~),
librust-tokio-1+fs-dev (>= 1.29.1-~~),
librust-tokio-1+macros-dev (>= 1.29.1-~~),
librust-tokio-1+net-dev (>= 1.29.1-~~),
librust-tokio-1+rt-dev (>= 1.29.1-~~),
rustc,
@,
Restrictions: allow-stderr, skip-not-installable

4
debian/watch vendored Normal file
View file

@ -0,0 +1,4 @@
version=4
opts=filenamemangle=s/.*\/(.*)\/download/forgejo-api-$1\.tar\.gz/g,\
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\.?\d*)$/$1~$2/ \
https://qa.debian.org/cgi-bin/fakeupstream.cgi?upstream=crates.io/forgejo-api .*/crates/forgejo-api/@ANY_VERSION@/download