obs-service-extract_file/obs-service-extract_file.spec
Grooooot 9a7b8b709f package init
Signed-off-by: Grooooot <isula@huawei.com>
2020-03-06 16:40:02 +08:00

34 lines
1008 B
RPMSpec

%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