|
|
@ -80,10 +80,10 @@ fi\
|
|
|
|
if [ -d "%{buildroot}%{docdir}" ]; then\
|
|
|
|
if [ -d "%{buildroot}%{docdir}" ]; then\
|
|
|
|
echo "%{docdir}" >> %{basepkg}-devel.files\
|
|
|
|
echo "%{docdir}" >> %{basepkg}-devel.files\
|
|
|
|
fi\
|
|
|
|
fi\
|
|
|
|
for i in $(ls %{buildroot}%{_docdir}/%{!?1:*}%{?1:%{basepkg})/); do\
|
|
|
|
for i in $(ls %{buildroot}%{_docdir}/%{!?1:*}%{?1:%{basepkg}}/); do\
|
|
|
|
echo "%%license %{?1:%{pkgnamever}/}$i" >> %{basepkg}.files\
|
|
|
|
echo "%%license %{?1:%{pkgnamever}/}$i" >> %{basepkg}.files\
|
|
|
|
mkdir -p %{buildroot}%{_defaultlicensedir}/%{basepkg}\
|
|
|
|
mkdir -p %{buildroot}%{_defaultlicensedir}/%{basepkg}\
|
|
|
|
mv %{buildroot}%{_docdir}/%{basepkg}/$i %{buildroot}%{_defaultlicensedir}/%{basepkg}/\
|
|
|
|
mv %{buildroot}%{_docdir}/%{!?1:*}%{?1:%{basepkg}}/$i %{buildroot}%{_defaultlicensedir}/%{basepkg}/\
|
|
|
|
done\
|
|
|
|
done\
|
|
|
|
for i in %{basepkg}.files %{basepkg}-devel.files; do\
|
|
|
|
for i in %{basepkg}.files %{basepkg}-devel.files; do\
|
|
|
|
if [ -f "$i" ]; then\
|
|
|
|
if [ -f "$i" ]; then\
|
|
|
|