forked from joaquimrocha/xrootd-auth-change-uid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xrootd-auth-chance-uid.spec
55 lines (40 loc) · 1.18 KB
/
xrootd-auth-chance-uid.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
%define _unpackaged_files_terminate_build 0
Name: xrootd-auth-change-uid
Version: 0.2.2
Release: 1
Summary: Authentication Plugin run threads with the fs ID of a connected client
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
Requires: xrootd >= 4.1
%description
XRootD Authz plugin to run threads with the fs ID of a connected client
%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/libAuthChangeFsUid.so