setserial/setserial.spec
2019-09-30 11:16:58 -04:00

56 lines
1.3 KiB
RPMSpec

%define _bindir /bin
Name: setserial
Version: 2.17
Release: 48
Summary: A utility for configuring serial ports
License: GPL+
URL: https://setserial.sourceforge.net
Source0: https://sourceforge.net/projects/setserial/files/setserial/%{version}/%{name}-%{version}.tar.gz
# https://sourceforge.net/p/setserial/patches/
Patch0: setserial-2.17-fhs.patch
Patch1: setserial-2.17-rc.patch
# https://src.fedoraproject.org/rpms/setserial/tree/
Patch2: setserial-2.17-readme.patch
Patch3: setserial-2.17-spelling.patch
Patch4: setserial-hayesesp.patch
Patch5: setserial-aarch64.patch
BuildRequires: gcc groff git
%description
setserial is a program designed to set and/or report the
configuration information associated with a serial port.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1 -S git
%build
%set_build_flags
CFLAGS="$CFLAGS $LDFLAGS"
%configure
%make_build
%install
install -d %{buildroot}/%{_bindir}
install -d %{buildroot}/%{_mandir}/man8
%make_install
%files
%defattr(-,root,root)
%doc rc.serial
%{_bindir}/setserial
%files help
%defattr(-,root,root)
%doc README
%{_mandir}/man*/*.gz
%changelog
* Fri Sep 06 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.17-48
- Package init