This repo attempts to capture packaging OpenZFS for Linux for RPM and Debian distributions.
On a RPM system,
rpm-build packagemkdir -p ~/rpmbuild/{SPECS,SOURCES,BUILD,BUILDROOT,RPMS,SRPMS}~/rpmbuild/SOURCES~/rpmbuild/SOURCES~/rpmbuild/SPECSrpmbuild -ba ~/rpmbuild/SPECS/zfs.specThis package is built using debbuild for Debian targets. You can install debbuild from the openSUSE Build Service for either Debian or Ubuntu.
On a Debian/Ubuntu system,
debbuild from the openSUSE Build Service.mkdir -p ~/debbuild/{SPECS,SOURCES,BUILD,BUILDROOT,DEBS,SDEBS}~/debbuild/SOURCES~/debbuild/SOURCES~/debbuild/SPECSdebbuild -ba ~/debbuild/SPECS/zfs.spec