Spec file cleanup

This commit is contained in:
Robert Scheck 2020-12-26 04:20:18 +01:00
parent 2212d1088c
commit 4bcd0072db

View File

@ -117,13 +117,12 @@ CFLAGS="$CFLAGS -DLUA_COMPAT_5_3"
--without-spidermonkey \ --without-spidermonkey \
--without-x --without-x
make %{?_smp_mflags} V=1 %make_build
%install %install
make install DESTDIR=$RPM_BUILD_ROOT V=1 %make_install
rm -f $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias rm -f $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} install -D -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/elinks.conf
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/elinks.conf
touch $RPM_BUILD_ROOT%{_bindir}/links touch $RPM_BUILD_ROOT%{_bindir}/links
true | gzip -c > $RPM_BUILD_ROOT%{_mandir}/man1/links.1.gz true | gzip -c > $RPM_BUILD_ROOT%{_mandir}/man1/links.1.gz
%find_lang elinks %find_lang elinks
@ -154,7 +153,8 @@ fi
exit 0 exit 0
%files -f elinks.lang %files -f elinks.lang
%doc COPYING README %license COPYING
%doc README
%ghost %verify(not md5 size mtime) %{_bindir}/links %ghost %verify(not md5 size mtime) %{_bindir}/links
%{_bindir}/elinks %{_bindir}/elinks
%ghost %verify(not md5 size mtime) %{_mandir}/man1/links.1.gz %ghost %verify(not md5 size mtime) %{_mandir}/man1/links.1.gz