$ git show --format=fuller --patch-with-stat --summary c8378180f2133e74af4307d0c2bc9bc52e259dc6
commit c8378180f2133e74af4307d0c2bc9bc52e259dc6
Author: Bernhard Rosenkränzer <bero@lindev.ch>
AuthorDate: Tue Sep 27 16:24:58 2022 +0200
Commit: Bernhard Rosenkränzer <bero@lindev.ch>
CommitDate: Tue Sep 27 16:24:58 2022 +0200
1.0.3
---
.abf.yml | 2 +-
check-update.sh | 2 ++
libpcd.spec | 67 ++++++---------------------------------------------------
3 files changed, 10 insertions(+), 61 deletions(-)
create mode 100755 check-update.sh
diff --git a/.abf.yml b/.abf.yml
index 76c1435..bb18b11 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
sources:
- "libpcd_1.0.1.tar.bz2": 543f555e78d0817ed7dc879f2e802d2d3ecaa2c0
+ libpcd-1.0.3-1.tar.gz: 7a155a21e265d6c6e609337021ce03ac23af4adc
diff --git a/check-update.sh b/check-update.sh
new file mode 100755
index 0000000..cb619b1
--- /dev/null
+++ b/check-update.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+curl https://git.kraxel.org/cgit/libpcd/ 2>/dev/null |grep h=libpcd- |head -n1 |sed -e "s,.*h=libpcd-,,;s,-.*,,;s,'.*,,"
diff --git a/libpcd.spec b/libpcd.spec
index 96aea08..4dc9d6f 100644
--- a/libpcd.spec
+++ b/libpcd.spec
@@ -1,18 +1,14 @@
-%define version 1.0.1
-%define release 8
-
%define major 2
-%define libname %mklibname pcd %{major}
+%define libname %mklibname pcd
Summary: Library for decoding PhotoCD images
Name: libpcd
-Version: %{version}
-Release: %{release}
+Version: 1.0.3
+Release: 1
License: GPL
Group: Graphics
URL: http://linux.bytesex.org/fbida/libpcd.html
-Source: http://dl.bytesex.org/releases/%{name}/%{name}_%{version}.tar.bz2
-Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+Source: https://git.kraxel.org/cgit/libpcd/snapshot/libpcd-%{version}-1.tar.gz
%description
%{name} is a tiny library for decoding PhotoCD images. It used to come
@@ -45,25 +41,14 @@ This package contains all files you need to compile applications/libraries
that has Photo CD image support.
%prep
-%setup -q
+%autosetup -p1 -n %{name}-%{version}-1
%build
export CFLAGS="%optflags"
-%make
+%make_build prefix=%{_prefix} libdir=%{_libdir}
%install
-rm -rf %{buildroot}
-%makeinstall
-
-%if %mdkversion < 200900
-%post -n %{libname} -p /sbin/ldconfig
-%endif
-%if %mdkversion < 200900
-%postun -n %{libname} -p /sbin/ldconfig
-%endif
-
-%clean
-rm -rf %{buildroot}
+%make_install prefix=%{_prefix} libdir=%{buildroot}%{_libdir}
%files -n %{libname}
%defattr(-,root,root)
@@ -76,41 +61,3 @@ rm -rf %{buildroot}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/lib*.a
-
-
-
-%changelog
-* Fri Dec 10 2010 Oden Eriksson <oeriksson@mandriva.com> 1.0.1-7mdv2011.0
-+ Revision: 620214
-- the mass rebuild of 2010.0 packages
-
-* Fri Sep 04 2009 Thierry Vignaud <tv@mandriva.org> 1.0.1-6mdv2010.0
-+ Revision: 429826
-- rebuild
-
-* Sun Jul 27 2008 Thierry Vignaud <tv@mandriva.org> 1.0.1-5mdv2009.0
-+ Revision: 250404
-- rebuild
-
- + Pixel <pixel@mandriva.com>
- - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
-
- + Olivier Blin <oblin@mandriva.com>
- - restore BuildRoot
-
-* Mon Dec 17 2007 Thierry Vignaud <tv@mandriva.org> 1.0.1-3mdv2008.1
-+ Revision: 128984
-- kill re-definition of %%buildroot on Pixel's request
-- use %%mkrel
-- import libpcd
-
-
-* Fri Jan 21 2005 Abel Cheung <deaddog@mandrake.org> 1.0.1-3mdk
-- Fix rpmlint warning
-- New URL
-
-* Fri Jan 21 2005 Abel Cheung <deaddog@mandrake.org> 1.0.1-2mdk
-- rebuild
-
-* Tue Dec 02 2003 Abel Cheung <deaddog@deaddog.org> 1.0.1-1mdk
-- First Mandrake package