Jan Engelhardt 2015-07-15 14:41:53 +00:00 committed by Git OBS Bridge
parent 3995c01ffd
commit 1c453ae648
2 changed files with 11 additions and 11 deletions

View File

@ -67,19 +67,19 @@ cd doc
make pdf
%install
make install DESTDIR="%{buildroot}" LIBDIR="%_libdir" \
make install DESTDIR="%buildroot" LIBDIR="%_libdir" \
MODDESTDIR="$b/%_libdir/tc" DOCDIR="%_docdir/iproute2"
mkdir -p "%{buildroot}/%_docdir/iproute2";
cp -an ip/{ifcfg,routef,routel} doc/*.pdf "%{buildroot}/%_docdir/iproute2/"
mkdir -p "%buildroot/%_docdir/iproute2";
cp -an ip/{ifcfg,routef,routel} doc/*.pdf "%buildroot/%_docdir/iproute2/"
t=$$
mkdir $t
mv %{buildroot}/%_docdir $t
rm -rf %{buildroot}/*
mkdir -p %{buildroot}/%_docdir
mv $t/packages/* %{buildroot}/%_docdir
rm -rf $t
t="$$"
mkdir "$t"
mv "%buildroot/%_docdir" "$t/"
rm -rf "%buildroot"/*
mkdir -p "%buildroot/%_docdir"
mv "$t/packages"/* "%buildroot/%_docdir"
rm -rf "$t"
%files
%defattr(-,root,root)

View File

@ -28,7 +28,7 @@ Url: http://www.linuxfoundation.org/collaborate/workgroups/networking
#DL-URL: http://kernel.org/pub/linux/utils/net/iproute2/
#Git-Clone: git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2
Source: http://kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
Source: http://kernel.org/pub/linux/utils/net/iproute2/%name-%rversion.tar.xz
Source2: http://kernel.org/pub/linux/utils/net/iproute2/%name-%rversion.tar.sign
Source666: pre_checkin.sh
Source667: %name.keyring