Get name of archive from calling rpm on the spec file
This commit is contained in:
		@@ -88,7 +88,10 @@ RPM_BUILD_DIR ?= $(BUILDDIR)/$(NAME)-$(VERSION)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#needed for archivefile rule
 | 
					#needed for archivefile rule
 | 
				
			||||||
TREEPATH := $(NAME)-$(VERSION)
 | 
					TREEPATH := $(NAME)-$(VERSION)
 | 
				
			||||||
 | 
					TREEPATH := $(NAME)-$(VERSION)
 | 
				
			||||||
EXT := $(shell cat $(NAME).spec | grep Source | sed 's/Source: //' | sed -E 's/^([^.]*\.)(.*)$/\2//')
 | 
					EXT := $(shell cat $(NAME).spec | grep Source | sed 's/Source: //' | sed -E 's/^([^.]*\.)(.*)$/\2//')
 | 
				
			||||||
 | 
					ARCHIVEFILE := $(shell cat $(NAME).spec | grep Source | sed -r 's/^Source[0..9]*:\s*//' | xargs basename)
 | 
				
			||||||
 | 
					ARCHIVEFILE := $(shell rpm --queryformat '$(ARCHIVEFILE)\n' --specfile $(NAME).spec | head -n 1)
 | 
				
			||||||
TEMPDIR := $(shell mktemp -d)
 | 
					TEMPDIR := $(shell mktemp -d)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user