From 13ca3f8ec3465de5ed116a2500e84d93f25763e5 Mon Sep 17 00:00:00 2001 From: torbuntu Date: Aug 31 2020 20:49:39 +0000 Subject: Initial commit atinout package --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a9a009 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/atinout-0.9.1.tar.gz diff --git a/0001-remove-custom-flags.patch b/0001-remove-custom-flags.patch new file mode 100644 index 0000000..a68399c --- /dev/null +++ b/0001-remove-custom-flags.patch @@ -0,0 +1,14 @@ +--- Makefile 2013-09-08 11:39:02.000000000 -0500 ++++ Makefile 2020-08-31 13:35:35.032858931 -0500 +@@ -3,10 +3,7 @@ + PREFIX = /usr + + CC = gcc +-CFLAGS = -W -Wall -Wextra -Werror \ +- -DVERSION=\"$(VERSION)\" \ +- -g +-LDFLAGS = ++CFLAGS += -DVERSION=\"$(VERSION)\" + + all: atinout + \ No newline at end of file diff --git a/README.md b/README.md index 467274a..6f18ac4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # atinout -The atinout package +This program will read a file (or stdin) containing a list of AT +commands. Each command will be send to the modem, and all the response +for the command will be output to file (or stdout). \ No newline at end of file diff --git a/atinout.spec b/atinout.spec new file mode 100644 index 0000000..ad6f6cb --- /dev/null +++ b/atinout.spec @@ -0,0 +1,40 @@ +Name: atinout +Summary: AT commands as input are sent to modem and responses given as output +Version: 0.9.1 +Release: 1%{?dist} +License: GPLv3+ + +URL: https://atinout.sourceforge.net/ +Source0: https://sourceforge.net/projects/%{name}/files/%{name}-%{version}.tar.gz + +# Remove the custom build flags that override fedora build flags, continue to append -DVERSION for build to succeed +Patch0: 0001-remove-custom-flags.patch + +BuildRequires: gcc + +%global _hardened_build 1 + +%description +This program will read a file (or stdin) containing a list of AT +commands. Each command will be send to the modem, and all the response +for the command will be output to file (or stdout). + +%prep +%autosetup + +%build +%set_build_flags +%make_build + +%install +%make_install + +%files +%{_bindir}/atinout +%{_mandir}/man1/atinout.1* +%doc README atinout.1.html logo/atinout.svg +%license gplv3.txt + +%changelog +* Wed Aug 26 2020 Torrey Sorensen - 0.9.1-1 +- initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..5fdde17 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (atinout-0.9.1.tar.gz) = ae25b2c4f3e2a9b861a7fc7d8e469d0d9d7a230281266393ce8547abca7e2368a709db3293ca31c00d5599b1de12ae9c8cd2bc0beefce53fa30012b6a2d7764b