findutils.spec: apply patches after cleanup in git

This commit is contained in:
Kamil Dudka 2016-06-24 13:19:07 +02:00
parent 0f2255e7b1
commit 4a1c687291
1 changed files with 9 additions and 5 deletions

View File

@ -57,9 +57,13 @@ You should install findutils because it includes tools that are very
useful for finding things on your system. useful for finding things on your system.
%prep %prep
%autosetup -S git %autosetup -N -S git
# drop ignored files and mark them as ignored # drop the source code of locate
git rm -q -r locate
git commit -q -m "drop the source code of locate"
# remove ignored files from git and mark them as ignored
tee -a .gitignore << EOF tee -a .gitignore << EOF
*~ *~
Makefile.in Makefile.in
@ -73,10 +77,10 @@ Makefile.in
EOF EOF
git rm -q -r --cached . git rm -q -r --cached .
git add --all . git add --all .
git commit -m "drop ignored files" git commit -m "remove ignored files from git"
git rm -q -r locate # apply all patches
git commit -q -m "drop the source code of locate" %autopatch -S git
# needed because of findutils-4.5.15-no-locate.patch # needed because of findutils-4.5.15-no-locate.patch
autoreconf -fiv autoreconf -fiv