[packages/libpcd] Rel 6

arekm arekm at pld-linux.org
Sun Mar 15 15:25:34 CET 2026


commit 3ac013b81b6ce6474e310e9dbfbcac8952289d1b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 15 15:25:27 2026 +0100

    Rel 6

 libpcd-pointer-sign.patch | 11 +++++++++++
 libpcd.spec               | 12 +++++++-----
 2 files changed, 18 insertions(+), 5 deletions(-)
---
diff --git a/libpcd.spec b/libpcd.spec
index d33d79d..435a5be 100644
--- a/libpcd.spec
+++ b/libpcd.spec
@@ -2,13 +2,14 @@ Summary:	Library for reading PhotoCD images
 Summary(pl.UTF-8):	Biblioteka do odczytu plików PhotoCD
 Name:		libpcd
 Version:	1.0.1
-Release:	5
+Release:	6
 Epoch:		1
-License:	GPL
+License:	GPL v2+
 Group:		Libraries
 Source0:	http://bytesex.org/misc/%{name}_%{version}.tar.gz
 # Source0-md5:	c9127a6aae3c7510498990d82bb0b68a
 URL:		http://bytesex.org/libpcd.html
+Patch0:		%{name}-pointer-sign.patch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -43,6 +44,7 @@ Statyczna wersja biblioteki libpcd.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
 %{__make} \
@@ -67,13 +69,13 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(755,root,root) %{_libdir}/libpcd.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libpcd.so.2
+%{_libdir}/libpcd.so.*.*.*
+%ghost %{_libdir}/libpcd.so.2
 
 %files devel
 %defattr(644,root,root,755)
 %doc pcd.css pcd.html
-%attr(755,root,root) %{_libdir}/libpcd.so
+%{_libdir}/libpcd.so
 %{_includedir}/pcd.h
 
 %files static
diff --git a/libpcd-pointer-sign.patch b/libpcd-pointer-sign.patch
new file mode 100644
index 0000000..588b96a
--- /dev/null
+++ b/libpcd-pointer-sign.patch
@@ -0,0 +1,11 @@
+--- libpcd-1.0.1/file.c.orig	2011-02-17 12:00:00.000000000 +0100
++++ libpcd-1.0.1/file.c	2011-02-17 12:00:01.000000000 +0100
+@@ -40,7 +40,7 @@
+ 	return -1;
+     }
+     close(fd);
+-    if (0 == strncmp("PCD_OPA", img->mmap, 7)) {
++    if (0 == strncmp("PCD_OPA", (const char *)img->mmap, 7)) {
+ 	/* this is the thumbnails file */
+ 	img->thumbnails = (int) img->mmap[10] << 8 | (int) img->mmap[11];
+     } else {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libpcd.git/commitdiff/3ac013b81b6ce6474e310e9dbfbcac8952289d1b



More information about the pld-cvs-commit mailing list