Updated spec file
This commit is contained in:
parent
9820dc236c
commit
396e286dd3
30
less.spec
30
less.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A text file browser similar to more, but better
|
Summary: A text file browser similar to more, but better
|
||||||
Name: less
|
Name: less
|
||||||
Version: 479
|
Version: 479
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/Text
|
Group: Applications/Text
|
||||||
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
||||||
@ -45,37 +45,33 @@ files, and you'll use it frequently.
|
|||||||
%patch9 -p1 -b .less-filters-man
|
%patch9 -p1 -b .less-filters-man
|
||||||
%patch10 -p1 -b .lesskey-usage
|
%patch10 -p1 -b .lesskey-usage
|
||||||
%patch11 -p1 -b .old-bot
|
%patch11 -p1 -b .old-bot
|
||||||
chmod -R a+w *
|
|
||||||
chmod 644 *.c *.h LICENSE README
|
|
||||||
rm -f ./configure
|
|
||||||
autoreconf -fiv
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
rm -f ./configure
|
||||||
|
autoreconf -fiv
|
||||||
%configure
|
%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
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%make_install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
||||||
install -p -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
|
install -p %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
|
||||||
install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
|
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
|
||||||
install -p -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
|
install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
|
||||||
ls -la $RPM_BUILD_ROOT/etc/profile.d
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%doc README NEWS INSTALL COPYING
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
/etc/profile.d/*
|
/etc/profile.d/*
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 03 2015 Viktor Jancik <vjancik@redhat.com> - 479-2
|
||||||
|
- Updated spec file to comply with current Fedora Packaging Guidelines
|
||||||
|
Added missing documentation files
|
||||||
|
|
||||||
* Tue Jul 07 2015 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 479-1
|
* Tue Jul 07 2015 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 479-1
|
||||||
- Update to 479 (#1240456)
|
- Update to 479 (#1240456)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user