From ab899c373c94a0dfc5869b23e4f79a049a462170 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 6 Sep 2017 17:23:51 +0200 Subject: [PATCH] Add spec file --- patrix.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 patrix.spec diff --git a/patrix.spec b/patrix.spec new file mode 100644 index 0000000..0652c14 --- /dev/null +++ b/patrix.spec @@ -0,0 +1,48 @@ +Name: patrix +Version: 0.1.0 +Release: 1%{?dist} +Summary: Command line client for Matrix + +Group: Applications/Internet +License: MIT +URL: https://github.com/dani/patrix +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch + +Requires: perl(LWP::UserAgent) +Requires: perl(Config::Simple) +Requires: perl(HTTP::Request) +Requires: perl(File::HomeDir) +Requires: perl(Getopt::Long) +Requires: perl(JSON) + +%description +Patrix is a simple (and quite limited) client for the Matrix communication network +(see https://matrix.org). It's written in perl, and lets you send text message to +room via the command line. + +%prep +%setup -q + +%build + + +%install + +%{__rm} -rf $RPM_BUILD_ROOT + +# Install +%{__install} -d -m 750 $RPM_BUILD_ROOT%{_bindir} +%{__install} -m 0755 scripts/* $RPM_BUILD_ROOT%{_bindir} + +%clean +%{__rm} -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README.md CHANGELOG.git +%{_bindir}/patrix + +%changelog +* Wed Sep 6 2017 Daniel B. - 0.1.0-1 +- Initial release