From 97460fe329fd579e2015e5090cb1be3776016b0e97647c7dfcfdfb9f1ea05dac Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 12 Jun 2024 10:58:40 +0000 Subject: [PATCH] Accepting request 1147305 from home:ila.embsys:branches:openSUSE:Tools It is the change that add packaging for deb format that I did for myself, but it also could be useful for someone else, so I decided to offer it to merge. OBS-URL: https://build.opensuse.org/request/show/1147305 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-node_modules?expand=0&rev=14 --- _service | 5 +++++ debian.changelog | 5 +++++ debian.compat | 1 + debian.control | 10 ++++++++++ debian.dsc | 10 ++++++++++ debian.rules | 14 ++++++++++++++ obs-service-node_modules.changes | 5 +++++ 7 files changed, 50 insertions(+) create mode 100644 debian.changelog create mode 100644 debian.compat create mode 100644 debian.control create mode 100644 debian.dsc create mode 100644 debian.rules diff --git a/_service b/_service index 41fa179..4d485df 100644 --- a/_service +++ b/_service @@ -8,4 +8,9 @@ v?(.*) + + + *.tar + gz + diff --git a/debian.changelog b/debian.changelog new file mode 100644 index 0000000..4946b44 --- /dev/null +++ b/debian.changelog @@ -0,0 +1,5 @@ +obs-service-node-modules (2.3.0-0) unstable; urgency=medium + + * Initial release. + + -- Ilya Stolyarov Wed, 17 Jan 2024 23:28:16 +0400 diff --git a/debian.compat b/debian.compat new file mode 100644 index 0000000..6e7960a --- /dev/null +++ b/debian.compat @@ -0,0 +1 @@ +10 diff --git a/debian.control b/debian.control new file mode 100644 index 0000000..ef25934 --- /dev/null +++ b/debian.control @@ -0,0 +1,10 @@ +Source: obs-service-node-modules +Priority: optional +Maintainer: Ilya Stolyarov +Standards-Version: 3.9.8 +Section: devel + +Package: obs-service-node-modules +Section: devel +Architecture: any +Description: OBS service to download node_modules specified in package-lock.json diff --git a/debian.dsc b/debian.dsc new file mode 100644 index 0000000..0af049c --- /dev/null +++ b/debian.dsc @@ -0,0 +1,10 @@ +Format: 3.0 (quilt) +Source: obs-service-node-modules +Version: 2.3.0-0 +Binary: obs-service-node-modules +Maintainer: Ilya Stolyarov +Architecture: all +Standards-Version: 3.7.2 +Build-Depends: debhelper, + python3-lxml + diff --git a/debian.rules b/debian.rules new file mode 100644 index 0000000..7931a2e --- /dev/null +++ b/debian.rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +prefix := /usr + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install + + install -D -m 755 node_modules.py \ + ./debian/obs-service-node-modules/$(prefix)/lib/${DEB_HOST_MULTIARCH}/obs/service/node_modules + install -m 644 node_modules.service \ + ./debian/obs-service-node-modules/$(prefix)/lib/${DEB_HOST_MULTIARCH}/obs/service/node_modules.service diff --git a/obs-service-node_modules.changes b/obs-service-node_modules.changes index f9266fe..2d0f1de 100644 --- a/obs-service-node_modules.changes +++ b/obs-service-node_modules.changes @@ -4,6 +4,11 @@ Mon Jan 29 15:50:36 UTC 2024 - adam.majer@suse.de - Update to version 2.4.0: * Fix handling of direct git repos in v3 +------------------------------------------------------------------- +Wed Jan 17 21:14:52 UTC 2024 - Ilya Stolyarov + +- Add debian part + ------------------------------------------------------------------- Tue Sep 19 11:34:58 UTC 2023 - adam.majer@suse.de