1 Summary: Ada95 binding for ncurses
2 %define AppProgram AdaCurses
3 %define AppVersion MAJOR.MINOR
4 %define AppRelease YYYYMMDD
5 # $Id: AdaCurses.spec,v 1.24 2019/09/15 00:07:32 tom Exp $
10 Group: Applications/Development
11 URL: ftp://ftp.invisible-island.net/%{AppProgram}
12 Source0: %{AppProgram}-%{AppRelease}.tgz
13 Packager: Thomas Dickey <dickey@invisible-island.net>
16 This is the Ada95 binding from the ncurses MAJOR.MINOR distribution, for
19 In addition to a library, this package installs sample programs in
20 "bin/%{AppProgram}" to avoid conflict with other packages.
23 %define debug_package %{nil}
25 %define need_filter %(if grep -E -i '(mageia|red hat|fedora)' /etc/issue >/dev/null; then echo 1; elif test -f /etc/fedora-release; then echo 1; else echo 0; fi)
27 %if %{need_filter} == 1
28 # http://fedoraproject.org/wiki/EPEL:Packaging_Autoprovides_and_Requires_Filtering
29 %filter_from_requires /lib%{AppProgram}.so.1/d
33 %setup -q -n %{AppProgram}-%{AppRelease}
37 %define ada_libdir %{_prefix}/lib/ada/adalib
38 %define ada_include %{_prefix}/share/ada/adainclude
40 INSTALL_PROGRAM='${INSTALL}' \
42 --target %{_target_platform} \
46 --with-ada-include=%{ada_include} \
47 --with-ada-objects=%{ada_libdir} \
49 --datadir=%{_datadir} \
50 --disable-rpath-link \
57 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
59 make install DESTDIR=$RPM_BUILD_ROOT
62 make install.examples \
63 DESTDIR=$RPM_BUILD_ROOT \
64 BINDIR=$RPM_BUILD_ROOT%{_bindir}/%{AppProgram}
68 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
72 %{_bindir}/adacurses*-config
73 %{_bindir}/%{AppProgram}/*
75 %if %{need_filter} == 1
76 %{_libdir}/lib%{AppProgram}.*
78 %{_mandir}/man1/adacurses*-config.1*
79 %{_datadir}/%{AppProgram}/*
83 # each patch should add its ChangeLog entries here
85 * Sat Sep 14 2019 Thomas Dickey
86 - build-fixes for Fedora29, OpenSUSE
88 * Sat Sep 07 2019 Thomas Dickey
89 - use AppProgram to replace "AdaCurses" globally
90 - amend install-paths to work with Fedora30
92 * Thu Mar 31 2011 Thomas Dickey
93 - use --with-shared option for consistency with --with-ada-sharelib
94 - ensure that MY_DATADIR is set when installing examples
95 - add ada_libdir symbol to handle special case where libdir is /usr/lib64
96 - use --disable-rpath-link to link sample programs without rpath
98 * Fri Mar 25 2011 Thomas Dickey