Blame SPECS/mingw-readline.spec

3fa2e3
%?mingw_package_header
3fa2e3
3fa2e3
Name:           mingw-readline
3fa2e3
Version:        6.2
3fa2e3
Release:        11%{?dist}
3fa2e3
Summary:        MinGW port of readline for editing typed command lines
3fa2e3
3fa2e3
License:        GPLv2+
3fa2e3
Group:          System Environment/Libraries
3fa2e3
URL:            http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
3fa2e3
Source0:        ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz
3fa2e3
3fa2e3
# CVE-2014-2524
3fa2e3
Patch0:         readline-6.2-debug_fncs_security_fix.patch
3fa2e3
3fa2e3
BuildArch:      noarch
3fa2e3
ExclusiveArch: %{ix86} x86_64
3fa2e3
3fa2e3
BuildRequires:  mingw32-filesystem >= 95
3fa2e3
BuildRequires:  mingw32-gcc
3fa2e3
BuildRequires:  mingw32-binutils
3fa2e3
BuildRequires:  mingw32-termcap
3fa2e3
3fa2e3
BuildRequires:  mingw64-filesystem >= 95
3fa2e3
BuildRequires:  mingw64-gcc
3fa2e3
BuildRequires:  mingw64-binutils
3fa2e3
BuildRequires:  mingw64-termcap
3fa2e3
3fa2e3
3fa2e3
%description
3fa2e3
The Readline library provides a set of functions that allow users to
3fa2e3
edit command lines. Both Emacs and vi editing modes are available. The
3fa2e3
Readline library includes additional functions for maintaining a list
3fa2e3
of previously-entered command lines for recalling or editing those
3fa2e3
lines, and for performing csh-like history expansion on previous
3fa2e3
commands.
3fa2e3
3fa2e3
This is a port of the library and development tools to Windows.
3fa2e3
3fa2e3
3fa2e3
# Win32
3fa2e3
%package -n mingw32-readline
3fa2e3
Summary:        MinGW port of readline for editing typed command lines
3fa2e3
3fa2e3
%description -n mingw32-readline
3fa2e3
The Readline library provides a set of functions that allow users to
3fa2e3
edit command lines. Both Emacs and vi editing modes are available. The
3fa2e3
Readline library includes additional functions for maintaining a list
3fa2e3
of previously-entered command lines for recalling or editing those
3fa2e3
lines, and for performing csh-like history expansion on previous
3fa2e3
commands.
3fa2e3
3fa2e3
This is a port of the library and development tools to Windows.
3fa2e3
3fa2e3
%package -n mingw32-readline-static
3fa2e3
Summary:        Static version of the cross compiled readline library
3fa2e3
Requires:       mingw32-readline = %{version}-%{release}
3fa2e3
3fa2e3
%description -n mingw32-readline-static
3fa2e3
Static version of the cross compiled readline library.
3fa2e3
3fa2e3
# Win64
3fa2e3
%package -n mingw64-readline
3fa2e3
Summary:        MinGW port of readline for editing typed command lines
3fa2e3
3fa2e3
%description -n mingw64-readline
3fa2e3
The Readline library provides a set of functions that allow users to
3fa2e3
edit command lines. Both Emacs and vi editing modes are available. The
3fa2e3
Readline library includes additional functions for maintaining a list
3fa2e3
of previously-entered command lines for recalling or editing those
3fa2e3
lines, and for performing csh-like history expansion on previous
3fa2e3
commands.
3fa2e3
3fa2e3
This is a port of the library and development tools to Windows.
3fa2e3
3fa2e3
%package -n mingw64-readline-static
3fa2e3
Summary:        Static version of the cross compiled readline library
3fa2e3
Requires:       mingw64-readline = %{version}-%{release}
3fa2e3
3fa2e3
%description -n mingw64-readline-static
3fa2e3
Static version of the cross compiled readline library.
3fa2e3
3fa2e3
3fa2e3
%?mingw_debug_package
3fa2e3
3fa2e3
3fa2e3
%prep
3fa2e3
%setup -q -n readline-%{version}
3fa2e3
%patch0 -p1
3fa2e3
3fa2e3
3fa2e3
%build
3fa2e3
%mingw_configure --enable-shared
3fa2e3
%mingw_make SHLIB_LIBS=-ltermcap
3fa2e3
3fa2e3
3fa2e3
%install
3fa2e3
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
3fa2e3
3fa2e3
# Don't want the info files or manpages which duplicate the native package.
3fa2e3
rm -rf $RPM_BUILD_ROOT%{mingw32_mandir}
3fa2e3
rm -rf $RPM_BUILD_ROOT%{mingw32_infodir}
3fa2e3
3fa2e3
rm -rf $RPM_BUILD_ROOT%{mingw64_mandir}
3fa2e3
rm -rf $RPM_BUILD_ROOT%{mingw64_infodir}
3fa2e3
3fa2e3
# The examples also duplicate the native package so they can be removed as well
3fa2e3
rm -f $RPM_BUILD_ROOT%{mingw32_datadir}/readline/*.c
3fa2e3
rm -f $RPM_BUILD_ROOT%{mingw64_datadir}/readline/*.c
3fa2e3
3fa2e3
3fa2e3
# Win32
3fa2e3
%files -n mingw32-readline
3fa2e3
%{mingw32_bindir}/libreadline6.dll
3fa2e3
%{mingw32_bindir}/libhistory6.dll
3fa2e3
%{mingw32_libdir}/libreadline.dll.a
3fa2e3
%{mingw32_libdir}/libhistory.dll.a
3fa2e3
%{mingw32_includedir}/readline/
3fa2e3
3fa2e3
%files -n mingw32-readline-static
3fa2e3
%{mingw32_libdir}/libhistory.a
3fa2e3
%{mingw32_libdir}/libreadline.a
3fa2e3
3fa2e3
# Win64
3fa2e3
%files -n mingw64-readline
3fa2e3
%{mingw64_bindir}/libreadline6.dll
3fa2e3
%{mingw64_bindir}/libhistory6.dll
3fa2e3
%{mingw64_libdir}/libreadline.dll.a
3fa2e3
%{mingw64_libdir}/libhistory.dll.a
3fa2e3
%{mingw64_includedir}/readline/
3fa2e3
3fa2e3
%files -n mingw64-readline-static
3fa2e3
%{mingw64_libdir}/libhistory.a
3fa2e3
%{mingw64_libdir}/libreadline.a
3fa2e3
3fa2e3
3fa2e3
%changelog
3fa2e3
* Tue Aug 14 2018 Victor Toso <victortoso@redhat.com> - 6.2-11
3fa2e3
- ExclusiveArch: i686, x86_64
3fa2e3
- Related: rhbz#1615874
3fa2e3
3fa2e3
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-10
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3fa2e3
3fa2e3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-9
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3fa2e3
3fa2e3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-8
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3fa2e3
3fa2e3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-7
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3fa2e3
3fa2e3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2-6
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3fa2e3
3fa2e3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2-5
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3fa2e3
3fa2e3
* Thu May 29 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 6.2-4
3fa2e3
- Fix CVE-2014-2524 (RHBZ #1077035)
3fa2e3
3fa2e3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2-3
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3fa2e3
3fa2e3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2-2
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3fa2e3
3fa2e3
* Thu Nov 22 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 6.2-1
3fa2e3
- Update to 6.2
3fa2e3
- Cleaned up old patches and obsolete hacks
3fa2e3
3fa2e3
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-13
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3fa2e3
3fa2e3
* Sat Mar 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2-12
3fa2e3
- Added win64 support
3fa2e3
- Automatically generate debuginfo subpackage
3fa2e3
- Added -static subpackage
3fa2e3
3fa2e3
* Wed Mar 07 2012 Kalev Lember <kalevlember@gmail.com> - 5.2-11
3fa2e3
- Renamed the source package to mingw-readline (#801022)
3fa2e3
- Modernize the spec file
3fa2e3
- Use mingw macros without leading underscore
3fa2e3
3fa2e3
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.2-10
3fa2e3
- Rebuild against the mingw-w64 toolchain
3fa2e3
3fa2e3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-9
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3fa2e3
3fa2e3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-8
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3fa2e3
3fa2e3
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-7
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3fa2e3
3fa2e3
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-6
3fa2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3fa2e3
3fa2e3
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 5.2-5
3fa2e3
- Rebuild for mingw32-gcc 4.4
3fa2e3
3fa2e3
* Sat Nov 22 2008 Richard W.M. Jones <rjones@redhat.com> - 5.2-4
3fa2e3
- Rename *.dll.a to lib*.dll.a so that libtool can use these libraries.
3fa2e3
3fa2e3
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 5.2-3
3fa2e3
- Fix paths to mandir, infodir.
3fa2e3
3fa2e3
* Fri Oct 31 2008 Richard W.M. Jones <rjones@redhat.com> - 5.2-2
3fa2e3
- Rebuild against latest termcap.
3fa2e3
3fa2e3
* Thu Sep 25 2008 Richard W.M. Jones <rjones@redhat.com> - 5.2-1
3fa2e3
- Initial RPM release.