summaryrefslogtreecommitdiffstats
path: root/extras/rpm/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2018-08-21SUSE: rpm-packaging fixesMarco Varlese1-1/+8
Change-Id: Ic7ddc34bbb2fe414d41a083efd8caf35a12488ab Signed-off-by: Marco Varlese <marco.varlese@suse.de>
2017-12-04Optimize RPM build processRenato Botelho do Couto1-20/+17
* Remove unused variable OS_VERSION_ID * Do all RPM building in build-root/rpmbuild * Add build-root/rpmbuild to .gitignore * Move redundant code to a target called 'spec' * Copy spec file to SPECS instead of SOURCES * Only set %{_topdir} macro when it's undefined, and because of that remove sed call to delete definition on spec file * Pass _version and _release using --define parameter instead of using sed to add them to .spec * Move rpm files to build-root after build finishes * Add dist tarball to .gitignore Change-Id: I230d60b62914056b353f7f8701d14754b0bf7f8c Signed-off-by: Renato Botelho do Couto <renato@netgate.com>
2017-11-30Cleanup and simplifyMarco Varlese1-31/+13
This patch addresses two things: 1) It simplifies the Makefile to build RPMs by removing duplication and use environment variables instead; 2) It aligns openSUSE with others with regards to invoke "pkg-rpm" by the build.sh for Vagrant Change-Id: I51557f54e4ddf49d83bb69fa0035c8fff122857e Signed-off-by: Marco Varlese <marco.varlese@suse.com>
2017-11-29Using $(CURDIR) to fix the absolute path issueMarco Varlese1-1/+1
Change-Id: Ic26edd34a2980fc8cf34514433a7b7076660316e Signed-off-by: Marco Varlese <marco.varlese@suse.com>
2017-10-12Add support for packaging SUSE RPMs.Marco Varlese1-0/+30
This patch adds a new spec file for SUSE distribution and modifies the Makefile to learn which platform is building the RPMs for. Change-Id: Ic8ee0ddf978042cc1785ebc28bd1a6c9faf9bb74 Signed-off-by: Marco Varlese <marco.varlese@suse.com>
2017-08-08Create source rpm.Thomas F Herbert1-3/+19
Use actual file name for tarball. Includes required modifications in spec file for unpacking srpm. Spec file source references actual dist tarball name so it matches the revision and release while building from srpm. JIRA: VPP-498 Change-Id: I8b55a69f060b7864527b94d8c5b0a2ebccc306b1 Signed-off-by: Thomas F Herbert <therbert@redhat.com>
2017-04-19Fix "make dist" to include version number, docouple it from rpm packagingDamjan Marion1-0/+30
Change-Id: If2f9976d668089026c97b897cf449bff09050631 Signed-off-by: Damjan Marion <damarion@cisco.com>