X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fpackage%2FAdaCurses.spec;h=a3f6e80132f991666ea741f20dcff7e56e0232f2;hp=c98e104709717ed0650842dde9f8d1f76cd8b53c;hb=3ab4db240283db0682a66a8587f2174508348bc6;hpb=d91d170b303a5e8acb8c3e1327f6d881974fecdc diff --git a/Ada95/package/AdaCurses.spec b/Ada95/package/AdaCurses.spec index c98e1047..a3f6e801 100644 --- a/Ada95/package/AdaCurses.spec +++ b/Ada95/package/AdaCurses.spec @@ -1,14 +1,14 @@ -Summary: AdaCurses - Ada95 binding for ncurses +Summary: Ada95 binding for ncurses %define AppProgram AdaCurses %define AppVersion MAJOR.MINOR %define AppRelease YYYYMMDD -# $Id: AdaCurses.spec,v 1.12 2011/04/01 00:08:32 tom Exp $ +# $Id: AdaCurses.spec,v 1.19 2019/09/08 01:00:18 tom Exp $ Name: %{AppProgram} Version: %{AppVersion} Release: %{AppRelease} License: MIT Group: Applications/Development -URL: ftp://invisible-island.net/%{AppProgram} +URL: ftp://ftp.invisible-island.net/%{AppProgram} Source0: %{AppProgram}-%{AppRelease}.tgz Packager: Thomas Dickey @@ -17,14 +17,21 @@ 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. +"bin/%{AppProgram}" to avoid conflict with other packages. %prep +%define debug_package %{nil} + +# http://fedoraproject.org/wiki/EPEL:Packaging_Autoprovides_and_Requires_Filtering +%filter_from_requires /lib%{AppProgram}.so.1/d +%filter_setup + %setup -q -n %{AppProgram}-%{AppRelease} %build %define ada_libdir %{_prefix}/lib/ada/adalib +%define ada_include %{_prefix}/share/ada/adainclude INSTALL_PROGRAM='${INSTALL}' \ ./configure \ @@ -32,6 +39,8 @@ INSTALL_PROGRAM='${INSTALL}' \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ --libdir=%{_libdir} \ + --with-ada-include=%{ada_include} \ + --with-ada-objects=%{ada_libdir} \ --mandir=%{_mandir} \ --datadir=%{_datadir} \ --disable-rpath-link \ @@ -58,21 +67,23 @@ make install DESTDIR=$RPM_BUILD_ROOT %defattr(-,root,root) %{_bindir}/adacurses*-config %{_bindir}/%{AppProgram}/* -%{_libdir}/libAdaCurses.* -%{ada_libdir}/libAdaCurses.* -%{ada_libdir}/terminal_interface* +%{ada_libdir}/lib%{AppProgram}.* %{_mandir}/man1/adacurses*-config.1* %{_datadir}/%{AppProgram}/* -%{_datadir}/ada/adainclude/terminal_interface* +%{ada_include}/terminal_interface* %changelog # each patch should add its ChangeLog entries here -* Thu Mar 31 2010 Thomas Dickey +* Sat Sep 07 2019 Thomas Dickey +- use AppProgram to replace "AdaCurses" globally +- amend install-paths to work with Fedora30 + +* Thu Mar 31 2011 Thomas Dickey - 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 -* Fri Mar 25 2010 Thomas Dickey +* Fri Mar 25 2011 Thomas Dickey - initial version