Blame SPECS/slang.spec

812c01
%if 0%{?fedora:1}
812c01
%bcond_without oniguruma
812c01
%else
812c01
%bcond_with oniguruma
812c01
%endif
812c01
Summary: The shared library for the S-Lang extension language
812c01
Name: slang
812c01
Version: 2.2.4
812c01
Release: 11%{?dist}
812c01
License: GPLv2+
812c01
Group: System Environment/Libraries
812c01
Source: ftp://space.mit.edu/pub/davis/slang/v2.2/%{name}-%{version}.tar.bz2
812c01
# fix file permissions
812c01
Patch1: slang-2.2.4-perms.patch
812c01
# add support for aarch64
812c01
Patch2: slang-2.2.4-aarch64.patch
812c01
URL: http://www.jedsoft.org/slang/
812c01
BuildRequires: libpng-devel pcre-devel zlib-devel
812c01
%{?with_oniguruma:BuildRequires: oniguruma-devel}
812c01
812c01
%description
812c01
S-Lang is an interpreted language and a programming library.  The
812c01
S-Lang language was designed so that it can be easily embedded into
812c01
a program to provide the program with a powerful extension language.
812c01
The S-Lang library, provided in this package, provides the S-Lang
812c01
extension language.  S-Lang's syntax resembles C, which makes it easy
812c01
to recode S-Lang procedures in C if you need to.
812c01
812c01
%package slsh
812c01
Summary: Interpreter for S-Lang scripts
812c01
Group: Development/Languages
812c01
Requires: %{name} = %{version}-%{release}
812c01
812c01
%description slsh
812c01
slsh (slang-shell) is a program for interpreting S-Lang scripts. 
812c01
It supports dynamic loading of S-Lang modules and includes a readline
812c01
interface for interactive use.
812c01
812c01
This package also includes S-Lang modules that are distributed with
812c01
the S-Lang distribution.
812c01
812c01
%package devel
812c01
Summary: Development files for the S-Lang extension language
812c01
Group: Development/Libraries
812c01
Requires: %{name} = %{version}-%{release}
812c01
Requires: pkgconfig
812c01
812c01
%description devel
812c01
This package contains files which you'll need if you want to
812c01
develop S-Lang based applications.  Documentation which may help
812c01
you write S-Lang based applications is also included.
812c01
812c01
Install the slang-devel package if you want to develop applications
812c01
based on the S-Lang extension language.
812c01
812c01
%package static
812c01
Summary: The static library for the S-Lang extension language
812c01
Group: Development/Libraries
812c01
Requires: %{name}-devel = %{version}-%{release}
812c01
812c01
%description static
812c01
This package includes static library for the S-Lang extension
812c01
language.
812c01
812c01
%prep
812c01
%setup -q
812c01
%patch1 -p1 -b .perms
812c01
%patch2 -p1 -b .aarch64
812c01
812c01
head -n -1800 < changes.txt > changes.txt_ && tail -n 1800 < changes.txt | \
812c01
	iconv -f iso8859-1 -t utf8 >> changes.txt_ && \
812c01
	touch -r changes.txt{,_} && mv changes.txt{_,}
812c01
812c01
%build
812c01
%configure \
812c01
	--with-{pcre,png,z}lib=%{_libdir} \
812c01
	--with-{pcre,png,z}inc=%{_includedir} \
812c01
%if %{with oniguruma}
812c01
	--with-oniglib=%{_libdir} \
812c01
	--with-oniginc=%{_includedir} \
812c01
%endif
812c01
;
812c01
812c01
# fails with %{?_smp_mflags}
812c01
make RPATH="" install_doc_dir=%{_docdir}/%{name}-%{version}
812c01
812c01
%install
812c01
make install-all INSTALL="install -p" RPATH="" DESTDIR=$RPM_BUILD_ROOT
812c01
rm -rf $RPM_BUILD_ROOT%{_docdir}/{slang,slsh}
812c01
812c01
mkdir $RPM_BUILD_ROOT%{_includedir}/slang
812c01
for h in slang.h slcurses.h; do
812c01
	ln -s ../$h $RPM_BUILD_ROOT%{_includedir}/slang/$h
812c01
done
812c01
812c01
%check
812c01
make check
812c01
812c01
%post -p /sbin/ldconfig
812c01
812c01
%postun -p /sbin/ldconfig
812c01
812c01
%files
812c01
%doc COPYING NEWS doc/README changes.txt doc/*/slang*.txt doc/*.txt
812c01
%{_libdir}/libslang*.so.*
812c01
812c01
%files slsh
812c01
%doc slsh/doc/html/slsh*.html
812c01
%config(noreplace) %{_sysconfdir}/slsh.rc
812c01
%{_bindir}/slsh
812c01
%{_libdir}/slang
812c01
%{_mandir}/man1/slsh.1*
812c01
%{_datadir}/slsh
812c01
812c01
%files devel
812c01
%doc doc/*/cslang*.txt doc/*/cref.txt
812c01
%{_libdir}/libslang*.so
812c01
%{_libdir}/pkgconfig/slang.pc
812c01
%{_includedir}/sl*.h
812c01
%{_includedir}/slang
812c01
812c01
%files static
812c01
%{_libdir}/libslang*.a
812c01
812c01
%changelog
812c01
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.2.4-11
812c01
- Mass rebuild 2014-01-24
812c01
812c01
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.2.4-10
812c01
- Mass rebuild 2013-12-27
812c01
812c01
* Fri Apr 05 2013 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.4-9
812c01
- add support for aarch64 (#926541)
812c01
812c01
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-8
812c01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
812c01
812c01
* Thu Jan 24 2013 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.4-7
812c01
- fix building without oniguruma
812c01
812c01
* Thu Jan 24 2013 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.4-6
812c01
- buildrequire oniguruma-devel only on Fedora
812c01
- run test suite
812c01
- remove obsolete macros
812c01
812c01
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-5
812c01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
812c01
812c01
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 2.2.4-4
812c01
- Rebuild against PCRE 8.30
812c01
812c01
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-3
812c01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
812c01
812c01
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 2.2.4-2
812c01
- Rebuild for new libpng
812c01
812c01
* Mon Apr 11 2011 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.4-1
812c01
- update to 2.2.4
812c01
812c01
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.3-2
812c01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
812c01
812c01
* Mon Dec 13 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.3-1
812c01
- update to 2.2.3
812c01
812c01
* Mon Nov 08 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.2-3
812c01
- fix libdir in pkgconfig file (#650373)
812c01
812c01
* Wed Jul 21 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.2-2
812c01
- move headers to /usr/include (#609977)
812c01
812c01
* Mon Dec 07 2009 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.2-1
812c01
- update to 2.2.2
812c01
812c01
* Mon Sep 07 2009 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.1-1
812c01
- update to 2.2.1
812c01
812c01
* Mon Aug 03 2009 Miroslav Lichvar <mlichvar@redhat.com> - 2.2.0-1
812c01
- update to 2.2.0
812c01
812c01
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.4-4
812c01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
812c01
812c01
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.4-3
812c01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
812c01
812c01
* Fri Dec 12 2008 Miroslav Lichvar <mlichvar@redhat.com> - 2.1.4-2
812c01
- convert changes.txt to UTF-8, comment patches (#226420)
812c01
812c01
* Mon Sep 08 2008 Miroslav Lichvar <mlichvar@redhat.com> - 2.1.4-1
812c01
- update to 2.1.4
812c01
812c01
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.1.3-3
812c01
- Autorebuild for GCC 4.3
812c01
812c01
* Thu Jan 24 2008 Miroslav Lichvar <mlichvar@redhat.com> - 2.1.3-2
812c01
- drop lang patch
812c01
- build oniguruma module (#226420)
812c01
812c01
* Mon Nov 05 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.1.3-1
812c01
- update to 2.1.3
812c01
812c01
* Tue Sep 25 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.1.2-2
812c01
- fix integer underflow in compute_hash (#302181)
812c01
- fix SLang_set_error when called from signal handler (#297661)
812c01
812c01
* Mon Sep 17 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.1.2-1
812c01
- update to 2.1.2
812c01
812c01
* Thu Aug 23 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.1.1-2
812c01
- update license tag
812c01
- buildrequire gawk
812c01
812c01
* Mon Jul 09 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.1.1-1
812c01
- update to 2.1.1
812c01
812c01
* Fri Jun 15 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.1.0-1
812c01
- update to 2.1.0
812c01
- create -slsh subpackage for slsh and modules
812c01
812c01
* Mon Feb 19 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.7-2
812c01
- ignore background color of trailing spaces if terminal has bce (#217276)
812c01
- move static library to -static subpackage
812c01
- spec cleanup
812c01
812c01
* Mon Nov 06 2006 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.7-1
812c01
- update to 2.0.7
812c01
812c01
* Wed Jul 12 2006 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.6-3
812c01
- don't build unpackaged stuff
812c01
- package just txt files from doc directory
812c01
812c01
* Tue May 23 2006 Peter Jones <pjones@redhat.com> - 2.0.6-2
812c01
- put static lib back; it is required by anaconda
812c01
812c01
* Mon May 22 2006 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.6-1
812c01
- update to slang-2.0.6
812c01
- move .so.2 link to main package
812c01
- don't package static library and utf8 link
812c01
- remove requires for libtool and libtermcap
812c01
- rearrange doc files (#191583)
812c01
812c01
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0.5-5.2.1
812c01
- bump again for double-long bug on ppc(64)
812c01
812c01
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.0.5-5.2
812c01
- rebuilt for new gcc4.1 snapshot and glibc changes
812c01
812c01
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
812c01
- rebuilt
812c01
812c01
* Fri Dec 2 2005 Petr Raszyk <praszyk@redhat.com> - 2.0.5-5
812c01
- A patch by Bill Nottingham <notting@redhat.com>
812c01
  (#174761). slang-LANG.patch
812c01
  slang reads automatically sh-env-variable LANG.
812c01
812c01
* Mon Nov 21 2005 Petr Raszyk <praszyk@redhat.com> - 2.0.5-3
812c01
- Rebuild.
812c01
812c01
* Mon Nov 21 2005 Petr Raszyk <praszyk@redhat.com> - 2.0.5-1
812c01
- Upgrade to slang 20005.
812c01
- (#161536). slang-nointerlibc2.patch
812c01
- slang-makefile.patch
812c01
812c01
* Mon Oct 24 2005 Petr Raszyk <praszyk@redhat.com> - 1.4.9-23
812c01
- rebuild
812c01
812c01
* Mon Oct 24 2005 Petr Raszyk <praszyk@redhat.com> - 1.4.9-22
812c01
- libslang-utf8.so should not use the symbol __libc_enable_secure 
812c01
- (#161536). slang-nointerlibc.patch
812c01
- Additional some comments/hints for C-Frame 121
812c01
812c01
* Sun Oct 16 2005 Florian La Roche <laroche@redhat.com>
812c01
- set _filter_GLIBC_PRIVATE
812c01
812c01
* Sun Oct 16 2005 Florian La Roche <laroche@redhat.com>
812c01
- add exec perms to shared libs
812c01
812c01
* Mon Sep  5 2005 Petr Raszyk <praszyk@redhat.com> - 1.4.9-19
812c01
- One line in the patch 'slang-utf8-acs.ptach' commented out (#138445). 
812c01
812c01
* Thu Aug 18 2005 Petr Raszyk <praszyk@redhat.com> - 1.4.9-18
812c01
- Patch to resolve the problem with displaying the 'x' character
812c01
  in the latin2 mode (#139127) 
812c01
812c01
* Fri Mar 18 2005 Petr Rockai <prockai@redhat.com> - 1.4.9-17
812c01
- Patch to compile with gcc4 by Robert Scheck (#151029). (Weeird,
812c01
  probably on march 2nd the used buildroot wasn't updated with
812c01
  gcc4 yet?).
812c01
812c01
* Wed Mar 02 2005 Petr Rockai <prockai@redhat.com>
812c01
- rebuild
812c01
812c01
* Mon Feb 14 2005 Adrian Havill <havill@redhat.com>
812c01
- rebuilt
812c01
812c01
* Sun Aug 1 2004 Alan Cox <alan@redhat.com>
812c01
- fixed requires so slang-devel pulls in libtermcap-devel (#125299)
812c01
812c01
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
812c01
- rebuilt
812c01
812c01
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
812c01
- rebuilt
812c01
812c01
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
812c01
- rebuilt
812c01
812c01
* Fri Dec  5 2003 Jeremy Katz <katzj@redhat.com> 1.4.9-2
812c01
- rebuild to fix libslang-utf8.so.1 symlink
812c01
812c01
* Tue Oct 28 2003 Adrian Havill <havill@redhat.com> 1.4.9-1
812c01
- big upgrade to 1.4.9
812c01
- manually redid partially rotted utf patch for sldisply.c
812c01
- no longer necessary to chmod the so files
812c01
- change copyright header to license
812c01
812c01
* Fri Jun 13 2003 Bill Nottingham <notting@redhat.com> 1.4.5-18
812c01
- fix segfault in slcurses (#97216)
812c01
812c01
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
812c01
- rebuilt
812c01
812c01
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
812c01
- rebuilt
812c01
812c01
* Fri Feb 21 2003 Jakub Jelinek <jakub@redhat.com> 1.4.5-15
812c01
- for ACS characters, take them as is, not through wcrtomb
812c01
  and assume wcwidth returns 1 for them
812c01
812c01
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
812c01
- rebuilt
812c01
812c01
* Sat Jan  4 2003 Jeff Johnson <jbj@redhat.com> 1.4.5-13
812c01
- set execute bits on library so that requires are genereted.
812c01
812c01
* Wed Nov 27 2002 Tim Powers <timp@redhat.com> 1.4.5-12
812c01
- remove unpackaged files from the buildroot
812c01
- lib64'ize
812c01
812c01
* Wed Jul 24 2002 Bill Nottingham <notting@redhat.com> 1.4.5-11
812c01
- fix write-before-beginning-of-string in SLsmg_write_nwchars
812c01
812c01
* Tue Jul  9 2002 Bill Nottingham <notting@redhat.com> 1.4.5-10
812c01
- fix segfault in odd environments
812c01
812c01
* Mon Jul  8 2002 Bill Nottingham <notting@redhat.com> 1.4.5-9
812c01
- tweak UTF-8 linedrawing patch slightly; add README describing some of
812c01
  the changes
812c01
- fix a utee/dtee typo
812c01
812c01
* Wed Jun 26 2002 Bill Nottingham <notting@redhat.com> 1.4.5-7
812c01
- add patch to support ACS linedrawing characters in UTF-8
812c01
812c01
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
812c01
- automated rebuild
812c01
812c01
* Wed Jun 12 2002 Bill Nottingham <notting@redhat.com> 1.4.5-5
812c01
- removed keymap patch (#59171)
812c01
- added Debian utf8 patch
812c01
812c01
* Thu May 23 2002 Tim Powers <timp@redhat.com>
812c01
- automated rebuild
812c01
812c01
* Tue Mar  5 2002 Bill Nottingham <notting@redhat.com>
812c01
- fix symlink & ia64 fubarness
812c01
812c01
* Mon Mar  4 2002 Bill Nottingham <notting@redhat.com>
812c01
- update to 1.4.5
812c01
812c01
* Tue Jun 26 2001 Florian La Roche <Florian.LaRoche@redhat.de>
812c01
- add link from library major version number
812c01
812c01
* Mon Jun 25 2001 Bill Nottingham <notting@redhat.com>
812c01
- added patch to fix Alt/Meta key handling (originally from mutt,
812c01
  <jorton@btconnect.com>)
812c01
812c01
* Fri Jun  1 2001 Oliver Paukstadt <oliver.paukstadt@millenux.com>
812c01
- forced to use RPM_OPT_FLAGS for ELF_CFLAGS too
812c01
812c01
* Mon Mar 12 2001 Bill Nottingham <notting@redhat.com>
812c01
- update to 1.4.4
812c01
812c01
* Tue Feb 27 2001 Bill Nottingham <notting@redhat.com>
812c01
- have slang-devel require slang = %%{version}
812c01
812c01
* Tue Aug 29 2000 Bill Nottingham <notting@redhat.com>
812c01
- update to 1.4.2
812c01
812c01
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
812c01
- automatic rebuild
812c01
812c01
* Sat Jun 17 2000 Matt Wilson <msw@redhat.com>
812c01
- added defattr
812c01
812c01
* Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
812c01
- rebuild, FHS stuff
812c01
812c01
* Fri Apr 28 2000 Bill Nottingham <notting@redhat.com>
812c01
- autoconf fix for ia64
812c01
812c01
* Mon Apr 24 2000 Bill Nottingham <notting@redhat.com>
812c01
- update to 1.4.1
812c01
812c01
* Wed Mar 29 2000 Bill Nottingham <notting@redhat.com>
812c01
- fix background color problem with newt
812c01
812c01
* Thu Mar  2 2000 Bill Nottingham <notting@redhat.com>
812c01
- resurrect for the devel tree
812c01
812c01
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
812c01
- auto rebuild in the new build environment (release 4)
812c01
812c01
* Wed Oct 21 1998 Bill Nottingham <notting@redhat.com>
812c01
- libslang.so goes in -devel
812c01
812c01
* Sun Jun 07 1998 Prospector System <bugs@redhat.com>
812c01
812c01
- translations modified for de
812c01
812c01
* Sat Jun  6 1998 Jeff Johnson <jbj@redhat.com>
812c01
- updated to 1.2.2 with buildroot.
812c01
812c01
* Tue May 05 1998 Prospector System <bugs@redhat.com>
812c01
- translations modified for de, fr, tr
812c01
812c01
* Sat Apr 18 1998 Erik Troan <ewt@redhat.com>
812c01
- rebuilt to find terminfo in /usr/share
812c01
812c01
* Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
812c01
- spec file cleanups
812c01
812c01
* Mon Sep 1 1997 Donnie Barnes <djb@redhat.com>
812c01
- upgraded to 0.99.38 (will it EVER go 1.0???)
812c01
- all patches removed (all appear to be in this version)
812c01
812c01
* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
812c01
- built against glibc
812c01