forked from pool/elinks
Accepting request 68375 from openSUSE:Factory:Contrib
OBS-URL: https://build.opensuse.org/request/show/68375 OBS-URL: https://build.opensuse.org/package/show/network/elinks?expand=0&rev=1
This commit is contained in:
89
elinks.spec
Normal file
89
elinks.spec
Normal file
@@ -0,0 +1,89 @@
|
||||
#
|
||||
Name: elinks
|
||||
Version: 0.11.995
|
||||
Release: 0
|
||||
%define pkg_version 0.12pre5
|
||||
#
|
||||
License: GPL
|
||||
#
|
||||
Summary: An advanced and well-established feature-rich text mode web browser
|
||||
#
|
||||
Url: http://elinks.or.cz/
|
||||
Group: Productivity/Networking/Web/Browsers
|
||||
Source: http://elinks.or.cz/download/elinks-%{pkg_version}.tar.bz2
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: guile-devel
|
||||
BuildRequires: libbz2-devel
|
||||
BuildRequires: libexpat-devel
|
||||
BuildRequires: libidn-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: ruby-devel
|
||||
BuildRequires: zlib-devel
|
||||
#
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%description
|
||||
ELinks is an advanced and well-established feature-rich text mode web
|
||||
(HTTP/FTP/..) browser. ELinks can render both frames and tables, is highly
|
||||
customizable and can be extended via Lua or Guile scripts. It is very portable
|
||||
and runs on a variety of platforms. Check the about page for a more complete
|
||||
description.
|
||||
|
||||
%prep
|
||||
%setup -n elinks-%{pkg_version}
|
||||
|
||||
%build
|
||||
#./autogen.sh
|
||||
export CFLAGS="%{optflags} -fstack-protector -I/usr/include/js/"
|
||||
export LIBS="-lm" # for spidermonkey
|
||||
%configure \
|
||||
--enable-nntp \
|
||||
--enable-cgi \
|
||||
--enable-gopher \
|
||||
--enable-finger \
|
||||
--enable-exmode \
|
||||
--enable-html-highlight \
|
||||
--enable-88-colors \
|
||||
--enable-256-colors \
|
||||
--enable-leds \
|
||||
--with-idn \
|
||||
--without-lua \
|
||||
--with-perl \
|
||||
--with-ruby \
|
||||
--without-guile \
|
||||
--with-python \
|
||||
--without-see \
|
||||
--with-xterm \
|
||||
--enable-bittorrent
|
||||
make
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -f %{buildroot}%{_datadir}/locale/locale.alias
|
||||
%find_lang %{name}
|
||||
#
|
||||
%define _pkgdocdir %{buildroot}%{_docdir}/%{name}
|
||||
install -Dd -m 0755 %{_pkgdocdir}/scripts
|
||||
cp -r \
|
||||
ABOUT-NLS AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README \
|
||||
features.* SITES THANKS TODO doc/*.txt doc/html \
|
||||
contrib/*.conf contrib/*.vim contrib/*.css contrib/TIPS-AND-TRICKS \
|
||||
%{_pkgdocdir}
|
||||
install -m 0644 contrib/wipe-out-ssl* contrib/conv/* \
|
||||
%{_pkgdocdir}/scripts/
|
||||
for lang in perl python guile ruby lua ; do
|
||||
install -Dd -m 0755 %{_pkgdocdir}/${lang}
|
||||
install -m 0644 contrib/${lang}/* \
|
||||
%{_pkgdocdir}/${lang}/
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot};
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man?/%{name}*
|
||||
%doc %{_docdir}/%{name}
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user