-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheoslfcplugin.spec
56 lines (41 loc) · 1.18 KB
/
eoslfcplugin.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
%define _unpackaged_files_terminate_build 0
Name: eoslfcplugin
Version: 0.1.0
Release: 3
Summary: LFC name plugin for EOS
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, lfc-libs >= 1.8, lfc-devel >= 1.8
#BuildRequires: xrootd-server-devel >= 3.3.0
#BuildRequires: xrootd-private-devel >= 3.3.0
Requires: lfc >= 1.8
%description
LFC plugin for EOS for doing name translations
%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/libEosLfcPlugin.so
/usr/lib64/libEosLfcOfsPlugin.so