blob: 708ae85391543f03c792bcd4e2bb917942039400 (
plain)
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
|
%bcond_with symlink
Name: symlinktest
Version: 1.0
Release: %{rel}
Summary: Testing symlink behavior
Group: Testing
License: GPL
BuildArch: noarch
%description
%{summary}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share
%if %{with symlink}
mkdir -p $RPM_BUILD_ROOT/usr/lib/%{name}
echo %{name} > $RPM_BUILD_ROOT/usr/lib/%{name}/README
ln -s ../lib/%{name} $RPM_BUILD_ROOT/usr/share/%{name}
%else
mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}
echo %{name} > $RPM_BUILD_ROOT/usr/share/%{name}/README
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%if %{with symlink}
/usr/lib/%{name}
%endif
/usr/share/%{name}
|