SRPMS: clean builddir for each package (including previous versions)
This commit is contained in:
parent
8463b462e2
commit
48755a089f
@ -64,6 +64,8 @@ rm -fr ${tmpdir}
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
rm -rf %{_builddir}/%{name}-*
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
@ -52,6 +52,8 @@ rm -fr ${tmpdir}
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
rm -rf %{_builddir}/%{name}-*
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
@ -59,6 +59,8 @@ rm -fr ${tmpdir}
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
rm -rf %{_builddir}/%{name}-*
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
@ -33,6 +33,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
The TrueType core fonts for the web that was once available from http://www.microsoft.com/typography/fontpack/. The src rpm is cleverly constructed so that the actual fonts are downloaded from Sourceforge's site at build time. Therefore this package technically does not 'redistribute' the fonts, it just makes it easy to install them on a linux system.
|
||||
|
||||
%prep
|
||||
%setup -c -n %{name}-%{version} -D -T
|
||||
|
||||
rm -rf %{name}
|
||||
mkdir %{name}
|
||||
cd %{name}
|
||||
@ -83,6 +85,8 @@ cp *.ttf %{buildroot}%{fontdir}
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
rm -rf %{_builddir}/%{name}-*
|
||||
:
|
||||
|
||||
%post
|
||||
/usr/bin/fc-cache
|
||||
|
@ -99,6 +99,8 @@ _EOF
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
rm -rf %{_builddir}/%{name}-*
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
@ -50,6 +50,8 @@ ln -sf /usr/lib64/libssl.so.1.0.0 %{buildroot}/opt/spotify/lib/spotify-client/li
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
rm -rf %{_builddir}/%{name}-*
|
||||
:
|
||||
|
||||
%pre
|
||||
if [ $1 -ge 1 ]; then
|
||||
|
@ -308,6 +308,8 @@ rm -f %{buildroot}%{_jvmdir}/%{jredir}/lib/*/fxavcodecplugin-52.so
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
rm -rf %{_builddir}/%{name}-*
|
||||
:
|
||||
|
||||
%pre
|
||||
if [ $1 -ge 1 ]; then
|
||||
|
@ -45,6 +45,8 @@ cp %{S:0} LICENSE
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
rm -rf %{_builddir}/%{name}-*
|
||||
:
|
||||
|
||||
%post
|
||||
#VBoxManage extpack uninstall Oracle_VM_VirtualBox_Extension_Pack || true
|
||||
|
@ -92,6 +92,8 @@ find . -type f -exec install -D "{}" "%{buildroot}%{win32dir}/{}" \;
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
rm -rf %{_builddir}/%{name}-*
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user