forked from pool/libHX
This commit is contained in:
parent
770158e9d1
commit
50494a340a
@ -1 +1 @@
|
|||||||
libHX13
|
libHX18
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:04ca6b73191695ef6d777a84a8d9f64053bad506ac7d4f09d7c0619031110f03
|
|
||||||
size 280602
|
|
3
libHX-2.5.tar.bz2
Normal file
3
libHX-2.5.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:54de801da0b83148b95201613a5a031509bb1e7bbdb553ceef7e1bf371474f7d
|
||||||
|
size 772905
|
@ -1,53 +0,0 @@
|
|||||||
Index: libHX-1.23/src/hmc.c
|
|
||||||
===================================================================
|
|
||||||
--- libHX-1.23.orig/src/hmc.c
|
|
||||||
+++ libHX-1.23/src/hmc.c
|
|
||||||
@@ -70,10 +70,14 @@ EXPORT_SYMBOL hmc_t *hmc_memasg(hmc_t **
|
|
||||||
CHECK_IDENT(ctx);
|
|
||||||
if (ctx->alloc < len) {
|
|
||||||
ctx = realloc(ctx, sizeof(struct memcont) + len);
|
|
||||||
+ if (ctx == NULL)
|
|
||||||
+ return NULL;
|
|
||||||
ctx->alloc = len;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
ctx = malloc(sizeof(struct memcont) + len);
|
|
||||||
+ if (ctx == NULL)
|
|
||||||
+ return NULL;
|
|
||||||
ctx->id = HMC_IDENT;
|
|
||||||
ctx->alloc = len;
|
|
||||||
}
|
|
||||||
@@ -102,12 +106,14 @@ EXPORT_SYMBOL hmc_t *hmc_trunc(hmc_t **v
|
|
||||||
CHECK_IDENT(ctx);
|
|
||||||
if (len > ctx->alloc) {
|
|
||||||
ctx = realloc(ctx, sizeof(struct memcont) + len);
|
|
||||||
+ if (ctx == NULL)
|
|
||||||
+ return NULL;
|
|
||||||
ctx->alloc = len;
|
|
||||||
} else {
|
|
||||||
ctx->data[len] = '\0';
|
|
||||||
ctx->length = len;
|
|
||||||
}
|
|
||||||
- return ctx->data;
|
|
||||||
+ return *vp = ctx->data;
|
|
||||||
}
|
|
||||||
|
|
||||||
EXPORT_SYMBOL hmc_t *hmc_strcat(hmc_t **vp, const char *s)
|
|
||||||
@@ -125,6 +131,8 @@ EXPORT_SYMBOL hmc_t *hmc_memcat(hmc_t **
|
|
||||||
CHECK_IDENT(ctx);
|
|
||||||
if (nl > ctx->alloc) {
|
|
||||||
ctx = realloc(ctx, sizeof(struct memcont) + nl);
|
|
||||||
+ if (ctx == NULL)
|
|
||||||
+ return NULL;
|
|
||||||
ctx->alloc = nl;
|
|
||||||
}
|
|
||||||
if (ptr == NULL)
|
|
||||||
@@ -171,6 +179,8 @@ EXPORT_SYMBOL hmc_t *hmc_memins(hmc_t **
|
|
||||||
CHECK_IDENT(ctx);
|
|
||||||
if (ctx->alloc < nl) {
|
|
||||||
ctx = realloc(ctx, sizeof(struct memcont) + nl);
|
|
||||||
+ if (ctx == NULL)
|
|
||||||
+ return NULL;
|
|
||||||
ctx->alloc = nl;
|
|
||||||
}
|
|
||||||
if (ptr == NULL)
|
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 18 12:22:28 CET 2009 - mc@suse.de
|
||||||
|
|
||||||
|
- update to version 2.5
|
||||||
|
* a lot of new features and fixes
|
||||||
|
see /usr/share/doc/packages/libHX/changelog.txt for details
|
||||||
|
* move lib back to /usr/lib/
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 29 15:38:19 CET 2009 - crrodriguez@suse.de
|
Thu Jan 29 15:38:19 CET 2009 - crrodriguez@suse.de
|
||||||
|
|
||||||
|
33
libHX.spec
33
libHX.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libHX (Version 1.23)
|
# spec file for package libHX (Version 2.5)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -19,17 +19,17 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: libHX
|
Name: libHX
|
||||||
%define lname libHX13
|
%define lname libHX18
|
||||||
BuildRequires: gcc-c++ libxml2-devel
|
BuildRequires: gcc-c++ libxml2-devel
|
||||||
Summary: General-purpose Library
|
Summary: General-purpose Library
|
||||||
Version: 1.23
|
Version: 2.5
|
||||||
Release: 4
|
Release: 1
|
||||||
License: LGPL v2.1 or later; LGPL v3 or later
|
License: LGPL v2.1 or later; LGPL v3 or later
|
||||||
|
Prefix: /usr
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Patch1: libHX-hmc-fixes.dif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define debug_package_requires libHX13 = %{version}-%{release}
|
%define debug_package_requires libHX18 = %{version}-%{release}
|
||||||
Url: http://jengelh.medozas.de/projects/libHX/
|
Url: http://jengelh.medozas.de/projects/libHX/
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -59,7 +59,7 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Jan Engelhardt <jengelh [at] gmx de>
|
Jan Engelhardt <jengelh [at] gmx de>
|
||||||
|
|
||||||
%package -n libHX13
|
%package -n libHX18
|
||||||
License: LGPL v2.1 or later; LGPL v3 or later
|
License: LGPL v2.1 or later; LGPL v3 or later
|
||||||
Summary: General-purpose Library
|
Summary: General-purpose Library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -127,11 +127,10 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh;
|
./autogen.sh;
|
||||||
%configure --with-pic --libdir=/%_lib --with-pkgconfigdir=/%_libdir/pkgconfig/
|
%configure --with-pic --with-pkgconfigdir=/%_libdir/pkgconfig/
|
||||||
make %{?jobs:-j%jobs};
|
make %{?jobs:-j%jobs};
|
||||||
perl -i -pe 's/^shouldnotlink=yes/shouldnotlink=no/;' \
|
perl -i -pe 's/^shouldnotlink=yes/shouldnotlink=no/;' \
|
||||||
src/%{name}.la src/.libs/%{name}.lai;
|
src/%{name}.la src/.libs/%{name}.lai;
|
||||||
@ -139,10 +138,9 @@ perl -i -pe 's/^shouldnotlink=yes/shouldnotlink=no/;' \
|
|||||||
%install
|
%install
|
||||||
make install DESTDIR=${RPM_BUILD_ROOT}
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
||||||
mkdir -p "${RPM_BUILD_ROOT}/%_docdir";
|
mkdir -p "${RPM_BUILD_ROOT}/%_docdir";
|
||||||
cp -a doc "${RPM_BUILD_ROOT}/%_docdir/%name";
|
cp -a doc "${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}";
|
||||||
rm -f ${RPM_BUILD_ROOT}/%_lib/%{name}.la
|
rm -f ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}/.gitignore
|
||||||
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
|
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/%{name}.la
|
||||||
%{__rm} -v %{buildroot}/%{_lib}/%{name}.so
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -153,17 +151,22 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files -n %{lname}
|
%files -n %{lname}
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
/%_lib/%{name}*.so.*
|
/%_libdir/%{name}*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%docdir %_docdir/%name
|
%docdir %_docdir/%name
|
||||||
%_docdir/%name
|
%_docdir/%name
|
||||||
%_includedir/%{name}*
|
%_includedir/%{name}*
|
||||||
%_libdir/%{name}*.so
|
/%{_libdir}/%{name}*.so
|
||||||
%_libdir/pkgconfig/*.pc
|
%_libdir/pkgconfig/*.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 18 2009 mc@suse.de
|
||||||
|
- update to version 2.5
|
||||||
|
* a lot of new features and fixes
|
||||||
|
see /usr/share/doc/packages/libHX/changelog.txt for details
|
||||||
|
* move lib back to /usr/lib/
|
||||||
* Thu Jan 29 2009 crrodriguez@suse.de
|
* Thu Jan 29 2009 crrodriguez@suse.de
|
||||||
- move .so symlinks to %%{_libdir}
|
- move .so symlinks to %%{_libdir}
|
||||||
- fix -devel package dependencies
|
- fix -devel package dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user