fix build with newer flex versions
This commit is contained in:
parent
6937157c1a
commit
cf646c7be8
17
linuxdoc-tools-0.9.68-flex.patch
Normal file
17
linuxdoc-tools-0.9.68-flex.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
--- linuxdoc-tools-0.9.68/rtf-fix/rtf2rtf.l 2008-05-28 18:16:36.000000000 +0200
|
||||||
|
+++ linuxdoc-tools-0.9.68/rtf-fix/rtf2rtf.l-patched 2013-02-19 11:10:25.367016000 +0100
|
||||||
|
@@ -72,7 +72,14 @@
|
||||||
|
int skipnewline = 0;
|
||||||
|
|
||||||
|
extern char *yytext;
|
||||||
|
+
|
||||||
|
+#if YY_FLEX_MAJOR_VERSION > 2 \
|
||||||
|
+ || (YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION > 5) \
|
||||||
|
+ || (YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION == 5 && YY_FLEX_SUBMINOR_VERSION > 35)
|
||||||
|
+extern yy_size_t yyleng;
|
||||||
|
+#else
|
||||||
|
extern int yyleng;
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define CHAPTER 1
|
||||||
|
#define SECTION 2
|
@ -4,12 +4,13 @@
|
|||||||
Summary: A text formatting package based on SGML
|
Summary: A text formatting package based on SGML
|
||||||
Name: linuxdoc-tools
|
Name: linuxdoc-tools
|
||||||
Version: 0.9.68
|
Version: 0.9.68
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: Copyright only
|
License: Copyright only
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
Source: http://http.us.debian.org/debian/pool/main/l/linuxdoc-tools/%{name}_%{version}.tar.gz
|
Source: http://http.us.debian.org/debian/pool/main/l/linuxdoc-tools/%{name}_%{version}.tar.gz
|
||||||
Patch0: linuxdoc-tools-0.9.13-letter.patch
|
Patch0: linuxdoc-tools-0.9.13-letter.patch
|
||||||
Patch1: linuxdoc-tools-0.9.20-lib64.patch
|
Patch1: linuxdoc-tools-0.9.20-lib64.patch
|
||||||
|
Patch2: linuxdoc-tools-0.9.68-flex.patch
|
||||||
Url: http://packages.qa.debian.org/l/linuxdoc-tools.html
|
Url: http://packages.qa.debian.org/l/linuxdoc-tools.html
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: flex flex-static sgml-common jade gawk groff autoconf texinfo
|
BuildRequires: flex flex-static sgml-common jade gawk groff autoconf texinfo
|
||||||
@ -39,6 +40,7 @@ documentation.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1 -b .lib64
|
%patch1 -p1 -b .lib64
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-installed-iso-entities
|
%configure --with-installed-iso-entities
|
||||||
@ -102,6 +104,9 @@ exit 0
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 19 2013 Martin Milata <mmilata@redhat.com> - 0.9.68-3
|
||||||
|
- fix build with newer flex versions
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.68-2
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.68-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user