File mingw64-readline.spec of Package mingw64-readline
#
# spec file for package mingw64-readline
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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: mingw64-readline
Version: 6.2
Release: 0
Summary: Library for editing typed command lines
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
Url: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
Source0: ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz
Source1: readline.pc
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem >= 29
BuildRequires: mingw64-termcap-devel >= 1.3.1
BuildArch: noarch
%_mingw64_package_header_debug
%description
The Readline library provides a set of functions that allow users to edit command lines. Both Emacs and vi editing modes
are available. The Readline library includes additional functions for maintaining a list of previously-entered command
lines for recalling or editing those lines, and for performing csh-like history expansion on previous commands.
%package -n mingw64-libreadline6
Summary: Library for editing typed command lines
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-libreadline6
The Readline library provides a set of functions that allow users to edit command lines. Both Emacs and vi editing modes
are available. The Readline library includes additional functions for maintaining a list of previously-entered command
lines for recalling or editing those lines, and for performing csh-like history expansion on previous commands.
%package devel
Summary: Library for editing typed command lines (development files)
Group: Development/Libraries
Requires: mingw64-libreadline6 = %{version}
%description devel
The Readline library provides a set of functions that allow users to edit command lines. Both Emacs and vi editing modes
are available. The Readline library includes additional functions for maintaining a list of previously-entered command
lines for recalling or editing those lines, and for performing csh-like history expansion on previous commands.
%_mingw64_debug_package
%prep
%setup -q -n readline-%{version}
pushd examples
rm -f rlfe/configure
iconv -f iso8859-1 -t utf8 -o rl-fgets.c{_,}
touch -r rl-fgets.c{,_}
mv -f rl-fgets.c{_,}
popd
%build
%{_mingw64_configure} --enable-shared --disable-static
make SHLIB_LIBS=-ltermcap %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f %{buildroot}%{_mingw64_infodir}/dir
# install pkgconfig file
mkdir -p %{buildroot}%{_mingw64_libdir}/pkgconfig
install -m 644 %{SOURCE1} %{buildroot}%{_mingw64_libdir}/pkgconfig/readline.pc
%files -n mingw64-libreadline6
%defattr(-,root,root)
%{_mingw64_bindir}/libreadline6.dll
%{_mingw64_bindir}/libhistory6.dll
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libreadline.dll.a
%{_mingw64_libdir}/libhistory.dll.a
%{_mingw64_libdir}/pkgconfig
%{_mingw64_includedir}/readline/
%{_mingw64_infodir}
%{_mingw64_mandir}/man3
%changelog