diff --git a/Fix-TINYCDB_VERSION-error.patch b/Fix-TINYCDB_VERSION-error.patch new file mode 100644 index 0000000000000000000000000000000000000000..8fd4faa00b8a5f4b27d316025db02871b82db736 --- /dev/null +++ b/Fix-TINYCDB_VERSION-error.patch @@ -0,0 +1,25 @@ +From 5b2c229d492a53e560a2ceef425d211fc39e8a04 Mon Sep 17 00:00:00 2001 +From: starlet-dx <15929766099@163.com> +Date: Mon, 13 May 2024 16:18:52 +0800 +Subject: [PATCH 1/1] Fix TINYCDB_VERSION error + +--- + cdb.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cdb.h b/cdb.h +index 8803a91..c135344 100644 +--- a/cdb.h ++++ b/cdb.h +@@ -23,7 +23,7 @@ + */ + + #ifndef TINYCDB_VERSION +-#define TINYCDB_VERSION 0.80 ++#define TINYCDB_VERSION 0.81 + + #ifdef __cplusplus + extern "C" { +-- +2.44.0 + diff --git a/tinycdb-0.78.tar.gz b/tinycdb-0.78.tar.gz deleted file mode 100644 index 649e8da50bf1b942b19cee151a14aa06f7ad01d1..0000000000000000000000000000000000000000 Binary files a/tinycdb-0.78.tar.gz and /dev/null differ diff --git a/tinycdb-0.81.tar.gz b/tinycdb-0.81.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7f0c40ef274ddc3c180cc6e5a4e586be197987e1 Binary files /dev/null and b/tinycdb-0.81.tar.gz differ diff --git a/tinycdb.spec b/tinycdb.spec index 4a695abf74b715b83064d764454d8b69986483dd..b982713ec3ae5bd452a4c13f913010c01fea6472 100644 --- a/tinycdb.spec +++ b/tinycdb.spec @@ -4,13 +4,14 @@ a data structure introduced by Dan J. Bernstein in his cdb package. It may be us to speed up searches in a sequence of (key,value) pairs with very big number of records. Name: tinycdb -Version: 0.78 -Release: 11 +Version: 0.81 +Release: 1 Summary: A very fast and simple package for creating and reading constant databases License: Public Domain URL: http://www.corpit.ru/mjt/tinycdb.html Source0: http://www.corpit.ru/mjt/tinycdb/tinycdb-%{version}.tar.gz Source1: libcdb.pc +Patch0: Fix-TINYCDB_VERSION-error.patch BuildRequires: gcc %description %_description @@ -28,11 +29,11 @@ The tinycdb-help package contains manual pages for tinycdb %prep %autosetup -n %{name}-%{version} -p1 -cp %{SOURCE1} debian/ -sed -i -e 's\/lib\/%{_lib}\g' debian/libcdb.pc +cp %{SOURCE1} . +sed -i -e 's\/lib\/%{_lib}\g' libcdb.pc %build -%make_build staticlib sharedlib cdb-shared CFLAGS="%{optflags}" +%make_build staticlib sharedlib cdb-shared CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}" %install install -d %{buildroot}%{_libdir} @@ -40,7 +41,7 @@ install -d %{buildroot}%{_libdir} install-sharedlib INSTALLPROG=cdb-shared CP="cp -p" chmod +x %{buildroot}%{_libdir}/*.so.* install -d %{buildroot}%{_libdir}/pkgconfig -cp -p debian/libcdb.pc %{buildroot}%{_libdir}/pkgconfig/libcdb.pc +cp -p libcdb.pc %{buildroot}%{_libdir}/pkgconfig/libcdb.pc %post /sbin/ldconfig @@ -48,7 +49,7 @@ cp -p debian/libcdb.pc %{buildroot}%{_libdir}/pkgconfig/libcdb.pc /sbin/ldconfig %files -%doc NEWS ChangeLog +%doc NEWS %{_bindir}/cdb %{_libdir}/*.so.* @@ -64,5 +65,8 @@ cp -p debian/libcdb.pc %{buildroot}%{_libdir}/pkgconfig/libcdb.pc %{_mandir}/man3/*.3* %changelog +* Mon May 13 2024 yaoxin - 0.81-1 +- Upgrade to 0.81 + * Fri Nov 15 2019 sunguoshuai - 0.78-11 - Package init