Browse Source

ncurses-5.9

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5053 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 12 years ago
parent
commit
4a37934b63
1 changed files with 33 additions and 35 deletions
  1. 33 35
      n/ncurses/ncurses-vl.spec

+ 33 - 35
n/ncurses/ncurses-vl.spec

@@ -1,35 +1,30 @@
 Summary: A CRT screen handling and optimization package.
 Summary(ja): CRT スクリーンの操作と最適化を行うパッケージ
 Name: ncurses
-Version: 5.6
+Version: 5.9
 %define includedirw %{_includedir}/ncursesw
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
-Release: 4%{?_dist_release}
+Release: 1%{?_dist_release}
 License: distributable
 Group: System Environment/Libraries
 URL: http://dickey.his.com/ncurses/ncurses.html
-Source0: ftp://dickey.his.com/ncurses/ncurses-%{version}.tar.gz
-Source2: ncurses-linux
-Source3: ncurses-linux-m
-Source4: ncurses-resetall.sh
-Patch1: ncurses-5.6-20080621-patch.sh.bz2
-Patch2: ncurses-5.6-20080628.patch.gz
-Patch3: ncurses-5.6-20080705.patch.gz
-Patch4: ncurses-5.6-20080712.patch.gz
-Patch5: ncurses-5.6-20080713.patch.gz
-Patch6: ncurses-5.6-20080726.patch.gz
-
-Patch10: ncurses-5.5-20061209-config.patch
-Patch11: ncurses-5.6-20070612-libs.patch
-Patch12: ncurses-5.6-20080112-xterm.patch
-Patch13: ncurses-5.6-20080112-urxvt.patch
-Patch14: ncurses-5.6-20080628-kbs.patch
+
+Source0: ftp://invisible-island.net/ncurses/ncurses-%{version}.tar.gz
+
+Patch1: ncurses-5.9-20110409-20110716.patch.bz2
+Patch8: ncurses-config.patch
+Patch9: ncurses-libs.patch
+Patch11: ncurses-urxvt.patch
+Patch12: ncurses-kbs.patch
 
 Requires(post): /sbin/ldconfig
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: pkgconfig
+
 Vendor: Project Vine
 Distribution: Vine Linux
+Packager: daisuke
 
 %description
 The curses library routines are a terminal-independent method of
@@ -124,31 +119,23 @@ C++ bindings to ncurses
 %prep
 %setup -q
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-
-%patch10 -p1
-%patch11 -p1
-%patch12 -p1
-%patch13 -p1
-%patch14 -p1
+
+%patch8 -p1 -b .config
+%patch9 -p1 -b .libs
+%patch11 -p1 -b .urxvt
+%patch12 -p1 -b .kbs
 
 find . -name "*.orig" -exec rm -f {} \;
 
 
 %build
-CFLAGS="%{optflags} -DPURE_TERMINFO -DSVR4_CURSES"
-%define optflags $CFLAGS
-                                                                                
 %define rootdatadir /lib
 %define ncurses_options \\\
     --with-shared --without-ada --with-ospeed=unsigned \\\
     --enable-hard-tabs --enable-xmc-glitch --enable-colorfgbg \\\
     --with-terminfo-dirs=%{_sysconfdir}/terminfo:%{_datadir}/terminfo:%{rootdatadir}/terminfo \\\
     --enable-overwrite \\\
+    --enable-pc-files \\\
     --with-termlib=tinfo \\\
     --with-chtype=long
 
@@ -285,7 +272,8 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/terminfo
 %{_includedir}/ncursesw/*.h
 %{_includedir}/*.h
 %{_mandir}/man3/*
- 
+%{_libdir}/pkgconfig/*.pc
+%exclude %{_libdir}/pkgconfig/ncurses++*.pc
 
 %files c++-devel
 %defattr(-,root,root)
@@ -294,9 +282,8 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/terminfo
 %{_includedir}/ncurses/curses?.h
 %{_includedir}/ncurses/etip.h
 %{_libdir}/libncurses++.a
- 
 %{_libdir}/libncurses++w.a
-
+%{_libdir}/pkgconfig/ncurses++*.pc
 
 %if %{build_compat32}
 %files -n compat32-%{name}
@@ -310,12 +297,15 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/terminfo
 %defattr(-,root,root)
 %{_libdir}/lib*.so
 %{_libdir}/lib*.a
+%{_libdir}/pkgconfig/*.pc
+%exclude %{_libdir}/pkgconfig/ncurses++*.pc
  
 
 %files -n compat32-%{name}-c++-devel
 %defattr(-,root,root)
 %{_libdir}/libncurses++.a
 %{_libdir}/libncurses++w.a
+%{_libdir}/pkgconfig/ncurses++*.pc
 %endif
 
 
@@ -324,6 +314,14 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Sep 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.9-1
+- update to 5.9 + 20110716
+- update all patches
+- add pkgconfig file
+
+* Sun Mar 27 2011 IWAI, Masaharu <iwai@alib.jp> 5.6-5
+- build with new toolchain
+
 * Fri Mar  5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.6-4
 - rebuilt with new toolchain
 - add Requires(post,pre): /sbin/ldconfig