Commit 16a74071 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Move clean of build root to macro

This ensures it always happens, and we don't need to manually do it in the
specfiles.
parent dee6068c
......@@ -19,3 +19,9 @@
%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
%%install\
%{nil}
%__spec_install_pre %{___build_pre}\
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\
mkdir -p `dirname "$RPM_BUILD_ROOT"`\
mkdir "$RPM_BUILD_ROOT"\
%{nil}
......@@ -41,8 +41,6 @@ Headers and static libraries for the D-Bus GLib bindings
make
%install
rm -rf %{buildroot}
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
......
......@@ -68,8 +68,6 @@ if test -f autogen.sh; then env NOCONFIGURE=1 ./autogen.sh; else autoreconf -v -
make
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
......
......@@ -27,8 +27,6 @@ original style, using an open collaborative development process.
%install
rm -fr %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p ttf/*.ttf %{buildroot}%{_fontdir}
......
......@@ -31,7 +31,6 @@ Libraries, headers, and support files necessary to compile applications using li
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/enchant/*.la
......
......@@ -113,8 +113,6 @@ Meta package for Freedesktop platform dependencies
%build
%install
rm -rf $RPM_BUILD_ROOT
# Need empty machine-id to bind mount over
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/
touch $RPM_BUILD_ROOT%{_sysconfdir}/machine-id
......
......@@ -80,8 +80,6 @@ Meta package for Gnome SDK dependencies
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm/
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
......
......@@ -69,9 +69,6 @@ make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
# Don't package static a or .la files
......
......@@ -73,8 +73,6 @@ Meta package for Gnome SDK dependencies
%build
%install
rm -rf $RPM_BUILD_ROOT
# Need empty machine-id to bind mount over
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/
touch $RPM_BUILD_ROOT%{_sysconfdir}/machine-id
......
......@@ -58,8 +58,6 @@ Meta package for Gnome SDK dependencies
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm/
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
......
......@@ -40,8 +40,6 @@ with which most of the glyphs used in LaTeX can be displayed.
%build
%install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -p -m 644 *.ttf %{buildroot}%{_fontdir}
......
......@@ -33,8 +33,6 @@ typeface family based on Lato.
%build
%install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
......
......@@ -33,8 +33,6 @@ coverage as Calibri. This font is sans-serif typeface family based on Lato.
%build
%install
rm -rf %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
......
......@@ -83,7 +83,6 @@ make %{?_smp_mflags} V=1
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang gst-plugins-base-%{majorminor}
......
......@@ -62,7 +62,6 @@ make %{?_smp_mflags} V=1
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# Remove rpath.
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgstbase-1.0.so.*
......
......@@ -23,7 +23,6 @@ chmod 0644 COPYING
%configure
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr install
touch $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
......
......@@ -80,7 +80,6 @@ for i in README_en_CA.txt README_en_US.txt; do
done
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p en_*.dic en_*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
cd scowl/speller
......
......@@ -34,7 +34,6 @@ configureflags="--disable-rpath --disable-static --with-ui --with-readline"
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
......
......@@ -33,8 +33,6 @@ autoreconf -v --install --force
V=1 make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# We intentionally don't ship *.la files
......
......@@ -35,8 +35,6 @@ autoreconf -v --install --force
make %{_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# We intentionally don't ship *.la files
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment