~d-ci/libmemcached/pushtest

« back to all changes in this revision

Viewing changes to rpm/include.mk

  • Committer: Continuous Integration
  • Date: 2014-02-16 11:31:37 UTC
  • mfrom: (1112.1.1 1.2)
  • Revision ID: ci@tangent.org-20140216113137-fzl2orb8qf4osv42
Merge bzr://soup.haus/ Build: jenkins-Libmemcached-473

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# vim:ft=automake
2
2
 
3
 
rpm-build: support/$(PACKAGE).spec dist
4
 
        @rm -f *.rpm
5
 
        @rm -f ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-$(VERSION)*.rpm
6
 
        @rm -f ~/rpmbuild/SRPMS/$(PACKAGE)-$(VERSION)*.rpm
7
 
        @mkdir -p ~/rpmbuild/BUILD/
8
 
        @mkdir -p ~/rpmbuild/RPMS/i386/
9
 
        @mkdir -p ~/rpmbuild/RPMS/i686/
10
 
        @mkdir -p ~/rpmbuild/RPMS/noarch/
11
 
        @mkdir -p ~/rpmbuild/RPMS/x86_64/
12
 
        @mkdir -p ~/rpmbuild/SOURCES/
13
 
        @mkdir -p ~/rpmbuild/SPECS/
14
 
        @mkdir -p ~/rpmbuild/SRPMS/
15
 
        @cp $(PACKAGE)-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
16
 
        @rpmbuild -ba support/$(PACKAGE).spec
17
 
        @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-$(VERSION)*.rpm .
18
 
        @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-devel-$(VERSION)*.rpm .
19
 
        -cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-debuginfo-$(VERSION)*.rpm .
20
 
        @cp ~/rpmbuild/SRPMS/$(PACKAGE)-$(VERSION)*.rpm .
21
 
 
22
 
rpm-sign: rpm-build
23
 
        @rpm --addsign *.rpm
24
 
        @rpm --checksig *.rpm
25
 
 
 
3
RPM_BUILDDIR= ~/rpmbuild
 
4
RPM_SOURCESDIR= $(RPM_BUILDDIR)/SOURCES
 
5
 
 
6
RPM_BUILD_TARGET= @PACKAGE@-@VERSION@-@RPM_RELEASE@.@build_cpu@.rpm
 
7
RPM_SOURCE= $(RPM_SOURCESDIR)/$(DIST_ARCHIVES)
 
8
 
 
9
RPMS=
 
10
RPMS+= $(RPM_BUILD_TARGET)
 
11
RPMS+= @PACKAGE@-devel-@VERSION@-@RPM_RELEASE@.@build_cpu@.rpm
 
12
RPMS+= @PACKAGE@-debuginfo-@VERSION@-@RPM_RELEASE@.@build_cpu@.rpm
 
13
 
 
14
SRPMS= @PACKAGE@-@VERSION@-@RPM_RELEASE@.src.rpm
 
15
 
 
16
RPM_DIST= $(RPMS) $(SRPMS)
 
17
 
 
18
BUILD_RPMS= $(foreach rpm_iterator,$(RPMS),$(addprefix $(RPM_BUILDDIR)/RPMS/@build_cpu@/, $(rpm_iterator)))
 
19
BUILD_SRPMS= $(foreach srpm_iterator,$(SRPMS),$(addprefix $(RPM_BUILDDIR)/SRPMS/, $(srpm_iterator)))
 
20
BUILD_RPM_DIR= $(RPM_BUILDDIR)/BUILD/@PACKAGE@-@VERSION@
 
21
 
 
22
$(RPM_BUILDDIR):
 
23
        @@RPMDEV_SETUPTREE@
 
24
 
 
25
$(DIST_ARCHIVES): $(DISTFILES)
 
26
        $(MAKE) $(AM_MAKEFLAGS) dist-gzip
 
27
 
 
28
$(RPM_SOURCE): $(DIST_ARCHIVES) $(RPM_BUILDDIR)
 
29
        @cp $< $@
 
30
 
 
31
$(RPM_BUILD_TARGET): $(RPM_SOURCE) support/@PACKAGE@.spec
 
32
        -@rm -f $(BUILD_RPMS) $(BUILD_SRPMS)
 
33
        -@rm -rf $(BUILD_RPM_DIR)
 
34
        @@RPMBUILD@ -ba $(top_srcdir)/support/@PACKAGE@.spec
 
35
        @cp $(BUILD_RPMS) $(BUILD_SRPMS) .
 
36
 
 
37
.PHONY: rpm-sign
 
38
rpm-sign: $(RPM_BUILD_TARGET)
 
39
        @@RPM@ --addsign $(RPM_DIST)
 
40
        @@RPM@ --checksig $(RPM_DIST)
 
41
 
 
42
.PHONY: clean-rpm
26
43
clean-rpm:
27
 
        @rm -f *.tar.gz
28
 
        @rm -f *.src.rpm
29
 
        @rm -f *.rpm
30
 
 
31
 
rpm: clean-rpm support/$(PACKAGE).spec rpm-build
32
 
 
 
44
        -@rm -f $(BUILD_RPMS) $(BUILD_SRPMS) $(BUILD_RPM_SOURCE) $(RPM_DIST)
 
45
        -@rm -rf $(BUILD_RPM_DIR)
 
46
 
 
47
rpm: $(RPM_BUILD_TARGET)
 
48
dist-rpm: $(RPM_BUILD_TARGET)
 
49
 
 
50
.PHONY: release
33
51
release: rpm rpm-sign
34
52
 
35
 
auto-rpmbuild:
36
 
        @auto-br-rpmbuild -ba support/libmemcached.spec
 
53
.PHONY: auto-rpmbuild
 
54
auto-rpmbuild: support/@PACKAGE@.spec
 
55
        @auto-br-rpmbuild -ba $(top_srcdir)/support/@PACKAGE@.spec