| 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 |  | 
|---|
| 5 | Summary: A text file browser similar to more, but better | 
|---|
| 6 | Name: less | 
|---|
| 7 | Version: 481 | 
|---|
| 8 | Release: 3%{?dist} | 
|---|
| 9 | License: GPLv3+ or BSD | 
|---|
| 10 | Group: Applications/Text | 
|---|
| 11 | URL: http://www.greenwoodsoftware.com/less/ | 
|---|
| 12 | Vendor:  bww bitwise works GmbH | 
|---|
| 13 | Source:  %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip | 
|---|
| 14 |  | 
|---|
| 15 | BuildRequires: ncurses-devel | 
|---|
| 16 | BuildRequires: autoconf automake libtool | 
|---|
| 17 |  | 
|---|
| 18 |  | 
|---|
| 19 | %description | 
|---|
| 20 | The less utility is a text file browser that resembles more, but has | 
|---|
| 21 | more capabilities.  Less allows you to move backwards in the file as | 
|---|
| 22 | well as forwards.  Since less doesn't have to read the entire input file | 
|---|
| 23 | before it starts, less starts up more quickly than text editors (for | 
|---|
| 24 | example, vi). | 
|---|
| 25 |  | 
|---|
| 26 | You should install less because it is a basic utility for viewing text | 
|---|
| 27 | files, 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 | 
|---|
| 38 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force | 
|---|
| 39 | rm -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 |  | 
|---|
| 43 | autoreconf -fiv | 
|---|
| 44 |  | 
|---|
| 45 |  | 
|---|
| 46 | %build | 
|---|
| 47 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" | 
|---|
| 48 | export LIBS="-lcx" | 
|---|
| 49 | %configure | 
|---|
| 50 |  | 
|---|
| 51 | make %{?_smp_mflags} | 
|---|
| 52 |  | 
|---|
| 53 |  | 
|---|
| 54 | %install | 
|---|
| 55 | rm -rf $RPM_BUILD_ROOT | 
|---|
| 56 | make install DESTDIR=$RPM_BUILD_ROOT | 
|---|
| 57 |  | 
|---|
| 58 |  | 
|---|
| 59 | %clean | 
|---|
| 60 | rm -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 | 
|---|