2012-12-20 23:14:19 +01:00
|
|
|
#
|
|
|
|
# spec file for package ser2net
|
|
|
|
#
|
2014-03-21 06:02:02 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ser2net
|
2014-03-21 06:02:02 +01:00
|
|
|
Version: 2.9.1
|
2012-12-20 23:14:19 +01:00
|
|
|
Release: 0
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Url: http://ser2net.sourceforge.net/
|
2014-03-21 06:02:02 +01:00
|
|
|
Source: http://download.sourceforge.net/ser2net/%{name}-%{version}.tar.gz
|
2012-12-20 23:14:19 +01:00
|
|
|
Source2: ser2net.service
|
|
|
|
Summary: Serial port to network proxy
|
2012-12-20 23:23:03 +01:00
|
|
|
License: GPL-2.0+
|
2012-12-21 21:51:46 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2012-12-20 23:14:19 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2012-12-21 21:51:46 +01:00
|
|
|
Patch0: ser2net-config.patch
|
2012-12-20 23:14:19 +01:00
|
|
|
%{?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
|
2014-03-21 06:02:02 +01:00
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%patch0 -p1
|
2012-12-20 23:14:19 +01:00
|
|
|
%build
|
2014-03-21 06:02:02 +01:00
|
|
|
%configure --disable-static
|
2012-12-20 23:14:19 +01:00
|
|
|
%{__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
|