mirror of
				https://github.com/Rudd-O/ansible-qubes.git
				synced 2025-10-31 19:48:54 +01:00 
			
		
		
		
	Ansible-Qubes gains RPM for the executables.
This commit is contained in:
		
							parent
							
								
									62eadf6dc4
								
							
						
					
					
						commit
						2102a6c13c
					
				
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1 +1,3 @@ | |||||||
| *.pyc | *.pyc | ||||||
|  | *.tar.gz | ||||||
|  | *.rpm | ||||||
|  | |||||||
							
								
								
									
										22
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | |||||||
|  | BINDIR=/usr/bin | ||||||
|  | DESTDIR= | ||||||
|  | PROGNAME=ansible-qubes | ||||||
|  | 
 | ||||||
|  | all: bin/* | ||||||
|  | 
 | ||||||
|  | clean: | ||||||
|  | 	find -name '*~' -print0 | xargs -0 rm -fv | ||||||
|  | 	rm -fv *.tar.gz *.rpm | ||||||
|  | 
 | ||||||
|  | dist: clean | ||||||
|  | 	excludefrom= ; test -f .gitignore && excludefrom=--exclude-from=.gitignore ; DIR=$(PROGNAME)-`awk '/^Version:/ {print $$2}' $(PROGNAME).spec` && FILENAME=$$DIR.tar.gz && tar cvzf "$$FILENAME" --exclude="$$FILENAME" --exclude=.git --exclude=.gitignore $$excludefrom --transform="s|^|$$DIR/|S" --show-transformed * | ||||||
|  | 
 | ||||||
|  | rpm: dist | ||||||
|  | 	T=`mktemp -d` && rpmbuild --define "_topdir $$T" -ta $(PROGNAME)-`awk '/^Version:/ {print $$2}' $(PROGNAME).spec`.tar.gz || { rm -rf "$$T"; exit 1; } && mv "$$T"/RPMS/*/* "$$T"/SRPMS/* . || { rm -rf "$$T"; exit 1; } && rm -rf "$$T" | ||||||
|  | 
 | ||||||
|  | srpm: dist | ||||||
|  | 	T=`mktemp -d` && rpmbuild --define "_topdir $$T" -ts $(PROGNAME)-`awk '/^Version:/ {print $$2}' $(PROGNAME).spec`.tar.gz || { rm -rf "$$T"; exit 1; } && mv "$$T"/SRPMS/* . || { rm -rf "$$T"; exit 1; } && rm -rf "$$T" | ||||||
|  | 
 | ||||||
|  | install: all | ||||||
|  | 	ls -la bin | ||||||
|  | 	install -Dm 755 bin/* -t $(DESTDIR)/$(BINDIR)/ | ||||||
							
								
								
									
										43
									
								
								ansible-qubes.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								ansible-qubes.spec
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,43 @@ | |||||||
|  | %define debug_package %{nil} | ||||||
|  | 
 | ||||||
|  | %define mybuildnumber %{?build_number}%{?!build_number:1} | ||||||
|  | 
 | ||||||
|  | Name:           ansible-qubes | ||||||
|  | Version:        0.0.1 | ||||||
|  | Release:        %{mybuildnumber}%{?dist} | ||||||
|  | Summary:        Inter-VM program execution for Qubes OS AppVMs and StandaloneVMs | ||||||
|  | BuildArch:      noarch | ||||||
|  | 
 | ||||||
|  | License:        GPLv3+ | ||||||
|  | URL:            https://github.com/Rudd-O/ansible-qubes | ||||||
|  | Source0:        https://github.com/Rudd-O/%{name}/archive/{%version}.tar.gz#/%{name}-%{version}.tar.gz | ||||||
|  | 
 | ||||||
|  | BuildRequires:  make | ||||||
|  | BuildRequires:  gawk | ||||||
|  | 
 | ||||||
|  | Requires:       python2 | ||||||
|  | 
 | ||||||
|  | %description | ||||||
|  | This package lets you execute programs between VMs as if it was SSH. | ||||||
|  | 
 | ||||||
|  | %prep | ||||||
|  | %setup -q | ||||||
|  | 
 | ||||||
|  | %build | ||||||
|  | # variables must be kept in sync with install | ||||||
|  | make DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} | ||||||
|  | 
 | ||||||
|  | %install | ||||||
|  | rm -rf $RPM_BUILD_ROOT | ||||||
|  | # variables must be kept in sync with build | ||||||
|  | for target in install; do | ||||||
|  |     make $target DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir} | ||||||
|  | done | ||||||
|  | 
 | ||||||
|  | %files | ||||||
|  | %attr(0755, root, root) %{_bindir}/* | ||||||
|  | %doc README.md | ||||||
|  | 
 | ||||||
|  | %changelog | ||||||
|  | * Sun Jul 09 2017 Manuel Amador (Rudd-O) <rudd-o@rudd-o.com> | ||||||
|  | - Initial release. | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Manuel Amador (Rudd-O)
						Manuel Amador (Rudd-O)