Added patch to fix incorrect cpp directive

This commit is contained in:
Denis Leroy 2009-02-10 06:58:31 +00:00
parent fbc4128c28
commit 05840c090a
2 changed files with 16 additions and 0 deletions

11
pstoedit-3.45-elif.patch Normal file
View File

@ -0,0 +1,11 @@
--- pstoedit-3.45/src/dynload.cpp~ 2007-07-22 13:27:36.000000000 +0200
+++ pstoedit-3.45/src/dynload.cpp 2009-02-10 07:54:14.000000000 +0100
@@ -138,7 +138,7 @@
dlclose(handle);
#elif defined(_WIN32)
(void) WINFREELIB((HINSTANCE) handle);
-#elif
+#else
#error "system unsupported so far"
#endif
handle = 0;

View File

@ -11,6 +11,7 @@ Patch0: pstoedit-3.44-cxxflags.patch
Patch1: pstoedit-3.45-quiet.patch
Patch2: pstoedit-3.45-gcc43.patch
Patch3: pstoedit-3.45-asy.patch
Patch4: pstoedit-3.45-elif.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ghostscript
BuildRequires: gd-devel
@ -46,10 +47,12 @@ applications
%patch1 -p1 -b .quiet
%patch2 -p1 -b .gcc43
%patch3 -p1 -b .asy
%patch4 -p1 -b .elif
dos2unix doc/*.htm doc/readme.txt
%build
%configure --disable-static --with-emf --without-swf
# Cannot be built in parallel
make
@ -89,9 +92,11 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*.m4
%changelog
* Sat Feb 7 2009 Denis Leroy <denis@poolshark.org> - 3.45-5
- Added patch for improved asymptote support (#483503)
- Added patch to fix incorrect cpp directive
* Wed Sep 24 2008 Denis Leroy <denis@poolshark.org> - 3.45-4
- Fixed cxxflags patch fuziness issue