source: spec/trunk/SPECS/less.spec@ 1010

Last change on this file since 1010 was 868, checked in by Silvan Scherrer, 9 years ago

spec: less: fix several issues

File size: 2.0 KB
Line 
1#define svn_url e:/trees/less/trunk
2%define svn_url http://svn.netlabs.org/repos/ports/less/trunk
3%define svn_rev 1763
4
5Summary: A text file browser similar to more, but better
6Name: less
7Version: 481
8Release: 3%{?dist}
9License: GPLv3+ or BSD
10Group: Applications/Text
11URL: http://www.greenwoodsoftware.com/less/
12Vendor: bww bitwise works GmbH
13Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
14
15BuildRequires: ncurses-devel
16BuildRequires: autoconf automake libtool
17
18
19%description
20The less utility is a text file browser that resembles more, but has
21more capabilities. Less allows you to move backwards in the file as
22well as forwards. Since less doesn't have to read the entire input file
23before it starts, less starts up more quickly than text editors (for
24example, vi).
25
26You should install less because it is a basic utility for viewing text
27files, and you'll use it frequently.
28
29
30%debug_package
31
32
33%prep
34%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}
35%setup -q
36%else
37%setup -n "%{name}-%{version}" -Tc
38svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
39rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
40(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
41%endif
42
43autoreconf -fiv
44
45
46%build
47export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
48export LIBS="-lcx"
49%configure
50
51make %{?_smp_mflags}
52
53
54%install
55rm -rf $RPM_BUILD_ROOT
56make install DESTDIR=$RPM_BUILD_ROOT
57
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%doc README NEWS INSTALL
64%license LICENSE COPYING
65%{_bindir}/*.exe
66%{_mandir}/man1/*
67
68
69%changelog
70* Fri Oct 21 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 481-3
71- fix to the below bring more keys to work
72- enable ctrl-c by default
73- workaround ticket 124
74
75* Wed Oct 19 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 481-2
76- bring more keys to work
77- fix a charset issue
78
79* Thu Oct 13 2016 Herwig Bauernfeind <herwig.bauernfeind@bitwiseworks.com> - 481-1
80- initial build
Note: See TracBrowser for help on using the repository browser.