summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Rękorajski2010-04-01 14:03:57 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commitd966bb75ae3a46bbb737d7d4de2446bc3d745427 (patch)
treefab3e24e453e6a539c6b032a7c8abc8d4c6819bb
parent7342e57f67ec1bec4ea97e1e1818cc347b532d94 (diff)
downloadplt-d966bb75ae3a46bbb737d7d4de2446bc3d745427.zip
plt-d966bb75ae3a46bbb737d7d4de2446bc3d745427.tar.gz
- fix building with libpng 1.4 Changed files: plt-libpng14.patch -> 1.1 plt.spec -> 1.25
-rw-r--r--plt-libpng14.patch11
-rw-r--r--plt.spec20
2 files changed, 17 insertions, 14 deletions
diff --git a/plt-libpng14.patch b/plt-libpng14.patch
new file mode 100644
index 0000000..4738eb4
--- /dev/null
+++ b/plt-libpng14.patch
@@ -0,0 +1,11 @@
+--- plt-4.2.4/src/wxcommon/wxJPEG.cxx~ 2010-01-18 07:06:55.000000000 +0100
++++ plt-4.2.4/src/wxcommon/wxJPEG.cxx 2010-04-01 14:52:35.738185922 +0200
+@@ -726,7 +726,7 @@
+ png_set_strip_16(png_ptr);
+
+ /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+ }
+
+ /* Set the background color to draw transparent and alpha images over.
diff --git a/plt.spec b/plt.spec
index e0dfad2..ecf091e 100644
--- a/plt.spec
+++ b/plt.spec
@@ -1,17 +1,13 @@
-#
-# TODO:
-# - lib64 patch still needed?
-#
Summary: PLT Scheme programming environment
Summary(pl.UTF-8): Środowisko programistyczne PLT Scheme
Name: plt
-Version: 4.2.1
-Release: 0.9
+Version: 4.2.4
+Release: 1
License: LGPL
Group: Development/Languages
Source0: http://download.plt-scheme.org/bundles/%{version}/plt/%{name}-%{version}-src-unix.tgz
-# Source0-md5: d448aa8b579682687a8748100a901274
-#Patch0: %{name}-lib64.patch
+# Source0-md5: 7a21fcb5b565b8c352aa22e1698eb05b
+Patch0: %{name}-libpng14.patch
URL: http://www.drscheme.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -153,9 +149,7 @@ niezbędne do kompilacji i inkowania programów wykorzystujących PLT.
%prep
%setup -q -n %{name}-%{version}
-#if "%{_lib}" == "lib64"
-#patch0 -p1
-#endif
+%patch0 -p1
%build
cd src/mzscheme
@@ -221,7 +215,6 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/%{name}/collects/graphics
%{_libdir}/%{name}/collects/help
%{_libdir}/%{name}/collects/hierlist
-%{_libdir}/%{name}/collects/htdch
%{_libdir}/%{name}/collects/htdp
%{_libdir}/%{name}/collects/html
%{_libdir}/%{name}/collects/icons
@@ -240,7 +233,6 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/%{name}/collects/plot
%{_libdir}/%{name}/collects/preprocessor
%{_libdir}/%{name}/collects/profile
-%{_libdir}/%{name}/collects/profj
%{_libdir}/%{name}/collects/r5rs
%{_libdir}/%{name}/collects/r6rs
%{_libdir}/%{name}/collects/readline
@@ -257,7 +249,6 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/%{name}/collects/srfi
%{_libdir}/%{name}/collects/stepper
%{_libdir}/%{name}/collects/string-constants
-%{_libdir}/%{name}/collects/stxclass
%{_libdir}/%{name}/collects/swindle
%{_libdir}/%{name}/collects/syntax
%{_libdir}/%{name}/collects/syntax-color
@@ -269,6 +260,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/%{name}/collects/trace
%{_libdir}/%{name}/collects/typed
%{_libdir}/%{name}/collects/typed-scheme
+%{_libdir}/%{name}/collects/unstable
%{_libdir}/%{name}/collects/version
%{_libdir}/%{name}/collects/wxme
%{_libdir}/%{name}/collects/xml