Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 1 | Summary: AdaCurses - Ada95 binding documentation for ncurses |
| 2 | %define AppProgram AdaCurses |
| 3 | %define AppVersion MAJOR.MINOR |
| 4 | %define AppRelease YYYYMMDD |
| 5 | %define AppPackage %{AppProgram}-doc |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 6 | # $Id: AdaCurses-doc.spec,v 1.7 2019/11/23 21:15:53 tom Exp $ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 7 | Name: %{AppPackage} |
| 8 | Version: %{AppVersion} |
| 9 | Release: %{AppRelease} |
| 10 | License: MIT |
| 11 | Group: Applications/Development |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 12 | URL: ftp://ftp.invisible-island.net/%{AppProgram} |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 13 | Source0: %{AppProgram}-%{AppRelease}.tgz |
| 14 | Packager: Thomas Dickey <dickey@invisible-island.net> |
| 15 | |
| 16 | %description |
| 17 | This is the Ada95 binding documentation from the ncurses MAJOR.MINOR |
| 18 | distribution, for patch-date YYYYMMDD. |
| 19 | %prep |
| 20 | |
| 21 | %define debug_package %{nil} |
| 22 | |
| 23 | %setup -q -n %{AppProgram}-%{AppRelease} |
| 24 | |
| 25 | %build |
| 26 | |
| 27 | INSTALL_PROGRAM='${INSTALL}' \ |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 28 | %configure \ |
| 29 | --target %{_target_platform} \ |
| 30 | --prefix=%{_prefix} \ |
| 31 | --datadir=%{_datadir} \ |
| 32 | --with-ada-sharedlib |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 33 | |
| 34 | %install |
| 35 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
| 36 | |
| 37 | (cd doc && make install.html DESTDIR=$RPM_BUILD_ROOT ) |
| 38 | |
| 39 | %clean |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 40 | if rm -rf $RPM_BUILD_ROOT; then |
| 41 | echo OK |
| 42 | else |
| 43 | find $RPM_BUILD_ROOT -type f | grep -F -v /.nfs && exit 1 |
| 44 | fi |
| 45 | exit 0 |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 46 | |
| 47 | %files |
| 48 | %defattr(-,root,root) |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 49 | %{_datadir}/doc/%{AppProgram} |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 50 | |
| 51 | %changelog |
| 52 | # each patch should add its ChangeLog entries here |
| 53 | |
micky387 | 9b9f5e7 | 2025-07-08 18:04:53 -0400 | [diff] [blame] | 54 | * Sat Nov 16 2019 Thomas Dickey |
| 55 | - modify clean-rule to work around Fedora NFS bugs. |
| 56 | |
| 57 | * Sat Sep 07 2019 Thomas Dickey |
| 58 | - use AppProgram to replace "AdaCurses" globally |
| 59 | |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 60 | * Sat Mar 26 2011 Thomas Dickey |
| 61 | - initial version |