Initial import
This commit is contained in:
		
							parent
							
								
									31d69f3bdc
								
							
						
					
					
						commit
						b4a97b2f9f
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| /bootupd-0.1.1.crate | ||||
							
								
								
									
										67
									
								
								rust-bootupd.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								rust-bootupd.spec
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,67 @@ | ||||
| %bcond_without check | ||||
| %global __cargo_skip_build 0 | ||||
| 
 | ||||
| %global crate bootupd | ||||
| 
 | ||||
| Name:           rust-%{crate} | ||||
| Version:        0.1.1 | ||||
| Release:        1%{?dist} | ||||
| Summary:        Bootloader updater | ||||
| 
 | ||||
| License:        ASL 2.0 | ||||
| URL:            https://crates.io/crates/bootupd | ||||
| Source:         %{crates_source} | ||||
| 
 | ||||
| # For now, see upstream | ||||
| ExclusiveArch:  x86_64 | ||||
| BuildRequires:  openssl-devel | ||||
| %if 0%{?rhel} && !0%{?eln} | ||||
| BuildRequires: rust-toolset | ||||
| %else | ||||
| BuildRequires: rust-packaging | ||||
| %endif | ||||
| BuildRequires:  systemd | ||||
| 
 | ||||
| %global _description %{expand: | ||||
| Bootloader updater} | ||||
| %description %{_description} | ||||
| 
 | ||||
| %package     -n %{crate} | ||||
| Summary:        %{summary} | ||||
| License:        ASL 2.0 | ||||
| %{?systemd_requires} | ||||
| 
 | ||||
| %description -n %{crate} %{_description} | ||||
| 
 | ||||
| %files -n %{crate} | ||||
| %license LICENSE | ||||
| %doc README.md | ||||
| %{_bindir}/bootupctl | ||||
| %{_unitdir}/* | ||||
| 
 | ||||
| %prep | ||||
| %autosetup -n %{crate}-%{version_no_tilde} -p1 | ||||
| %cargo_prep | ||||
| 
 | ||||
| %generate_buildrequires | ||||
| %cargo_generate_buildrequires | ||||
| 
 | ||||
| %build | ||||
| %cargo_build | ||||
| 
 | ||||
| %install | ||||
| %make_install INSTALL="install -p -c" | ||||
| 
 | ||||
| %post        -n %{crate} | ||||
| %systemd_post bootupd.service bootupd.socket | ||||
| 
 | ||||
| %preun       -n %{crate} | ||||
| %systemd_preun bootupd.service bootupd.socket | ||||
| 
 | ||||
| %postun      -n %{crate} | ||||
| %systemd_postun bootupd.service bootupd.socket | ||||
| 
 | ||||
| %changelog | ||||
| * Fri Sep 11 2020 Colin Walters <walters@verbum.org> - 0.1.0-3 | ||||
| - Initial package | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user