ckermit/ckermit.spec

93 lines
2.7 KiB
RPMSpec
Raw Normal View History

%define minver %(echo %version | cut -d. -f3-)
Name: ckermit
Version: 9.0.302
Release: 2mamba
Summary: C-Kermit is a combined network and serial communication software package
Group: Applications/Communication
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.kermitproject.org/ck90.html
Source: https://www.kermitproject.org/ftp/kermit/archives/cku%{minver}.tar.gz
Patch0: %{name}-8.0-ckutio.patch
Patch1: %{name}-8.0-makefile.patch
Patch2: ckermit-9.0.304.24-glibc-2.28.patch
Patch3: ckermit-9.0.302-lockdir.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: liblockdev-devel
BuildRequires: libncurses-devel
## AUTOBUILDREQ-END
Requires: lrzsz
%description
C-Kermit is a combined network and serial communication software package.
%debug_package
%prep
%setup -q -c %{name}-%{version}
%patch2 -p1
#%patch3 -p1
%build
%make linux \
KFLAGS="-O0 $RPM_OPT_FLAGS -Wall -DOPENSSL_097 -Dsdata=s_data -DHAVE_OPENPTY -D'krb5_init_ets(__ctx)='" \
LNKFLAGS="%{?optflags} %{?__global_ldflags}" \
K4LIB= \
K4INC= \
K5LIB=-lutil \
K5INC=-I%{_includedir}/et \
SSLLIB= \
SSLINC= \
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
%makeinstall prefix=%{_prefix} MANDIR=%{_mandir}/man1
# fix an rpm bug about symlinks
rm -f %{buildroot}%{_bindir}/kermit-sshsub
ln -s %{_bindir}/kermit %{buildroot}%{_bindir}/kermit-sshsub
# remove configuration and text files from bin and info directories
rm -f %{buildroot}%{_bindir}/*.ini
rm -fr %{buildroot}%{_infodir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/kermit*
%{_mandir}/man1/*
%doc COPYING.TXT
#*.txt *.ini
%changelog
* Tue Aug 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 9.0.302-2mamba
- rebuilt with specfile fixes
* Wed Nov 12 2014 Automatic Build System <autodist@mambasoft.it> 9.0.302-1mamba
- automatic version update by autodist
* Wed Aug 28 2013 Automatic Build System <autodist@mambasoft.it> 8.0.211-3mamba
- automatic rebuild by autodist
* Sun Oct 26 2008 Tiziana Ferro <tiziana.ferro@email.it> 8.0.211-2mamba
- rebuild
* Fri Jan 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 8.0.211-1qilnx
- add lrzsz requirement
- fix version number
* Fri Dec 02 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 8.0-2qilnx
- specfile updated and fixed
- added missing build requirements
- fixed group
* Wed Aug 03 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 8.0-1qilnx
- package created by autospec