How to Create a SuSE rpm Package From a Directory

To create an RPM package from a directory such as /opt/asd in SuSE, you can follow these general steps: zypper install rpm-build mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} This will create a directory structure that is required for building RPM packages. mkdir -p ~/rpmbuild/SOURCES/asd cp -r /opt/asd/* ~/rpmbuild/SOURCES/asd/ Name: asd Version: 1.0 Release: 1 Summary: Example RPM package… read more »