!1 obs-service-extract_file: package init

Merge pull request !1 from Grooooot/master
This commit is contained in:
openeuler-ci-bot 2020-03-06 17:28:54 +08:00 committed by Gitee
commit 9059603037
2 changed files with 33 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,33 @@
%global commit 8ea7a76324b19e0ea3b1a559cbdfb8da9d038304
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: obs-service-extract_file
Version: 0.3
Release: 4
Summary: An OBS source service: Extract a file from an archive
License: GPLv2+
URL: https://github.com/openSUSE/obs-service-extract_file
Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildArch: noarch
Requires: cpio bzip2 findutils gzip tar unzip xz
%description
This is a source service for openSUSE Build Service, it supports to
extract a file from an archive.
%prep
%autosetup -n %{name}-%{commit}
%install
mkdir -p %{buildroot}/usr/lib/obs/service
install -pm 0755 extract_file %{buildroot}/usr/lib/obs/service
install -pm 0644 extract_file.service %{buildroot}/usr/lib/obs/service
%files
%license debian/copyright
%dir /usr/lib/obs
/usr/lib/obs/service
%changelog
* Wed Mar 4 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.3-4
- Package init