Correct definition of derived class

This commit is contained in:
Marek Kasik 2011-03-15 15:44:20 +01:00
parent 8d8a03a320
commit d0434976e0
2 changed files with 19 additions and 1 deletions

View File

@ -1,11 +1,13 @@
Name: pdf2djvu
Version: 0.7.4
Release: 6%{?dist}
Release: 7%{?dist}
Summary: PDF to DjVu converter
Group: Applications/Publishing
License: GPLv2+
URL: http://pdf2djvu.googlecode.com/
Source0: http://pdf2djvu.googlecode.com/files/%{name}_%{version}.tar.gz
Patch1: throw-specifier.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: djvulibre-devel djvulibre
@ -24,6 +26,8 @@ metadata.
%prep
%setup -q
%patch1 -p1 -b .throw-specifier
%build
%configure
make %{?_smp_mflags}
@ -46,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Mar 15 2011 Marek Kasik <mkasik@redhat.com> - 0.7.4-7
- Correct definition of derived class.
* Sun Mar 13 2011 Marek Kasik <mkasik@redhat.com> - 0.7.4-6
- Rebuild (poppler-0.16.3)

11
throw-specifier.patch Normal file
View File

@ -0,0 +1,11 @@
--- pdf2djvu-0.7.4/system.hh 2010-06-12 22:20:36.000000000 +0200
+++ pdf2djvu-0.7.4/system.hh 2011-03-15 14:58:35.000000000 +0100
@@ -162,6 +162,8 @@ private:
public:
explicit ExistingFile(const std::string &name);
ExistingFile(const Directory& directory, const std::string &name);
+ virtual ~ExistingFile() throw ()
+ { }
};
#if WIN32