This repository was archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathxrootd-diamond-ofs.spec
More file actions
72 lines (55 loc) · 1.47 KB
/
xrootd-diamond-ofs.spec
File metadata and controls
72 lines (55 loc) · 1.47 KB
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
59
60
61
62
63
64
65
66
67
68
69
%define _unpackaged_files_terminate_build 0
Name: xrootd-diamond-ofs
Version: 0.1.7
Release: 1
Summary: EOS Diamond XRootD OFS plugin
Prefix: /usr
Group: Applications/File
License: GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Source: %{name}-%{version}-%{release}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: cmake >= 2.6
BuildRequires: xrootd-server-devel >= 4.1
BuildRequires: xrootd-private-devel >= 4.1
BuildRequires: xrootd-client-devel >= 4.1
BuildRequires: zlib zlib-devel
%if 0%{?rhel} >= 6 || %{?fedora}%{!?fedora:0}
%if %{?fedora}%{!?fedora:0} >= 18
BuildRequires: gcc, gcc-c++
%else
BuildRequires: gcc, gcc-c++
%endif
%else
BuildRequires: gcc44, gcc44-c++
%endif
Requires: xrootd >= 4.1
Requires: xrootd-client-libs >= 4.1
Requires: xrootd-client >= 4.1
Requires: zlib
%description
EOS Diamond XRootD OFS plugin
%prep
%setup -n %{name}-%{version}-%{release}
%build
test -e $RPM_BUILD_ROOT && rm -r $RPM_BUILD_ROOT
%if 0%{?rhel} < 6
export CC=/usr/bin/gcc44 CXX=/usr/bin/g++44
%endif
mkdir -p build
cd build
cmake ../ -DRELEASE=%{release} -DCMAKE_BUILD_TYPE=RelWithDebInfo
%{__make} %{_smp_mflags}
%install
cd build
%{__make} install DESTDIR=$RPM_BUILD_ROOT
echo "Installed!"
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/usr/lib64/libdiamond_ofs.so
/usr/lib64/libdiamond_ofs.so