Blame tests/data/SPECS/hlinktest.spec

2ff057
%bcond_with unpackaged_dirs
2ff057
%bcond_with unpackaged_files
2ff057
2ff057
Summary:          Testing hard link behavior
2ff057
Name:             hlinktest
2ff057
Version:          1.0
2ff057
Release:          1
2ff057
License:          Testing
2ff057
Group:            Testing
2ff057
BuildArch:	  noarch
2ff057
Provides: /bin/sh
2ff057
%description
2ff057
  
2ff057
%install
2ff057
rm -rf %{buildroot}
2ff057
mkdir -p $RPM_BUILD_ROOT/foo
2ff057
cat << EOF >> $RPM_BUILD_ROOT/foo/hello
2ff057
#!/bin/sh
2ff057
echo %{name}-%{version}
2ff057
EOF
2ff057
2ff057
cd $RPM_BUILD_ROOT/foo
2ff057
cat hello > copyllo
2ff057
cat hello > aaaa
2ff057
ln aaaa zzzz
2ff057
chmod a+x hello copyllo
2ff057
for f in foo bar world; do
2ff057
    ln hello hello-${f}
2ff057
done
2ff057
2ff057
%if %{with unpackaged_dirs}
2ff057
mkdir -p $RPM_BUILD_ROOT/zoo/
2ff057
%endif
2ff057
2ff057
%if %{with unpackaged_files}
2ff057
touch $RPM_BUILD_ROOT/toot
2ff057
%endif
2ff057
2ff057
%files
2ff057
%defattr(-,root,root)
2ff057
/foo/*