mirror of
https://github.com/openzfs/zfs.git
synced 2025-10-01 19:56:28 +00:00

These changes bring the zfs-0.4.4 tree in to compliance with the spl-0.4.4 packaging changes. The bottom line is 2 source rpms and 4 binary rpms will now be generated when creating packages there will be: zfs-<version>.src.rpm - Fully rebuildable source rpm for libzfs and utils. zfs-modules-<version>.src.rpm - Fully rebuildable source rpm for kernel modules. zfs-<version>.<arch>.rpm - Binary rpm for libzfs and utils. The utils in this package are compatible with all zfs-module rpms of the same version. zfs-devel-<version>.<arch>.rpm - Binary rpm containing headers for building against libzfs libraries. zfs-modules-<verion>-<kernel>.arch.rpm - Binary rpm containing the kernel modules for a specific kernel build. The package name contains the kernel version and you should have one of these packages installed to match every kernel on your system. zfs-modules-devel-<verion>-<kernel>.arch.rpm - Binary rpm containing development header and module symbols needed for building additional kernel modules which are dependent on the zfs module stack. Expect minor interations on these changes as I validate they work properly on CHAOS, RHEL, Fedora, and SLES style distros.
47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
rpm-local:
|
|
mkdir -p $(rpmbuild)/TMP && \
|
|
mkdir -p $(rpmbuild)/BUILD && \
|
|
mkdir -p $(rpmbuild)/RPMS && \
|
|
mkdir -p $(rpmbuild)/SRPMS && \
|
|
mkdir -p $(rpmbuild)/SPECS && cp $(rpmspec) $(rpmbuild)/SPECS && \
|
|
mkdir -p $(rpmbuild)/SOURCES && cp $(distdir).tar.gz $(rpmbuild)/SOURCES
|
|
|
|
srpm-common: dist
|
|
rpmpkg=$(pkg)-$(ZFS_META_VERSION)-$(ZFS_META_RELEASE).src.rpm; \
|
|
rpmspec=$(pkg).spec; \
|
|
rpmbuild=`mktemp -t -d $(PACKAGE)-build-$$USER-XXXXXXXX`; \
|
|
$(MAKE) $(AM_MAKEFLAGS) \
|
|
rpmbuild="$$rpmbuild" \
|
|
rpmspec="$$rpmspec" \
|
|
rpm-local || exit 1; \
|
|
/usr/bin/rpmbuild \
|
|
--define "_tmppath $$rpmbuild/TMP" \
|
|
--define "_topdir $$rpmbuild" \
|
|
--define "build_src_rpm 1" \
|
|
--define "dist %{nil}" \
|
|
--nodeps -bs $$rpmbuild/SPECS/$$rpmspec || exit 1; \
|
|
cp $$rpmbuild/SRPMS/$$rpmpkg . || exit 1; \
|
|
$(RM) -R $$rpmbuild
|
|
|
|
rpm-common:
|
|
rpmpkg=$(pkg)-$(ZFS_META_VERSION)-$(ZFS_META_RELEASE).src.rpm; \
|
|
rpmspec=$(pkg).spec; \
|
|
rpmbuild=`mktemp -t -d $(PACKAGE)-build-$$USER-XXXXXXXX`; \
|
|
$(MAKE) $(AM_MAKEFLAGS) \
|
|
rpmbuild="$$rpmbuild" \
|
|
rpmspec="$$rpmspec" \
|
|
rpm-local || exit 1; \
|
|
/usr/bin/rpmbuild \
|
|
--define "_tmppath $$rpmbuild/TMP" \
|
|
--define "_topdir $$rpmbuild" \
|
|
--define "dist %{nil}" \
|
|
--define "require_kdir $(LINUX)" \
|
|
--define "require_kobj $(LINUX_OBJ)" \
|
|
--define "require_kver $(LINUX_VERSION)" \
|
|
--define "require_spldir $(SPL)" \
|
|
--define "require_splobj $(SPL_OBJ)" \
|
|
--define "require_splver $(SPL_VERSION)" \
|
|
--nodeps --rebuild $$rpmpkg || exit 1; \
|
|
cp $$rpmbuild/RPMS/*/* . || exit 1; \
|
|
$(RM) -R $$rpmbuild
|