1
0
obs-service-node_modules/obs-service-node_modules.spec

48 lines
1.4 KiB
RPMSpec

#
# spec file for package obs-service-node_modules
#
# Copyright (c) 2024 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/
#
Name: obs-service-node_modules
Version: 2.4.0
Release: 0
Summary: OBS service to download node_modules specified in package-lock.json
License: MIT
URL: https://github.com/openSUSE/obs-service-node_modules
Requires: python3-lxml
BuildArch: noarch
%description
%prep
ln -s %_sourcedir/%name .
%setup -DTn %name
%autopatch
%build
%install
install -D -m 755 node_modules.py %{buildroot}%{_prefix}/lib/obs/service/node_modules
install -m 644 node_modules.service %{buildroot}%{_prefix}/lib/obs/service/node_modules.service
%files
%dir %{_prefix}/lib/obs
%dir %{_prefix}/lib/obs/service
%{_prefix}/lib/obs/service/node_modules
%{_prefix}/lib/obs/service/node_modules.service
%changelog