Merge lp:~tangent-org/libmemcached/1.0-build/ Build: jenkins-Libmemcached-187
[m6w6/libmemcached] / rpm / include.am
1 # vim:ft=automake
2
3 rpm-build: support/$(PACKAGE).spec distcheck
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
26 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
33 release: rpm rpm-sign
34
35 auto-rpmbuild:
36 @auto-br-rpmbuild -ba support/libmemcached.spec