2012-12-20 23:14:19 +01:00
|
|
|
#
|
|
|
|
# spec file for package ser2net
|
|
|
|
#
|
2023-09-07 10:04:01 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-12-20 23:14:19 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-04-19 14:56:26 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-12-20 23:14:19 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ser2net
|
2023-11-24 15:15:20 +01:00
|
|
|
Version: 4.6.0
|
2012-12-20 23:14:19 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Serial port to network proxy
|
2018-09-06 16:42:00 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-12-21 21:51:46 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2020-04-19 14:56:26 +02:00
|
|
|
URL: https://github.com/cminyard/ser2net.git
|
2021-12-11 15:20:38 +01:00
|
|
|
Source: https://sourceforge.net/projects/ser2net/files/ser2net/%{name}-%{version}.tar.gz
|
2020-04-19 14:56:26 +02:00
|
|
|
Source2: ser2net.service
|
|
|
|
BuildRequires: pkgconfig
|
2015-03-23 09:08:33 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2020-11-03 09:14:18 +01:00
|
|
|
BuildRequires: pkgconfig(libgensio) >= 2.2.0
|
2020-04-19 14:56:26 +02:00
|
|
|
BuildRequires: pkgconfig(yaml-0.1)
|
2012-12-20 23:14:19 +01:00
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description
|
2020-04-19 14:56:26 +02:00
|
|
|
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,
|
2012-12-20 23:14:19 +01:00
|
|
|
monitoring ports, and controlling ports.
|
|
|
|
|
|
|
|
%prep
|
2020-04-19 14:56:26 +02:00
|
|
|
%setup -q
|
2018-09-12 13:24:32 +02:00
|
|
|
|
2012-12-20 23:14:19 +01:00
|
|
|
%build
|
2014-03-21 06:02:02 +01:00
|
|
|
%configure --disable-static
|
2020-04-19 14:56:26 +02:00
|
|
|
%make_build
|
2012-12-20 23:14:19 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2020-04-27 13:59:11 +02:00
|
|
|
install -D -m 0644 %{name}.yaml %{buildroot}/%{_sysconfdir}/ser2net/%{name}.yaml
|
2020-04-19 14:56:26 +02:00
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}/%{_unitdir}/ser2net.service
|
2012-12-20 23:14:19 +01:00
|
|
|
|
|
|
|
%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
|
2020-04-19 14:56:26 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog AUTHORS README
|
2012-12-20 23:14:19 +01:00
|
|
|
%{_sbindir}/%{name}
|
2020-04-27 13:59:11 +02:00
|
|
|
%dir %{_sysconfdir}/ser2net
|
|
|
|
%config(noreplace) %{_sysconfdir}/ser2net/%{name}.yaml
|
2020-04-19 14:56:26 +02:00
|
|
|
%{_unitdir}/ser2net.service
|
|
|
|
%{_mandir}/man5/ser2net.yaml.5%{?ext_man}
|
|
|
|
%{_mandir}/man8/ser2net.8%{?ext_man}
|
2012-12-20 23:14:19 +01:00
|
|
|
|
|
|
|
%changelog
|