Browse Source

Add RPM spec and info for cargo-rpm

master
η (eta) 2 years ago
parent
commit
a0303b3059
  1. 33
      .rpm/sms-irc.spec
  2. 9
      Cargo.toml

33
.rpm/sms-irc.spec

@ -0,0 +1,33 @@
%define __spec_install_post %{nil}
%define __os_install_post %{_dbpath}/brp-compress
%define debug_package %{nil}
Name: sms-irc
Summary: A WhatsApp/SMS to IRC bridge
Version: @@VERSION@@
Release: 1
Requires: postgresql
Requires: openssl
License: AGP-3.0
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}/*

9
Cargo.toml

@ -3,6 +3,8 @@ authors = ["eeeeeta <eeeeeta@users.noreply.github.com>"]
name = "sms-irc"
edition = "2018"
version = "0.1.0"
description = "A WhatsApp/SMS to IRC bridge"
license = "AGPL-3.0"
[dependencies]
derive_builder = "0.7"
@ -47,3 +49,10 @@ version = "0.7"
[dependencies.whatsappweb-eta]
git = "https://git.theta.eu.org/whatsappweb-rs.git/"
[package.metadata.rpm.cargo]
buildflags = ["--release"]
[package.metadata.rpm.targets]
sms-irc = { path = "/usr/bin/sms-irc" }
Loading…
Cancel
Save