Permalink
Browse files

update spec file

svn path=/trunk/libgdiplus/; revision=154994
  • Loading branch information...
1 parent 2ce9625 commit 67aa98211c9b2a3e72f4a68ef041af9397edf05c Andrew Jorgensen committed Apr 7, 2010
Showing with 14 additions and 47 deletions.
  1. +14 −47 libgdiplus0.spec.in
View
@@ -1,9 +1,11 @@
%define real_name libgdiplus
+# There may be strange bugs when using the system cairo
+%define system_cairo 0
Name: libgdiplus0
Version: @VERSION@
Release: 0
-License: LGPL v2.1 only; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
+License: LGPL v2.1 only ; MPL ; MIT License (or similar)
Url: http://go-mono.org/
Source0: %{real_name}-%{version}.tar.bz2
Summary: Open Source Implementation of the GDI+ API
@@ -13,52 +15,23 @@ Obsoletes: libgdiplus-devel
Provides: libgdiplus-devel
Obsoletes: libgdiplus
Provides: libgdiplus
-#### suse ####
-%if 0%{?suse_version}
-# Common requires for suse distros
-BuildRequires: fontconfig-devel freetype2-devel glib2-devel libexif libjpeg-devel libpng-devel libtiff-devel
-%if %suse_version >= 1030
-BuildRequires: giflib-devel libexif-devel xorg-x11-libSM-devel xorg-x11-libXrender-devel
-%endif
-%if %suse_version == 1020
-BuildRequires: giflib-devel xorg-x11-libSM-devel xorg-x11-libXrender-devel
-%endif
-%if %sles_version == 10
-BuildRequires: giflib-devel xorg-x11-devel
-%endif
-%if %suse_version == 1010
-BuildRequires: giflib-devel xorg-x11-devel
-%endif
-%if %sles_version == 9
-BuildRequires: XFree86-devel libungif pkgconfig
-%endif
-%endif
-#### fedora ####
-%if 0%{?fedora_version}
-# All fedora distros have the same names, requirements
-BuildRequires: fontconfig-devel glib2-devel libXrender-devel libXt-devel libexif-devel libjpeg-devel libpng-devel libtiff-devel libungif-devel
-%endif
-%if 0%{?rhel_version}
-BuildRequires: fontconfig-devel glib2-devel libexif-devel libjpeg-devel libpng-devel libtiff-devel libungif-devel
-%if %{rhel_version} >= 500
-BuildRequires: libXrender-devel libXt-devel
-%endif
+%if %system_cairo
+BuildRequires: cairo-devel >= 1.6.4
%endif
+BuildRequires: fontconfig-devel
+BuildRequires: freetype2-devel
+BuildRequires: giflib-devel
+BuildRequires: glib2-devel
+BuildRequires: libexif-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: xorg-x11-libXrender-devel
%description
This is part of the Mono project. It is required when using
Windows.Forms.
-
-
-Authors:
---------
- Alexandre Pigolkine
- Duncan Mak
- Jordi Mas
- Miguel de Icaza
- Ravindra Kumar
-
%files
%defattr(-, root, root)
%_libdir/libgdiplus.so*
@@ -69,12 +42,6 @@ Authors:
%setup -q -n %{real_name}-%{version}
%build
-# Set PKG_CONFIG_PATH for sles9
-%if 0%{?sles_version}
-%if %sles_version == 9
-export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/%_lib/pkgconfig
-%endif
-%endif
export CFLAGS="$RPM_OPT_FLAGS"
%configure
make

0 comments on commit 67aa982

Please sign in to comment.