Ignore:
Timestamp:
Jan 14, 2017, 1:05:34 AM (9 years ago)
Author:
Silvan Scherrer
Message:

spec: ncurses: Release version 5.9-1.

File:
1 edited

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
    14
    25Summary: Ncurses support utilities
    36Name: ncurses
    4 Version: 5.7
    5 Release: 4%{?dist}
     7Version: 5.9
     8Release: 1%{?dist}
    69License: MIT
    710Group: System Environment/Base
    811URL: 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)
     12Vendor: bww bitwise works GmbH
     13Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
     14
     15#BuildRequires: gpm-devel
     16BuildRequires: pkgconfig
    1517
    1618Requires: %{name}-libs = %{version}-%{release}
     
    7880which will use ncurses.
    7981
    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
     83Summary: Static libraries for the ncurses library
     84Group: Development/Libraries
     85Requires: %{name}-devel = %{version}-%{release}
     86
     87%description static
     88The ncurses-static package includes static libraries of the ncurses library.
     89
     90%debug_package
    8791
    8892%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}
    8994%setup -q
    90 
    91 %patch1 -p1 -b .os2~
     95%else
     96%setup -n "%{name}-%{version}" -Tc
     97svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     98rm -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
    92101
    93102# this will be in documentation, drop executable bits
     
    111120    --with-chtype=long
    112121
    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" ; \
     122export CC="gcc" ;
     123export CXX="g++" ; \
     124export CXXCPP="g++ -E" ; \
    119125export AR_OPTS="cru" ; \
    120126export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
    121 export LIBS="-lurpo -lmmap -lpthread" ; \
     127export LIBS="-lcx -lpthread" ; \
     128export PKG_CONFIG_LIBDIR=%{_libdir}/pkgconfig
    122129%configure \
    123     --with-shared --without-normal --without-debug \
    124     --without-cxx-binding \
     130    --with-shared --without-debug \
    125131    --without-ada --with-ospeed=unsigned \
    126132    --enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \
     
    129135    --enable-pc-files \
    130136    --with-termlib=tinfo \
    131     --with-chtype=long \
    132     "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     137    --with-chtype=long
    133138
    134139make %{_smp_mflags}
     
    224229
    225230rm -f $RPM_BUILD_ROOT%{_libdir}/terminfo
    226 #rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/{*_g,ncurses++*}.pc
     231rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*_g.pc
     232rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/ncurses++*.pc
     233rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*_dll.pc
    227234
    228235#bzip2 NEWS
     
    235242%defattr(-,root,root)
    236243%doc ANNOUNCE AUTHORS NEWS README TO-DO
    237 %{_bindir}/[cirt]*
     244%{_bindir}/[cirt]*.exe
    238245%{_mandir}/man1/*
    239246%{_mandir}/man5/*
     
    259266%defattr(-,root,root)
    260267#%doc test
    261 #%doc doc/html/hackguide.html
    262 #%doc doc/html/ncurses-intro.html
    263 #%doc c++/README*
     268%doc doc/html/hackguide.html
     269%doc doc/html/ncurses-intro.html
     270%doc c++/README*
    264271#%doc misc/ncurses.supp
    265272%{_bindir}/ncurses*-config
    266 %{_libdir}/*.dll
    267 %{_libdir}/*.a
     273%{_libdir}/*_dll.a
     274%{_libdir}/libcurses*
    268275%{_libdir}/*.lib
    269 #%{_libdir}/pkgconfig/*.pc
     276%{_libdir}/pkgconfig/*.pc
     277%{_libdir}/ncurses++.a
    270278#%dir %{_includedir}/ncurses
    271279#%dir %{_includedir}/ncursesw
     
    275283%{_mandir}/man3/*
    276284
    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
    280292
    281293%clean
     
    283295
    284296%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
    285301* Mon Jan 16 2012 yd
    286302- rebuild with libc 0.6.4 runtime.
Note: See TracChangeset for help on using the changeset viewer.