2011-03-27 09:06:46 +08:00
|
|
|
Summary: AdaCurses - Ada95 binding for ncurses
|
|
|
|
%define AppProgram AdaCurses
|
|
|
|
%define AppVersion MAJOR.MINOR
|
|
|
|
%define AppRelease YYYYMMDD
|
2017-12-10 08:31:04 +08:00
|
|
|
# $Id: AdaCurses.spec,v 1.16 2017/12/09 20:41:28 tom Exp $
|
2011-03-27 09:06:46 +08:00
|
|
|
Name: %{AppProgram}
|
|
|
|
Version: %{AppVersion}
|
|
|
|
Release: %{AppRelease}
|
|
|
|
License: MIT
|
|
|
|
Group: Applications/Development
|
2017-12-10 08:31:04 +08:00
|
|
|
URL: ftp://ftp.invisible-island.net/%{AppProgram}
|
2011-03-27 09:06:46 +08:00
|
|
|
Source0: %{AppProgram}-%{AppRelease}.tgz
|
|
|
|
Packager: Thomas Dickey <dickey@invisible-island.net>
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is the Ada95 binding from the ncurses MAJOR.MINOR distribution, for
|
|
|
|
patch-date YYYYMMDD.
|
|
|
|
|
|
|
|
In addition to a library, this package installs sample programs in
|
|
|
|
"bin/AdaCurses" to avoid conflict with other packages.
|
|
|
|
%prep
|
|
|
|
|
ncurses 5.9 - patch 20150502
+ modify the configure script to allow different default values
for ABI 5 versus ABI 6.
+ add wgetch-events to test-packages.
+ add a note on how to build ncurses-examples to test/README.
+ fix a memory leak in delscreen (report by Daniel Kahn Gillmor,
Debian #783486) -TD
+ remove unnecessary ';' from E3 capabilities -TD
+ add tmux entry, derived from screen (patch by Nicholas Marriott).
+ split-out recent change to nsterm-bce as nsterm-build326, and add
nsterm-build342 to reflect changes with successive releases of OSX
(discussion with Leonardo B Schenkel)
+ add xon, ich1, il1 to ibm3161 (patch by Stephen Powell, Debian
#783806)
+ add sample "magic" file, to document ext-putwin.
+ modify gen-pkgconfig.in to add explicit -ltinfo, etc., to the
generated ".pc" file when ld option "--as-needed" is used, or when
ncurses and tinfo are installed without using rpath (prompted by
discussion with Sylvain Bertrand).
+ modify test-package for ncurses6 to omit rpath feature when installed
in /usr.
+ add OSX's "*.dSYM" to clean-rules in makefiles.
+ make extra-suffix work for OSX configuration, e.g., for shared
libraries.
+ modify Ada95/configure script to work with pkg-config
+ move test-package for ncurses6 to /usr, since filename-conflicts have
been eliminated.
+ corrected build rules for Ada95/gen/generate; it does not depend on
the ncurses library aside from headers.
+ reviewed man pages, fixed a few other spelling errors.
+ fix a typo in curs_util.3x (Sven Joachim).
+ use extra-suffix in some overlooked shared library dependencies
found by 20150425 changes for test-packages.
+ update config.guess, config.sub from
http://git.savannah.gnu.org/cgit/config.git
2015-05-03 09:06:46 +08:00
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
# http://fedoraproject.org/wiki/EPEL:Packaging_Autoprovides_and_Requires_Filtering
|
|
|
|
%filter_from_requires /libAdaCurses.so.1/d
|
|
|
|
%filter_setup
|
|
|
|
|
2011-03-27 09:06:46 +08:00
|
|
|
%setup -q -n %{AppProgram}-%{AppRelease}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
2011-04-03 03:23:53 +08:00
|
|
|
%define ada_libdir %{_prefix}/lib/ada/adalib
|
|
|
|
|
2011-03-27 09:06:46 +08:00
|
|
|
INSTALL_PROGRAM='${INSTALL}' \
|
|
|
|
./configure \
|
|
|
|
--target %{_target_platform} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--datadir=%{_datadir} \
|
2011-04-03 03:23:53 +08:00
|
|
|
--disable-rpath-link \
|
|
|
|
--with-shared \
|
2011-03-27 09:06:46 +08:00
|
|
|
--with-ada-sharedlib
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
( cd samples &&
|
|
|
|
make install.examples \
|
2011-04-03 03:23:53 +08:00
|
|
|
DESTDIR=$RPM_BUILD_ROOT \
|
2011-03-27 09:06:46 +08:00
|
|
|
BINDIR=$RPM_BUILD_ROOT%{_bindir}/%{AppProgram}
|
|
|
|
)
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/adacurses*-config
|
|
|
|
%{_bindir}/%{AppProgram}/*
|
|
|
|
%{_libdir}/libAdaCurses.*
|
2011-04-03 03:23:53 +08:00
|
|
|
%{ada_libdir}/libAdaCurses.*
|
|
|
|
%{ada_libdir}/terminal_interface*
|
2011-03-27 09:06:46 +08:00
|
|
|
%{_mandir}/man1/adacurses*-config.1*
|
2011-04-03 03:23:53 +08:00
|
|
|
%{_datadir}/%{AppProgram}/*
|
2011-03-27 09:06:46 +08:00
|
|
|
%{_datadir}/ada/adainclude/terminal_interface*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
# each patch should add its ChangeLog entries here
|
|
|
|
|
2014-06-08 07:21:57 +08:00
|
|
|
* Thu Mar 31 2011 Thomas Dickey
|
2011-04-03 03:23:53 +08:00
|
|
|
- use --with-shared option for consistency with --with-ada-sharelib
|
|
|
|
- ensure that MY_DATADIR is set when installing examples
|
|
|
|
- add ada_libdir symbol to handle special case where libdir is /usr/lib64
|
|
|
|
- use --disable-rpath-link to link sample programs without rpath
|
|
|
|
|
2014-06-08 07:21:57 +08:00
|
|
|
* Fri Mar 25 2011 Thomas Dickey
|
2011-03-27 09:06:46 +08:00
|
|
|
- initial version
|