]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Makefile: remove fedpkg dependency for "srpm" 1888/head
authorKen Dreyer <kdreyer@redhat.com>
Tue, 12 Sep 2017 22:59:44 +0000 (16:59 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Wed, 13 Sep 2017 16:46:37 +0000 (10:46 -0600)
It's not currently possible to install EPEL 7's fedpkg alongside the
centos-packager package in CentOS 7 Extras (for /usr/bin/cbs), because
they each depend on slightly different Koji package versions.

This means that we cannot run "make srpm" on a system where
centos-packager is installed, because that depends on fedpkg.

Remove the dependency on fedpkg for the "srpm" target, and run
rpmbuild -bs directly.

The purpose of this change is to make it easier to automatically
build ceph-ansible SRPMs in Jenkins/cbs.centos.org.

Makefile

index 659fccd5a3b76cd29ae5c94d9ba6d9d69333e4f9..15befa12307f8d55393a6826677633a0db1d42d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,11 @@ spec:
          > ceph-ansible.spec
 
 srpm: dist spec
-       fedpkg --dist epel7 srpm
+       rpmbuild -bs ceph-ansible.spec \
+         --define "_topdir ." \
+         --define "_sourcedir ." \
+         --define "_srcrpmdir ." \
+         --define "dist .el7"
 
 rpm: dist srpm
        mock -r epel-7-x86_64 rebuild $(NVR).src.rpm \