Skip to content

Commit

Permalink
Fix RPM build and bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
valderman committed Nov 12, 2024
1 parent 9210a02 commit 2e1c638
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "totpm"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
license = "MIT"

Expand All @@ -19,7 +19,7 @@ rpassword = "7.3.1"
rusqlite = "0.31.0"
serde = "1.0.205"
serde_derive = "1.0.205"
serde_json = { version = "1.0.132", optional = true }
serde_json = { version = "1.0.128", optional = true }
stderrlog = "0.6.0"
toml = "0.8.19"
tss-esapi = "7.4.0"
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
VERSION = $(shell cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')
SOURCES = $(shell find . -type f -name '*.rs') Cargo.toml Cargo.lock LICENSE totpm.spec totpm.sysusers testutil/Cargo.lock testutil/Cargo.toml Makefile totpm.conf
FEDORA_RELEASE ?= 40
FEDORA_RELEASE ?= 41
ARCH ?= x86_64

totpm-$(VERSION).tar.gz: $(SOURCES)
tar \
--exclude *.tar.gz \
--exclude .* \
--exclude '*.tar.gz' \
--exclude '.git*' \
--exclude '.vscode' \
--exclude target \
--exclude *.rpm \
--exclude results_* \
--exclude '*.rpm' \
--exclude 'results_*' \
--transform 's,^\(\.[^/]\+\),totpm-$(VERSION)/\1,' \
--transform 's,^\.,totpm-$(VERSION),' \
-czf totpm-$(VERSION).tar.gz .
Expand Down
2 changes: 1 addition & 1 deletion totpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%global cargo_install_lib 0

Name: totpm
Version: 0.1.1
Version: 0.1.2
Release: 1%{?dist}
Summary: A TPM-backed command line TOTP client. Like Google Authenticator in your terminal.

Expand Down

0 comments on commit 2e1c638

Please sign in to comment.