-
Notifications
You must be signed in to change notification settings - Fork 3
/
xrootd-rados-oss.spec
57 lines (42 loc) · 1.19 KB
/
xrootd-rados-oss.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
%define _unpackaged_files_terminate_build 0
Name: xrootd-rados-oss
Version: 0.1.1
Release: 1
Summary: XRootD OSS plugin for RADOS pools (CEPH)
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: radosfs-devel >= 0.4
BuildRequires: xrootd4-server-devel >= 4.0
BuildRequires: xrootd4-private-devel >= 4.0
Requires: radosfs >= 0.4 xrootd4 >= 4.0
%description
XRootD OSS plugin for RADOS pools (CEPH)
%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/libRadosOss.so
/usr/lib64/libRadosOss.so