%undefine _hardened_build Name: portshare Version: 2.0.10u2 Release: 1%{?dist} Summary: Serial Port Interface for remote console servers License: GPLv2+ Group: Applications/Communications URL: https://opengear.zendesk.com/entries/23193358-Setting-up-Portshare-serial-port-redirection-for-Linux Source0: http://ftp.opengear.com/download/portshare/linux/%{name}-%{version}.tar.gz Patch0: portshare-Makefile-debuginfo.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root #BuildRequires: #Requires: %description This package connects a pseudo-tty on a local system to a remote serial port. %prep %setup -q %patch0 %build CFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now" CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now" export CFLAGS export CXXFLAGS %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{5,8} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} install -c -m 644 portshare-devices $RPM_BUILD_ROOT%{_sysconfdir} install -c -m 755 portshare-ser-cli portshare-serial-client $RPM_BUILD_ROOT%{_sbindir} install -c -m 644 man/portshare-ser-cli.8 man/portshare-serial-client.8 $RPM_BUILD_ROOT%{_mandir}/man8 install -c -m 644 man/portshare-devices.5 $RPM_BUILD_ROOT%{_mandir}/man5 %files %defattr(-,root,root) %doc BUGS COPYING CREDITS README %config(noreplace) %{_sysconfdir}/portshare-devices %{_sbindir}/portshare-ser-cli %{_sbindir}/portshare-serial-client %{_mandir}/man8/portshare-ser-cli.8.gz %{_mandir}/man8/portshare-serial-client.8.gz %{_mandir}/man5/portshare-devices.5.gz %changelog * Fri Jun 10 2016 Gary T. Giesen - 2.0.10u2 - Initial build