forked from dCache/SmallFiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dcache-smallfiles-packer.spec
59 lines (53 loc) · 2.46 KB
/
dcache-smallfiles-packer.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Specfile for the dCache SmallFiles service
#
Summary: Scripts that allow handling of small files with dCache
Name: dcache-smallfiles-packer
Version: 1.2.7
Release: 1
License: GPL
Group: Applications/Services
Source: https://github.com/dCache/SmallFiles/archive/master/master.zip
URL: https://github.com/dCache/SmallFiles.git
BuildRoot: %{_tmppath}/%{name}-root
BuildArch: noarch
Distribution: dCache
Prefix: %{_prefix}
Vendor: dCache.org
Packager: dCache <[email protected]>
%description
dcache-smallfiles is a collection of scripts running as a service
to transparently combine bunches of small files in dCache into
large container files that are more suitable to be written to tape
systems.
%prep
rm -rf $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_DIR/*
wget -O $RPM_SOURCE_DIR/master.zip https://github.com/dCache/SmallFiles/archive/master/master.zip
unzip $RPM_SOURCE_DIR/master.zip
mv SmallFiles*/* .
%build
%install
install --directory ${RPM_BUILD_ROOT}/etc/dcache
install --mode 644 $RPM_BUILD_DIR/src/skel/etc/dcache/container.conf ${RPM_BUILD_ROOT}/etc/dcache/container.conf
install --directory ${RPM_BUILD_ROOT}/etc/init.d
install --mode 755 $RPM_BUILD_DIR/src/skel/etc/init.d/pack-system ${RPM_BUILD_ROOT}/etc/init.d/pack-system
install --directory ${RPM_BUILD_ROOT}/usr/local/bin
install --mode 755 $RPM_BUILD_DIR/src/skel/usr/local/bin/dcap.py ${RPM_BUILD_ROOT}/usr/local/bin/dcap.py
install --mode 755 $RPM_BUILD_DIR/src/skel/usr/local/bin/pack-files.py ${RPM_BUILD_ROOT}/usr/local/bin/pack-files.py
install --mode 755 $RPM_BUILD_DIR/src/skel/usr/local/bin/fillmetadata.py ${RPM_BUILD_ROOT}/usr/local/bin/fillmetadata.py
install --mode 755 $RPM_BUILD_DIR/src/skel/usr/local/bin/writebfids.py ${RPM_BUILD_ROOT}/usr/local/bin/writebfids.py
install --directory ${RPM_BUILD_ROOT}/etc/systemd/system
install --mode 755 $RPM_BUILD_DIR/src/skel/etc/systemd/system/fillmetadata.service ${RPM_BUILD_ROOT}/etc/systemd/system/fillmetadata.service
install --mode 755 $RPM_BUILD_DIR/src/skel/etc/systemd/system/pack-files.service ${RPM_BUILD_ROOT}/etc/systemd/system/pack-files.service
install --mode 755 $RPM_BUILD_DIR/src/skel/etc/systemd/system/writebfids.service ${RPM_BUILD_ROOT}/etc/systemd/system/writebfids.service
%files
/etc/dcache/container.conf
/etc/init.d/pack-system
/usr/local/bin/dcap.py
/usr/local/bin/pack-files.py
/usr/local/bin/fillmetadata.py
/usr/local/bin/writebfids.py
/etc/systemd/system/fillmetadata.service
/etc/systemd/system/pack-files.service
/etc/systemd/system/writebfids.service