Skip to content

Commit a42927a

Browse files
committed
Import of tar_git from boss-launcher-webhook
...and a custom spec file
0 parents  commit a42927a

3 files changed

Lines changed: 1321 additions & 0 deletions

File tree

rpm/obs-service-tar-git.spec

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
Name: obs-service-tar-git
2+
3+
Summary: tar_git service designed for packing up git trees
4+
Version: 0.6.0
5+
Release: 1
6+
Group: Development/Tools
7+
BuildArch: noarch
8+
License: GPLv2
9+
URL: https://github.com/MeeGoIntegration/obs-service-tar-git
10+
Source0: %{name}-%{version}.tar.xz
11+
Requires: obs-source_service
12+
# git is the primary tool used
13+
Requires: git-core
14+
# use the repo source service if it is needed
15+
Requires: obs-service-repo
16+
# the script is written in bash
17+
Requires: bash
18+
# for tar, compress sources
19+
Requires: tar
20+
# in case .bz2 is used in .spec
21+
Requires: bzip2
22+
# in case .gz is used in .spec
23+
Requires: gzip
24+
# in case .xz is used in .spec
25+
Requires: xz
26+
# for find and xargs
27+
Requires: findutils
28+
# for all standard utils
29+
Requires: coreutils
30+
# gawk and awk is used in the script as well as sed
31+
Requires: gawk
32+
Requires: sed
33+
# for flock
34+
Requires: util-linux
35+
# rsync and curl is used in download_files section
36+
Requires: rsync
37+
Requires: curl
38+
39+
40+
%description
41+
%{summary}.
42+
43+
%prep
44+
%setup -q -n %{name}-%{version}
45+
46+
%build
47+
48+
%install
49+
rm -rf %{buildroot}
50+
mkdir -p %{buildroot}/usr/lib/obs/service/
51+
cp tar_git %{buildroot}/usr/lib/obs/service/
52+
cp tar_git.service %{buildroot}/usr/lib/obs/service/
53+
54+
%files
55+
%defattr(-,root,root,-)
56+
/usr/lib/obs/
57+
%defattr(755,root,root,-)
58+
/usr/lib/obs/service/tar_git

0 commit comments

Comments
 (0)