Group :: Sistema/Bibliotecas
RPM: libgdiplus
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: libgdiplus
Version: 1.1.8
Release: alt1
Summary: An Open Source implementation of the GDI+ API.
License: GPL
Group: System/Libraries
Packager: Mono Maintainers Team <mono at packages.altlinux.org>
Url: http://www.mono-project.com/
%define def_with_param() %{expand:%%{!?_with_%{1}: %%{!?_without_%{1}: %%{?2: %%global _with_param_%{1} %{2}} %%global _with_%{1} --with-%{1}}}}
%define subst_with_param() %{expand:%%{?_with_%{1}:%%{_with_%{1}}%%{?_with_param_%{1}:=%%{_with_param_%{1}}}}} %{expand:%%{?_without_%{1}:%%{_without_%{1}}%%{?_without_param_%{1}:=%%{_without_param_%{1}}}}}
%define if_with_param() %if %{expand:%%{?_with_%{1}: %%{?2:%%(if [ "%%{_with_param_%{1}}" == "%{2}" ]; then echo 1; else echo 0; fi)}%%{!?2:1}}%%{!?_with_%{1}:0}}
%def_with_param cairo included
%if_with_param cairo installed
%def_enable glitz
%else
%def_disable glitz
%endif
%def_disable static
Source0: http://www.go-mono.com/sources/%name-%version.tar.gz
%if_with_param cairo installed
Source1: Makefile.dummy
Patch0: libgdiplus-1.1.8-alt.patch
%endif
# Automatically added by buildreq on Thu Sep 23 2004
BuildRequires: XFree86-devel XFree86-libs fontconfig-devel freetype2-devel glib2-devel glibc-devel-static hostinfo libcairo-devel libglitz-devel libjpeg-devel libpixman-devel libpng-devel libtiff-devel libungif-devel pkgconfig zlib-devel
%description
An Open Source implementation of the GDI+ API
%prep
%setup -q
%if_with_param cairo installed
%patch -p1
%endif
%build
%remove_optflags -Wall
%if_with_param cairo installed
%__cp %SOURCE1 libpixman/Makefile
%__cp %SOURCE1 cairo/Makefile
%endif
%configure %{subst_with_param cairo} %{subst_enable glitz} %{subst_enable static}
%make_build
%install
%makeinstall
%files
%_libdir/libgdiplus.so
%_libdir/libgdiplus.so.0
%_libdir/libgdiplus.so.0.0.0
%_libdir/pkgconfig/*
%changelog
…
Todas as alterações você pod ver aqui
Version: 1.1.8
Release: alt1
Summary: An Open Source implementation of the GDI+ API.
License: GPL
Group: System/Libraries
Packager: Mono Maintainers Team <mono at packages.altlinux.org>
Url: http://www.mono-project.com/
%define def_with_param() %{expand:%%{!?_with_%{1}: %%{!?_without_%{1}: %%{?2: %%global _with_param_%{1} %{2}} %%global _with_%{1} --with-%{1}}}}
%define subst_with_param() %{expand:%%{?_with_%{1}:%%{_with_%{1}}%%{?_with_param_%{1}:=%%{_with_param_%{1}}}}} %{expand:%%{?_without_%{1}:%%{_without_%{1}}%%{?_without_param_%{1}:=%%{_without_param_%{1}}}}}
%define if_with_param() %if %{expand:%%{?_with_%{1}: %%{?2:%%(if [ "%%{_with_param_%{1}}" == "%{2}" ]; then echo 1; else echo 0; fi)}%%{!?2:1}}%%{!?_with_%{1}:0}}
%def_with_param cairo included
%if_with_param cairo installed
%def_enable glitz
%else
%def_disable glitz
%endif
%def_disable static
Source0: http://www.go-mono.com/sources/%name-%version.tar.gz
%if_with_param cairo installed
Source1: Makefile.dummy
Patch0: libgdiplus-1.1.8-alt.patch
%endif
# Automatically added by buildreq on Thu Sep 23 2004
BuildRequires: XFree86-devel XFree86-libs fontconfig-devel freetype2-devel glib2-devel glibc-devel-static hostinfo libcairo-devel libglitz-devel libjpeg-devel libpixman-devel libpng-devel libtiff-devel libungif-devel pkgconfig zlib-devel
%description
An Open Source implementation of the GDI+ API
%prep
%setup -q
%if_with_param cairo installed
%patch -p1
%endif
%build
%remove_optflags -Wall
%if_with_param cairo installed
%__cp %SOURCE1 libpixman/Makefile
%__cp %SOURCE1 cairo/Makefile
%endif
%configure %{subst_with_param cairo} %{subst_enable glitz} %{subst_enable static}
%make_build
%install
%makeinstall
%files
%_libdir/libgdiplus.so
%_libdir/libgdiplus.so.0
%_libdir/libgdiplus.so.0.0.0
%_libdir/pkgconfig/*
%changelog
…
Todas as alterações você pod ver aqui