-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathatinout.spec.in
63 lines (47 loc) · 1.67 KB
/
atinout.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Name: atinout
Summary: AT commands as input are sent to modem and responses given as output
Version: @VERSION@
%if 0%{?suse_version}
Release: 1
Group: Hardware/Modem
License: GPL-3.0+
%else
Release: 1%{?dist}
Group: Applications/Communications
License: GPLv3+
%endif
URL: http://atinout.sourceforge.net/
Source0: http://sourceforge.net/projects/%{name}/files/%{name}-%{version}.tar.gz
# The BuildRoot tag should always be used, even if newer rpms override it anyway. The preferred path is %{_tmppath}/%{name}-%{version}-build.
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%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).
Example, to hang up an ongoing call:
$ echo ATH | atinout - /dev/ttyACM0 -
ATH
OK
$
%prep
%setup -q
%build
make all %{?_smp_mflags}
%install
%makeinstall DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/atinout
%doc %{_mandir}/man1/atinout.1.gz
%doc README atinout.1.html gplv3.txt logo/atinout.svg
%changelog
* Sun Sep 8 2013 Håkon Løvdal <[email protected]> - 0.9.1-1
- Add RPM spec file, "rpmbuild -ta atinout-0.9.1.tar.gz" will work.
- Fix Makefile so that it works without problems when compiling source
from tar file (git source was always ok).
- Fixed test checking wrong file when testing if opnening it was ok.
* Wed Apr 24 2013 Håkon Løvdal <[email protected]> - 0.9-1
- Initial release.