Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 1 | Summary: shared libraries for terminal handling |
| 2 | Name: ncurses6 |
| 3 | Version: 6.0 |
| 4 | Release: 20150808 |
| 5 | License: X11 |
| 6 | Group: Development/Libraries |
| 7 | Source: ncurses-%{version}-%{release}.tgz |
| 8 | # URL: http://invisible-island.net/ncurses/ |
| 9 | |
| 10 | %define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion |
| 11 | %define CC_STRICT %{CC_NORMAL} -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic |
| 12 | |
| 13 | %global MY_ABI 6 |
| 14 | |
| 15 | # save value before redefining |
| 16 | %global sys_libdir %{_libdir} |
| 17 | |
| 18 | # was redefined... |
| 19 | #global _prefix /usr/local/ncurses#{MY_ABI} |
| 20 | |
| 21 | %global MY_PKG %{sys_libdir}/pkgconfig |
| 22 | %define MYDATA /usr/local/ncurses/share/terminfo |
| 23 | |
| 24 | %description |
| 25 | The ncurses library routines are a terminal-independent method of |
| 26 | updating character screens with reasonable optimization. |
| 27 | |
| 28 | This package is used for testing ABI %{MY_ABI}. |
| 29 | |
| 30 | %prep |
| 31 | |
| 32 | %define debug_package %{nil} |
| 33 | %setup -q -n ncurses-%{version}-%{release} |
| 34 | |
| 35 | %build |
| 36 | CFLAGS="%{CC_NORMAL}" \ |
| 37 | RPATH_LIST=../lib:%{_prefix}/lib \ |
| 38 | %configure \ |
| 39 | --target %{_target_platform} \ |
| 40 | --prefix=%{_prefix} \ |
| 41 | --includedir='${prefix}/include' \ |
| 42 | --with-default-terminfo-dir=%{MYDATA} \ |
| 43 | --with-install-prefix=$RPM_BUILD_ROOT \ |
| 44 | --with-terminfo-dirs=%{MYDATA}:/usr/share/terminfo \ |
| 45 | --disable-echo \ |
| 46 | --disable-getcap \ |
| 47 | --disable-leaks \ |
| 48 | --disable-macros \ |
| 49 | --disable-overwrite \ |
| 50 | --disable-termcap \ |
| 51 | --enable-hard-tabs \ |
| 52 | --enable-pc-files \ |
| 53 | --enable-rpath \ |
| 54 | --enable-warnings \ |
| 55 | --enable-wgetch-events \ |
| 56 | --enable-widec \ |
| 57 | --verbose \ |
| 58 | --program-suffix=%{MY_ABI} \ |
| 59 | --with-abi-version=%{MY_ABI} \ |
| 60 | --with-develop \ |
| 61 | --with-shared \ |
| 62 | --with-termlib \ |
| 63 | --with-ticlib \ |
| 64 | --with-trace \ |
| 65 | --with-cxx-shared \ |
| 66 | --with-extra-suffix=%{MY_ABI} \ |
| 67 | --with-pkg-config-libdir=%{MY_PKG} \ |
| 68 | --with-versioned-syms \ |
| 69 | --with-xterm-kbs=DEL \ |
| 70 | --without-ada \ |
| 71 | --without-debug \ |
| 72 | --without-normal |
| 73 | |
| 74 | make |
| 75 | |
| 76 | %install |
| 77 | rm -rf $RPM_BUILD_ROOT |
| 78 | |
| 79 | make install.libs install.progs |
| 80 | rm -f test/ncurses |
| 81 | ( cd test && make ncurses LOCAL_LIBDIR=%{_libdir} && mv ncurses $RPM_BUILD_ROOT/%{_bindir}/ncurses%{MY_ABI} ) |
| 82 | |
| 83 | %clean |
| 84 | rm -rf $RPM_BUILD_ROOT |
| 85 | |
| 86 | %files |
| 87 | %defattr(-,root,root,-) |
| 88 | %{_bindir}/* |
| 89 | %{_includedir}/* |
| 90 | %{_libdir}/* |
| 91 | %{MY_PKG}/*.pc |
| 92 | |
| 93 | %changelog |
| 94 | |
| 95 | * Sun Apr 26 2015 Thomas E. Dickey |
| 96 | - move package to /usr |
| 97 | |
| 98 | * Sun Apr 12 2015 Thomas E. Dickey |
| 99 | - factor-out MY_ABI |
| 100 | |
| 101 | * Sat Mar 09 2013 Thomas E. Dickey |
| 102 | - add --with-cxx-shared option to demonstrate c++ binding as shared library |
| 103 | |
| 104 | * Sat Oct 27 2012 Thomas E. Dickey |
| 105 | - add ncurses program as "ncurses6" to provide demonstration. |
| 106 | |
| 107 | * Fri Jun 08 2012 Thomas E. Dickey |
| 108 | - initial version. |