create directory even if it exists
authorAnas Nashif <anas.nashif@intel.com>
Wed, 8 May 2013 18:38:08 +0000 (14:38 -0400)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 14 Aug 2013 20:42:57 +0000 (16:42 -0400)
packaging/linux-glibc-devel.spec

index 4444954..de13f1c 100644 (file)
@@ -1,4 +1,3 @@
-BuildRequires:  fdupes
 
 Name:           linux-glibc-devel
 # this confusing version number has no meaning, it's the version
@@ -17,8 +16,8 @@ Requires(pre):  coreutils
 Provides:       kernel-headers
 Provides:       linux-kernel-headers = %{version}
 Obsoletes:      linux-kernel-headers < %{version}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
+BuildRequires:  fdupes
 
 %description
 This package provides Linux kernel headers, the kernel API description
@@ -75,7 +74,7 @@ BOGUS
 cat version.h
 
 %install
-mkdir     %{buildroot}
+mkdir -p    %{buildroot}
 cp -a usr %{buildroot}
 cp -a version.h %{buildroot}/usr/include/linux/
 # Temporarily exclude i2c header files, which are provided by i2c-tools instead