]> git.ipfire.org Git - thirdparty/dracut.git/commit
build: remove rpm spec file and build rules
authorJohn Meneghini <jmeneghi@redhat.com>
Tue, 14 Feb 2023 21:28:57 +0000 (16:28 -0500)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Thu, 16 Feb 2023 20:15:37 +0000 (20:15 +0000)
commitf3a7172db5dc02a6b8620a31ec36a5a3c1b540d4
tree0d21fa8e1f9b8ec2f4d9fcc8038d0e1866611fe8
parent89269d239f0539b7bd4339ba98a0d1b188b59962
build: remove rpm spec file and build rules

As discussed in issue #2204 this patch removes the dracut.spec file from
the repository.  The advantage of this patch is that it creates a
dracut-version.tar.xv file that can be more easily consumed by the
downstream distributions because there's no rpm spec file included in
the distribution.

Tested with a downstream rpm spec fiie:

```
cd dracut
VERSION=`git describe --abbrev=0 --tags --always`
make clean
make dist
cp dracut-${VERSION}.tar.xz ../
cd ..

xz -d -v dracut-${VERSION}.tar.xz
tar rf dracut-${VERSION}.tar dracut.spec
xz -9 dracut-${VERSION}.tar

rm -rf rmpbuild
mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
rpmbuild -ta --define "_topdir `pwd`/rpmbuild" -v dracut-${VERSION}.tar.xz
```

Fixes issue #2204
Makefile
pkgbuild/PKGBUILD [deleted file]
pkgbuild/dracut.spec [deleted file]