summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-11-20 06:20:04 +0100
committerDaniel Baumann <daniel@debian.org>2024-11-20 07:40:07 +0100
commit8ae563f09d4491e625555e3e3d18f3748a3079cc (patch)
tree7046ea75d71ee5f494457d9e2a632fca74f1c913
parentAdding upstream version 0.4.1. (diff)
downloadforgejo-api-8ae563f09d4491e625555e3e3d18f3748a3079cc.tar.xz
forgejo-api-8ae563f09d4491e625555e3e3d18f3748a3079cc.zip
Adding debian version 0.4.1-1.debian/0.4.1-1
Signed-off-by: Daniel Baumann <daniel@debian.org>
-rw-r--r--debian/cargo-checksum.json1
-rw-r--r--debian/changelog5
-rw-r--r--debian/control74
-rw-r--r--debian/copyright47
-rwxr-xr-xdebian/rules14
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control47
-rw-r--r--debian/watch4
8 files changed, 193 insertions, 0 deletions
diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json
new file mode 100644
index 0000000..9f0f5fe
--- /dev/null
+++ b/debian/cargo-checksum.json
@@ -0,0 +1 @@
+{"package":"f682f4a0bd862be530f229a04ebca8b7a3842066b00cc7c0a915c5f1d2a8812d","files":{}}
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..80e2f21
--- /dev/null
+++ b/debian/changelog
@@ -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
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..83269af
--- /dev/null
+++ b/debian/control
@@ -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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..aa5ee7a
--- /dev/null
+++ b/debian/copyright
@@ -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.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..187f2cb
--- /dev/null
+++ b/debian/rules
@@ -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
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..9b82f67
--- /dev/null
+++ b/debian/tests/control
@@ -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
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..2504801
--- /dev/null
+++ b/debian/watch
@@ -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