SRPMS: clean builddir for each package (including previous versions)

This commit is contained in:
Silvan Calarco 2016-02-12 11:01:35 +01:00
parent 8463b462e2
commit 48755a089f
9 changed files with 20 additions and 0 deletions

View File

@ -64,6 +64,8 @@ rm -fr ${tmpdir}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%files
%defattr(-,root,root)

View File

@ -52,6 +52,8 @@ rm -fr ${tmpdir}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%files
%defattr(-,root,root)

View File

@ -59,6 +59,8 @@ rm -fr ${tmpdir}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%files
%defattr(-,root,root)

View File

@ -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

View File

@ -99,6 +99,8 @@ _EOF
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-*
:
%files
%defattr(-,root,root)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)