Compare commits

...

6 Commits
master ... f21

Author SHA1 Message Date
Viktor Jancik
e4fc7bdaff Updated spec file 2015-08-03 15:59:51 +02:00
Jozef Mlich
6eb22c9094 Merge branch 'master' into f21 2015-06-01 09:17:19 +02:00
Jozef Mlich
a2f6dbeae1 Merge branch 'master' into f21 2015-06-01 08:15:33 +02:00
Jozef Mlich
1cfd92fa67 Merge branch 'master' into f21 2015-01-05 09:38:00 +01:00
Peter Robinson
ac423bab0c - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 01:49:38 +00:00
Tom Callaway
95ba5da931 fix license handling 2014-07-12 18:52:30 -04:00

View File

@ -1,7 +1,7 @@
Summary: A text file browser similar to more, but better
Name: less
Version: 471
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv3+
Group: Applications/Text
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
@ -47,36 +47,32 @@ files, and you'll use it frequently.
%patch10 -p1 -b .lesskey-usage
%patch11 -p1 -b .old-bot
%patch12 -p2 -b .out_of_bounds_read.patch
autoreconf
chmod -R a+w *
chmod 644 *.c *.h LICENSE README
%build
rm -f ./configure
autoreconf -fiv
%configure
make CC="gcc $RPM_OPT_FLAGS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" datadir=%{_docdir}
make %{?_smp_mflags} CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%make_install
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
install -p -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
install -p -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
ls -la $RPM_BUILD_ROOT/etc/profile.d
install -p %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%doc README NEWS INSTALL COPYING
%license LICENSE
/etc/profile.d/*
%{_bindir}/*
%{_mandir}/man1/*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Aug 03 2015 Viktor Jancik <vjancik@redhat.com> - 471-5
- Updated spec file to comply with current Fedora Packaging Guidelines
Added missing documentation files
* Mon Jun 01 2015 Jozef Mlich <jmlich@redhat.com> - 471-4
- update of previous patch