SHA256
1
0
forked from pool/ser2net
ser2net/ser2net.spec
OBS User mrdocs e50cbbbbfb Accepting request 226902 from home:elvigia:branches:network:utilities
- version 2.9.1
* drop tcpwrappers support
* Fix a bug in format strings where hex element (\x)
  would have the wrong values for a-f.
* Make RFC2217 signature configurable:
* The baudrate, that will be sent to the client,
    was converted twice.

OBS-URL: https://build.opensuse.org/request/show/226902
OBS-URL: https://build.opensuse.org/package/show/network:utilities/ser2net?expand=0&rev=7
2014-03-21 05:02:02 +00:00

75 lines
2.1 KiB
RPMSpec

#
# spec file for package ser2net
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ser2net
Version: 2.9.1
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://ser2net.sourceforge.net/
Source: http://download.sourceforge.net/ser2net/%{name}-%{version}.tar.gz
Source2: ser2net.service
Summary: Serial port to network proxy
License: GPL-2.0+
Group: Productivity/Networking/Other
BuildRequires: pkgconfig(systemd)
Patch0: ser2net-config.patch
%{?systemd_requires}
%description
ser2net provides a way for a user to connect from a network connection to a
serial port. It provides all the serial port setup, a configuration file to
configure the ports, a control login for modifying port parameters,
monitoring ports, and controlling ports.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%build
%configure --disable-static
%{__make} %{?_smp_mflags}
%install
%make_install
%{__install} -D -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
%{__install} -D -m 0644 %{S:2} %{buildroot}%{_unitdir}/ser2net.service
%clean
rm -rf $RPM_BUILD_ROOT
%pre
%service_add_pre ser2net.service
%post
%service_add_post ser2net.service
%preun
%service_del_preun ser2net.service
%postun
%service_del_postun ser2net.service
%files
%defattr(-,root,root)
%doc COPYING ChangeLog AUTHORS README
%{_unitdir}/ser2net.service
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}*
%changelog