SPECS/readline/readline.spec
f4d17450
 Summary:	Command-line editing and history capabilities
 Name:		readline
d42baaaf
 Version:	7.0
f5cac196
 Release:	2%{?dist}
f4d17450
 License:	GPLv3+
 URL:		http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
 Group:		Applications/System
 Vendor:		VMware, Inc.
 Distribution: 	Photon
 Source0:	http://ftp.gnu.org/gnu/readline/%{name}-%{version}.tar.gz
d42baaaf
 %define sha1 readline=d9095fa14a812495052357e1d678b3f2ac635463
f4d17450
 BuildRequires:	ncurses-devel
f5cac196
 Requires:	ncurses-libs
f4d17450
 %description
 The Readline package is a set of libraries that offers command-line
 editing and history capabilities.
 %package	devel
 Summary:	Header and development files for readline
 Requires:	%{name} = %{version}
 %description	devel
 It contains the libraries and header files to create applications 
 %prep
 %setup -q
 sed -i '/MV.*old/d' Makefile.in
 sed -i '/{OLDSUFF}/c:' support/shlib-install
 %build
 ./configure \
 	--prefix=%{_prefix} \
 	--disable-silent-rules
 make SHLIB_LIBS=-lncurses
 %install
 make DESTDIR=%{buildroot} install
 install -vdm 755 %{buildroot}%{_lib}
 ln -sfv ../..%{_lib}/$(readlink %{buildroot}%{_libdir}/libreadline.so) %{buildroot}%{_libdir}/libreadline.so
 ln -sfv ../..%{_lib}/$(readlink %{buildroot}%{_libdir}/libhistory.so ) %{buildroot}%{_libdir}/libhistory.so
 install -vdm 755 %{buildroot}%{_defaultdocdir}/%{name}-%{version}
 install -v -m644 doc/*.{ps,pdf,html,dvi} %{buildroot}%{_defaultdocdir}/%{name}-%{version}
 rm -rf %{buildroot}%{_infodir}
d5255775
 
 %check
 make %{?_smp_mflags} check
 
f4d17450
 %post	-p /sbin/ldconfig
 %postun	-p /sbin/ldconfig
 %files
 %defattr(-,root,root)
d42baaaf
 %{_libdir}/libreadline.so.7
 %{_libdir}/libhistory.so.7
 %{_libdir}/libhistory.so.7.0
 %{_libdir}/libreadline.so.7.0
5fd8fc5f
 %files devel
 %{_includedir}/%{name}/keymaps.h
 %{_includedir}/%{name}/history.h
 %{_includedir}/%{name}/rlstdc.h
 %{_includedir}/%{name}/chardefs.h
 %{_includedir}/%{name}/readline.h
 %{_includedir}/%{name}/rlconf.h
 %{_includedir}/%{name}/rltypedefs.h
 %{_includedir}/%{name}/tilde.h
 %{_libdir}/libreadline.a
 %{_libdir}/libhistory.a
 %{_libdir}/libhistory.so
 %{_libdir}/libreadline.so
f4d17450
 %{_datadir}/%{name}/hist_purgecmd.c
d42baaaf
 %{_datadir}/%{name}/rlbasic.c
f4d17450
 %{_datadir}/%{name}/rltest.c
 %{_datadir}/%{name}/rlversion.c
 %{_datadir}/%{name}/rlptytest.c
 %{_datadir}/%{name}/rlevent.c
 %{_datadir}/%{name}/rl-callbacktest.c
 %{_datadir}/%{name}/rlcat.c
 %{_datadir}/%{name}/histexamp.c
 %{_datadir}/%{name}/rl-fgets.c
 %{_datadir}/%{name}/rl.c
 %{_datadir}/%{name}/excallback.c
 %{_datadir}/%{name}/manexamp.c
 %{_datadir}/%{name}/hist_erasedups.c
 %{_datadir}/%{name}/fileman.c
 %{_docdir}/%{name}/INSTALL
 %{_docdir}/%{name}/README
 %{_docdir}/%{name}/CHANGES
 %{_docdir}/%{name}-%{version}/readline.html
 %{_docdir}/%{name}-%{version}/readline.dvi
 %{_docdir}/%{name}-%{version}/history.pdf
 %{_docdir}/%{name}-%{version}/rluserman.html
 %{_docdir}/%{name}-%{version}/rluserman.dvi
 %{_docdir}/%{name}-%{version}/history.dvi
 %{_docdir}/%{name}-%{version}/readline.ps
 %{_docdir}/%{name}-%{version}/history.ps
 %{_docdir}/%{name}-%{version}/rluserman.ps
 %{_docdir}/%{name}-%{version}/readline.pdf
 %{_docdir}/%{name}-%{version}/history_3.ps
 %{_docdir}/%{name}-%{version}/readline_3.ps
 %{_docdir}/%{name}-%{version}/history.html
 %{_docdir}/%{name}-%{version}/rluserman.pdf
 %{_mandir}/man3/history.3.gz
 %{_mandir}/man3/readline.3.gz
 %changelog
f5cac196
 *       Sun Jun 04 2017 Bo Gan <ganb@vmware.com> 7.0-2
 -       Fix dependency
d42baaaf
 *       Fri Jan 13 2017 Dheeraj Shetty <dheerajs@vmware.com> 7.0-1
 -       Updated to version 7.0
5fd8fc5f
 *       Wed Nov 16 2016 Alexey Makhalov <amakhalov@vmware.com> 6.3-6
 -       Move docs and man to the devel package
d5255775
 *       Mon Oct 04 2016 ChangLee <changlee@vmware.com> 6.3-5
 -       Modified %check
c3a3fd12
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 6.3-4
 -	GA - Bump release of all rpms
2c7bcd45
 *	Wed Jun 3 2015 Divya Thaluru <dthaluru@vmware.com> 6.3-3
 -	Adding ncurses to run time require package
 *   	Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 6.3-2
 -   	Update according to UsrMove.
f4d17450
 *	Wed Oct 22 2014 Divya Thaluru <dthaluru@vmware.com> 6.3-1
 -	Initial build.	First version