Changeset 924 for spec/trunk/SPECS/ncurses.spec
- Timestamp:
- Jan 14, 2017, 1:05:34 AM (9 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/ncurses.spec (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/ncurses.spec
r283 r924 1 #define svn_url e:/trees/ncurses/trunk 2 %define svn_url http://svn.netlabs.org/repos/ports/ncurses/trunk 3 %define svn_rev 1917 1 4 2 5 Summary: Ncurses support utilities 3 6 Name: ncurses 4 Version: 5. 75 Release: 4%{?dist}7 Version: 5.9 8 Release: 1%{?dist} 6 9 License: MIT 7 10 Group: System Environment/Base 8 11 URL: http://invisible-island.net/ncurses/ncurses.html 9 Source0: ftp://invisible-island.net/ncurses/ncurses-%{version}.tar.gz 10 11 Patch1: ncurses-5.7-os2.diff 12 13 #BuildRequires: gpm-devel pkgconfig 14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 12 Vendor: bww bitwise works GmbH 13 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 14 15 #BuildRequires: gpm-devel 16 BuildRequires: pkgconfig 15 17 16 18 Requires: %{name}-libs = %{version}-%{release} … … 78 80 which will use ncurses. 79 81 80 #%package static 81 #Summary: Static libraries for the ncurses library 82 #Group: Development/Libraries 83 #Requires: %{name}-devel = %{version}-%{release} 84 85 #%description static 86 #The ncurses-static package includes static libraries of the ncurses library. 82 %package static 83 Summary: Static libraries for the ncurses library 84 Group: Development/Libraries 85 Requires: %{name}-devel = %{version}-%{release} 86 87 %description static 88 The ncurses-static package includes static libraries of the ncurses library. 89 90 %debug_package 87 91 88 92 %prep 93 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0} 89 94 %setup -q 90 91 %patch1 -p1 -b .os2~ 95 %else 96 %setup -n "%{name}-%{version}" -Tc 97 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 98 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 99 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 100 %endif 92 101 93 102 # this will be in documentation, drop executable bits … … 111 120 --with-chtype=long 112 121 113 #export PKG_CONFIG_LIBDIR=%{_libdir}/pkgconfig 114 115 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe" 116 export AWK="awk" ; \ 117 export CC="gcc" ; \ 118 export CXX="gcc" ; \ 122 export CC="gcc" ; 123 export CXX="g++" ; \ 124 export CXXCPP="g++ -E" ; \ 119 125 export AR_OPTS="cru" ; \ 120 126 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \ 121 export LIBS="-lurpo -lmmap -lpthread" ; \ 127 export LIBS="-lcx -lpthread" ; \ 128 export PKG_CONFIG_LIBDIR=%{_libdir}/pkgconfig 122 129 %configure \ 123 --with-shared --without-normal --without-debug \ 124 --without-cxx-binding \ 130 --with-shared --without-debug \ 125 131 --without-ada --with-ospeed=unsigned \ 126 132 --enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \ … … 129 135 --enable-pc-files \ 130 136 --with-termlib=tinfo \ 131 --with-chtype=long \ 132 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 137 --with-chtype=long 133 138 134 139 make %{_smp_mflags} … … 224 229 225 230 rm -f $RPM_BUILD_ROOT%{_libdir}/terminfo 226 #rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/{*_g,ncurses++*}.pc 231 rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*_g.pc 232 rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/ncurses++*.pc 233 rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*_dll.pc 227 234 228 235 #bzip2 NEWS … … 235 242 %defattr(-,root,root) 236 243 %doc ANNOUNCE AUTHORS NEWS README TO-DO 237 %{_bindir}/[cirt]* 244 %{_bindir}/[cirt]*.exe 238 245 %{_mandir}/man1/* 239 246 %{_mandir}/man5/* … … 259 266 %defattr(-,root,root) 260 267 #%doc test 261 #%doc doc/html/hackguide.html262 #%doc doc/html/ncurses-intro.html263 #%doc c++/README*268 %doc doc/html/hackguide.html 269 %doc doc/html/ncurses-intro.html 270 %doc c++/README* 264 271 #%doc misc/ncurses.supp 265 272 %{_bindir}/ncurses*-config 266 %{_libdir}/* .dll267 %{_libdir}/ *.a273 %{_libdir}/*_dll.a 274 %{_libdir}/libcurses* 268 275 %{_libdir}/*.lib 269 #%{_libdir}/pkgconfig/*.pc 276 %{_libdir}/pkgconfig/*.pc 277 %{_libdir}/ncurses++.a 270 278 #%dir %{_includedir}/ncurses 271 279 #%dir %{_includedir}/ncursesw … … 275 283 %{_mandir}/man3/* 276 284 277 #%files static 278 #%defattr(-,root,root) 279 #%{_libdir}/lib*.a 285 %files static 286 %defattr(-,root,root) 287 %{_libdir}/ncurses.a 288 %{_libdir}/form.a 289 %{_libdir}/menu.a 290 %{_libdir}/panel.a 291 %{_libdir}/tinfo.a 280 292 281 293 %clean … … 283 295 284 296 %changelog 297 * Sat Jan 14 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 5.9-1 298 - update to version 5.9 299 - add correct keyboard and mouse handling (borrowed from KO Myung-Hun) 300 285 301 * Mon Jan 16 2012 yd 286 302 - rebuild with libc 0.6.4 runtime.
Note:
See TracChangeset
for help on using the changeset viewer.
