Skip to content

Commit

Permalink
Created rpm package
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Augstyniak committed Jul 18, 2019
1 parent a0bf324 commit 465899f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .rpm/fedora-prime.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
%define __spec_install_post %{nil}
%define __os_install_post %{_dbpath}/brp-compress
%define debug_package %{nil}

Name: fedora-prime
Summary: Switching between intel/nvidia drivers made simple
Version: @@VERSION@@
Release: 1
License: MIT
Group: Applications/System
Source0: %{name}-%{version}.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
%{summary}

%prep
%setup -q

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a * %{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/*
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

[package.metadata.rpm.cargo]
buildflags = ["--release"]

[package.metadata.rpm.targets]
fedora-prime = { path = "/usr/bin/fedora-prime" }

0 comments on commit 465899f

Please sign in to comment.