This commit is contained in:
parent
a7608444b4
commit
a5d0c32482
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 12 16:45:29 CEST 2007 - dmueller@suse.de
|
||||||
|
|
||||||
|
- build against yaz 3.0.2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 9 10:46:11 CEST 2007 - stbinner@suse.de
|
Wed May 9 10:46:11 CEST 2007 - stbinner@suse.de
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ BuildRequires: libjpeg-devel
|
|||||||
%endif
|
%endif
|
||||||
Summary: A book collection manager
|
Summary: A book collection manager
|
||||||
Version: 1.2.11
|
Version: 1.2.11
|
||||||
Release: 1
|
Release: 3
|
||||||
License: GNU General Public License (GPL)
|
License: GNU General Public License (GPL)
|
||||||
Group: Productivity/Other
|
Group: Productivity/Other
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: %{name}-%{version}.tar.gz
|
||||||
@ -30,6 +30,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
Prefix: /opt/kde3
|
Prefix: /opt/kde3
|
||||||
URL: http://www.periapsis.org/tellico/
|
URL: http://www.periapsis.org/tellico/
|
||||||
Patch: fix-compile.diff
|
Patch: fix-compile.diff
|
||||||
|
Patch1: yaz-3.0.diff
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tellico is an KDE application for keeping track of your collections. It
|
Tellico is an KDE application for keeping track of your collections. It
|
||||||
@ -41,6 +42,7 @@ coins, stamps, trading cards, comic books, and wines.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch
|
%patch
|
||||||
|
%patch1
|
||||||
. /etc/opt/kde3/common_options
|
. /etc/opt/kde3/common_options
|
||||||
update_admin --no-unsermake
|
update_admin --no-unsermake
|
||||||
|
|
||||||
@ -75,6 +77,8 @@ rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs
|
|||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 12 2007 - dmueller@suse.de
|
||||||
|
- build against yaz 3.0.2
|
||||||
* Wed May 09 2007 - stbinner@suse.de
|
* Wed May 09 2007 - stbinner@suse.de
|
||||||
- update to version 1.2.11:
|
- update to version 1.2.11:
|
||||||
* Improved save time by caching image info on load.
|
* Improved save time by caching image info on load.
|
||||||
|
18
yaz-3.0.diff
Normal file
18
yaz-3.0.diff
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
--- src/fetch/z3950connection.cpp
|
||||||
|
+++ src/fetch/z3950connection.cpp
|
||||||
|
@@ -442,13 +442,13 @@ QString Z3950Connection::toXML(const QCS
|
||||||
|
|
||||||
|
// first 5 bytes are length
|
||||||
|
bool ok;
|
||||||
|
- int len = marc_.left(5).toInt(&ok);
|
||||||
|
+ size_t len = marc_.left(5).toUInt(&ok);
|
||||||
|
if(ok && (len < 25 || len > 100000)) {
|
||||||
|
myDebug() << "Z3950Connection::toXML() - bad length: " << (ok ? len : -1) << endl;
|
||||||
|
return QString::null;
|
||||||
|
}
|
||||||
|
|
||||||
|
- char* result;
|
||||||
|
+ const char* result;
|
||||||
|
int r = yaz_marc_decode_buf(mt, marc_, -1, &result, &len);
|
||||||
|
if(r <= 0) {
|
||||||
|
myDebug() << "Z3950Connection::toXML() - can't decode buffer" << endl;
|
Loading…
Reference in New Issue
Block a user