forked from piste2750/rpm-ltfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ltfs.spec
56 lines (45 loc) · 1.15 KB
/
ltfs.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
Summary: Linear Tape File System (On GitHub)
Name: ltfs
Version: 2.4.4.0
Release: 10470
License: BSD
Group: Util
Packager: User piste2750 on GitHub
URL: https://github.com/LinearTapeFileSystem/ltfs
Source0: https://github.com/LinearTapeFileSystem/ltfs/archive/v2.4.4.0-10470/ltfs-2.4.4.0.tar.gz
BuildRequires: automake autoconf libtool make
BuildRequires: icu libicu-devel libxml2-devel libuuid-devel fuse-devel
BuildRequires: net-snmp-devel
Requires: /sbin/ldconfig, /usr/bin/awk, /usr/bin/systemctl
Requires: libicu libxml2 libuuid fuse
Requires: net-snmp
%if %{defined suse_version}
%debug_package
%endif
%description
Reference implementation of the LTFS format Spec.
%prep
%autosetup -n ltfs-%{version}-%{release}
%build
./autogen.sh
%configure
%make_build
%install
%make_install
# Prepare symbolic link (backends)
%if "%{_lib}" == "lib64"
mkdir -p $RPM_BUILD_ROOT%{_exec_prefix}/lib
ln -s -f %{_libdir}/ltfs $RPM_BUILD_ROOT%{_exec_prefix}/lib/ltfs
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/*
%{_includedir}/*
%{_datadir}/*
%{_sysconfdir}/*
%if "%{_lib}" == "lib64"
%{_exec_prefix}/lib/ltfs
%endif