Fix #1493473 (astyle --html does not find documentation).

This commit is contained in:
Jens Lody 2017-09-24 13:06:23 +02:00
parent 1b67b9a5e7
commit 296d108701
2 changed files with 18 additions and 1 deletions

11
astyle-html-help.patch Normal file
View File

@ -0,0 +1,11 @@
--- a/src/astyle_main.cpp 2017-09-24 11:46:50.008331032 +0200
+++ b/src/astyle_main.cpp 2017-09-24 11:47:05.826623047 +0200
@@ -1314,7 +1314,7 @@
void ASConsole::launchDefaultBrowser(const char* filePathIn /*nullptr*/) const
{
struct stat statbuf;
- string htmlDefaultPath = "/usr/share/doc/astyle/html/";
+ string htmlDefaultPath = "/usr/share/doc/astyle/";
string htmlDefaultFile = "astyle.html";
// build file path

View File

@ -1,6 +1,6 @@
Name: astyle
Version: 3.0.1
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Source code formatter for C-like programming languages
%global majorversion 3
@ -17,6 +17,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Make the astyle-lib usable for arduino
Patch0: astyle-arduino.patch
# Fix (hardcoded) path to html-help
Patch1: astyle-html-help.patch
%description
Artistic Style is a source code indenter, source code formatter, and
@ -38,6 +40,7 @@ This package contains the shared library.
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%build
chmod a-x src/*
@ -76,6 +79,9 @@ popd
%{_includedir}/astyle.h
%changelog
* Sun Sep 24 2017 Jens Lody <fedora@jenslody.de> - 3.0.1-4
- Fix #1493473 (astyle --html does not find documentation).
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild