README.md

Packaging for OpenZFS for Linux for RPM and Debian distributions

This repo attempts to capture packaging OpenZFS for Linux for RPM and Debian distributions.

How to build the package (rpm)

On a RPM system,

  1. Install the rpm-build package
  2. Create the folder tree: mkdir -p ~/rpmbuild/{SPECS,SOURCES,BUILD,BUILDROOT,RPMS,SRPMS}
  3. Copy all the source files into ~/rpmbuild/SOURCES
  4. Download the zfs source tarball referenced in the spec and put it in ~/rpmbuild/SOURCES
  5. Copy the spec to ~/rpmbuild/SPECS
  6. Run rpmbuild: rpmbuild -ba ~/rpmbuild/SPECS/zfs.spec

How to build the package (deb)

This 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,

  1. Install debbuild from the openSUSE Build Service.
  2. Create the folder tree: mkdir -p ~/debbuild/{SPECS,SOURCES,BUILD,BUILDROOT,DEBS,SDEBS}
  3. Copy all the source files into ~/debbuild/SOURCES
  4. Download the zfs source tarball referenced in the spec and put it in ~/debbuild/SOURCES
  5. Copy the spec to ~/debbuild/SPECS
  6. Run debbuild: debbuild -ba ~/debbuild/SPECS/zfs.spec