John W. Linville 222cbd6
Name:           sjinn
John W. Linville 222cbd6
Version:        1.01
fe326b8
Release:        22%{?dist}
John W. Linville 222cbd6
Summary:        Simple tool for sending & receiving data from RS-232 devices
John W. Linville 222cbd6
John W. Linville 222cbd6
License:        GPLv2+
John W. Linville 222cbd6
URL:            http://sjinn.sourceforge.net/
John W. Linville 222cbd6
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
John W. Linville 222cbd6
John W. Linville 29853f4
BuildRequires: gcc
John W. Linville 29853f4
John W. Linville 222cbd6
# installer should use 0644 permissions for man page
John W. Linville 222cbd6
# https://sourceforge.net/tracker/?func=detail&aid=3294964&group_id=26187&atid=386394
John W. Linville 222cbd6
Patch0:         sjinn-install-args.patch
John W. Linville 222cbd6
John W. Linville 222cbd6
# Add DESTDIR as argument for install
John W. Linville 222cbd6
# https://sourceforge.net/tracker/?func=detail&aid=3294967&group_id=26187&atid=386394
John W. Linville 222cbd6
Patch1:         sjinn-install-DESTDIR.patch
John W. Linville 222cbd6
John W. Linville 222cbd6
# Uncompress man pages
John W. Linville 222cbd6
# https://sourceforge.net/tracker/?func=detail&aid=3294981&group_id=26187&atid=386394
John W. Linville 222cbd6
Patch2:         sjinn-uncompress-man-pages.patch
John W. Linville 222cbd6
John W. Linville 47282b9
# Fix optstring for proper -r handling
John W. Linville 47282b9
# https://sourceforge.net/tracker/?func=detail&aid=3324235&group_id=26187&atid=386394
John W. Linville 47282b9
Patch3:         sjinn-optarg-r-fix.patch
John W. Linville 47282b9
John W. Linville 222cbd6
John W. Linville 222cbd6
%description
John W. Linville 222cbd6
S-Jinn is a free, lightweight, open-source Linux application written in
John W. Linville 222cbd6
C. It is a simple command-line tool designed for sending & receiving
John W. Linville 222cbd6
data from PC controlled TIA/EIA-232 (RS-232) test, measurement,
John W. Linville 222cbd6
and control devices.
John W. Linville 222cbd6
John W. Linville 222cbd6
Depending on your application you may be able to use stty or
John W. Linville 222cbd6
C-Kermit, but I believe you will find that S-Jinn is easier-to-use,
John W. Linville 222cbd6
more intuitive, and more concise in the area of command-line and/or
John W. Linville 222cbd6
scripted RS-232 data acquisition and control.
John W. Linville 222cbd6
John W. Linville 222cbd6
Popular Linux communications packages like Minicom will also
John W. Linville 222cbd6
communicate with RS-232 devices, but they are better suited to modems,
John W. Linville 222cbd6
computers, network devices, etc. They typically lack support for any
John W. Linville 222cbd6
combination of UART communication settings required by many of the
John W. Linville 222cbd6
RS-232 test, measurement, and control devices on the market.
John W. Linville 222cbd6
John W. Linville 222cbd6
Most communications packages also lack command-line support. Some
John W. Linville 222cbd6
provide scripting languages, but S-Jinn frees you from
John W. Linville 222cbd6
application-specific languages. S-Jinn simply directs the data to
John W. Linville 222cbd6
STDOUT where you can display it, pipe it, and/or redirect it to
John W. Linville 222cbd6
be processed by your favorite Unix shell and/or scripting language
John W. Linville 222cbd6
regardless of whether you prefer Bash, Python, Perl, Expect, or you
John W. Linville 222cbd6
name it.
John W. Linville 222cbd6
John W. Linville 222cbd6
Other S-Jinn features include the ability to:
John W. Linville 222cbd6
John W. Linville 222cbd6
    * Control RS-232 DTR and RTS lines from the command-line
John W. Linville 222cbd6
John W. Linville 222cbd6
    * Display DTR, RTS, CTS & DSR status
John W. Linville 222cbd6
John W. Linville 222cbd6
    * Send control characters (including the NULL character)
John W. Linville 222cbd6
John W. Linville 222cbd6
    * Send values in hex
John W. Linville 222cbd6
John W. Linville 222cbd6
    * Specify read length
John W. Linville 222cbd6
John W. Linville 222cbd6
    * Set programmable delay times for both send & read.
John W. Linville 222cbd6
John W. Linville 222cbd6
    * Support for virtually all baud rates, parity, and data lengths
John W. Linville 222cbd6
      found in standard PC UARTS
John W. Linville 222cbd6
John W. Linville 222cbd6
    * Output Formatting: ASCII, hex, ASCII-over-hex, wrap text,
John W. Linville 222cbd6
      truncate lines, suppress trailing line feeds
John W. Linville 222cbd6
John W. Linville 222cbd6
John W. Linville 222cbd6
%prep
John W. Linville 222cbd6
%setup -q -n %{name}
John W. Linville 222cbd6
tar -xzf scripts.tar.gz
John W. Linville 222cbd6
gunzip rs232.1.gz
John W. Linville 222cbd6
John W. Linville 222cbd6
%patch0 -p1
John W. Linville 222cbd6
%patch1 -p1
John W. Linville 222cbd6
%patch2 -p1
John W. Linville 47282b9
%patch3 -p1
John W. Linville 222cbd6
John W. Linville 222cbd6
# Fix some file permissions
John W. Linville 222cbd6
chmod -x INSTALL COPYING README EXAMPLES FAQS ChangeLog Makefile \
John W. Linville 222cbd6
        configure.in *.1 *.[ch] scripts/*
John W. Linville 222cbd6
John W. Linville 222cbd6
# Fix end-of-line encoding
John W. Linville 222cbd6
sed -i 's/\r//' COPYING
John W. Linville 222cbd6
John W. Linville 222cbd6
John W. Linville 222cbd6
%build
John W. Linville 222cbd6
%configure
John W. Linville 222cbd6
make %{?_smp_mflags} CFLAGS="%{optflags}" prefix=%{_prefix}
John W. Linville 222cbd6
John W. Linville 222cbd6
John W. Linville 222cbd6
%install
John W. Linville 222cbd6
rm -rf %{buildroot}
John W. Linville 222cbd6
make INSTALL="install -cDp" DESTDIR=%{buildroot} prefix=%{_prefix} \
John W. Linville 222cbd6
        mandir=%{_mandir}/man1 install
John W. Linville 222cbd6
John W. Linville 222cbd6
John W. Linville 222cbd6
John W. Linville 222cbd6
%files
John W. Linville 222cbd6
%{_bindir}/rs232
John W. Linville 222cbd6
%{_bindir}/%{name}
John W. Linville 222cbd6
%{_mandir}/man1/*
John W. Linville 53531be
%license COPYING
John W. Linville 53531be
%doc README EXAMPLES FAQS ChangeLog scripts
John W. Linville 222cbd6
John W. Linville 222cbd6
John W. Linville 222cbd6
%changelog
fe326b8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-22
fe326b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fe326b8
6a91334
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-21
6a91334
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6a91334
8039d59
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-20
8039d59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8039d59
cf1f602
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-19
cf1f602
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cf1f602
John W. Linville 29853f4
* Fri Jul 21 2018 John W. Linville <linville@redhat.com> - 1.01-18
John W. Linville 29853f4
- Add previously unnecessary BuildRequires for gcc
John W. Linville 29853f4
b852df8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-17
b852df8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b852df8
2b7b065
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.01-16
2b7b065
- Escape macros in %%changelog
2b7b065
8a06a12
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-15
8a06a12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8a06a12
ce4d04c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-14
ce4d04c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ce4d04c
5f6948e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-13
5f6948e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5f6948e
6cdcc9f
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.01-12
6cdcc9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6cdcc9f
76a8c50
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-11
76a8c50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
76a8c50
John W. Linville 53531be
* Wed Feb  4 2015 John W. Linville <linville@redhat.com> - 1.01-10
2b7b065
- Use %%license instead of %%doc for file containing license information
John W. Linville 53531be
3e53df8
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-9
3e53df8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3e53df8
5971cb5
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-8
5971cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5971cb5
68cf482
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-7
68cf482
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
68cf482
967b34d
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-6
967b34d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
967b34d
e8cfe5e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-5
e8cfe5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e8cfe5e
c605c8e
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-4
c605c8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c605c8e
John W. Linville 47282b9
* Tue Jun 21 2011 John W. Linville <linville@redhat.com> - 1.01-3
John W. Linville 47282b9
- Fix optstring for proper -r handling
John W. Linville 47282b9
John W. Linville 222cbd6
* Fri Apr 29 2011 John W. Linville <linville@redhat.com> - 1.01-2
John W. Linville 222cbd6
- Remove executable bit from source files
John W. Linville 222cbd6
- Add comments for patches, including upstream bug references
John W. Linville 222cbd6
- Allow rpmbuild to handle man page compression
John W. Linville 222cbd6
- Use non-macro sed invocation
John W. Linville 222cbd6
- Decompress scripts tarball installed as doc
John W. Linville 222cbd6
- Remove unneeded make arguments during install
John W. Linville 222cbd6
John W. Linville 222cbd6
* Mon Apr 18 2011 John W. Linville <linville@redhat.com> - 1.01-1
John W. Linville 222cbd6
- Initial release for Fedora