X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fpackage%2FAdaCurses.spec;h=bc1c92b91f2af2d8e9f06ffa2ea759ee07a75b52;hp=dc0dc589f923b77d89dc87658abcc7e2a91971b3;hb=746490c7ab9f66c7521c500684e65eca223c551c;hpb=2b635f090ec43c82958cef9369464aee4dd8975f diff --git a/Ada95/package/AdaCurses.spec b/Ada95/package/AdaCurses.spec index dc0dc589..bc1c92b9 100644 --- a/Ada95/package/AdaCurses.spec +++ b/Ada95/package/AdaCurses.spec @@ -2,13 +2,13 @@ Summary: AdaCurses - Ada95 binding for ncurses %define AppProgram AdaCurses %define AppVersion MAJOR.MINOR %define AppRelease YYYYMMDD -# $Id: AdaCurses.spec,v 1.5 2011/03/26 20:41:44 tom Exp $ +# $Id: AdaCurses.spec,v 1.16 2017/12/09 20:41:28 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 @@ -20,10 +20,18 @@ In addition to a library, this package installs sample programs in "bin/AdaCurses" to avoid conflict with other packages. %prep +%define debug_package %{nil} + +# http://fedoraproject.org/wiki/EPEL:Packaging_Autoprovides_and_Requires_Filtering +%filter_from_requires /libAdaCurses.so.1/d +%filter_setup + %setup -q -n %{AppProgram}-%{AppRelease} %build +%define ada_libdir %{_prefix}/lib/ada/adalib + INSTALL_PROGRAM='${INSTALL}' \ ./configure \ --target %{_target_platform} \ @@ -32,6 +40,8 @@ INSTALL_PROGRAM='${INSTALL}' \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --datadir=%{_datadir} \ + --disable-rpath-link \ + --with-shared \ --with-ada-sharedlib make @@ -43,6 +53,7 @@ make install DESTDIR=$RPM_BUILD_ROOT ( cd samples && make install.examples \ + DESTDIR=$RPM_BUILD_ROOT \ BINDIR=$RPM_BUILD_ROOT%{_bindir}/%{AppProgram} ) @@ -54,13 +65,20 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_bindir}/adacurses*-config %{_bindir}/%{AppProgram}/* %{_libdir}/libAdaCurses.* -%{_libdir}/ada/adalib/libAdaCurses.* -%{_libdir}/ada/adalib/terminal_interface* +%{ada_libdir}/libAdaCurses.* +%{ada_libdir}/terminal_interface* %{_mandir}/man1/adacurses*-config.1* +%{_datadir}/%{AppProgram}/* %{_datadir}/ada/adainclude/terminal_interface* %changelog # each patch should add its ChangeLog entries here -* Fri Mar 25 2010 Thomas Dickey +* 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 2011 Thomas Dickey - initial version