SHA256
1
0
forked from pool/libgpg-error
OBS User unknown 2007-01-15 23:22:02 +00:00 committed by Git OBS Bridge
commit b9706676b5
7 changed files with 347 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
libgpg-error-1.4.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f71a3f7da2d0b5ea241186848e33e36714952d40d75d98278c4f184b79915f4
size 467196

View File

@ -0,0 +1,88 @@
--- po/Makevars
+++ po/Makevars 2004/07/14 08:56:43
@@ -1,7 +1,7 @@
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
-DOMAIN = $(PACKAGE)
+DOMAIN = $(PACKAGE)-nld
# These two variables depend on the location of this directory.
subdir = po
--- src/gpg-error-config.in
+++ src/gpg-error-config.in 2004/07/14 08:57:04
@@ -65,7 +65,7 @@
if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then
output="$output -L$libdir"
fi
- output="$output -lgpg-error"
+ output="$output -lgpg-error-nld"
;;
*)
usage 1 1>&2
--- src/Makefile.am
+++ src/Makefile.am 2004/07/14 08:56:43
@@ -37,19 +37,19 @@
include_HEADERS = gpg-error.h
-lib_LTLIBRARIES = libgpg-error.la
+lib_LTLIBRARIES = libgpg-error-nld.la
-libgpg_error_la_LDFLAGS = -version-info \
+libgpg_error_nld_la_LDFLAGS = -version-info \
@LIBGPG_ERROR_LT_CURRENT@:@LIBGPG_ERROR_LT_REVISION@:@LIBGPG_ERROR_LT_AGE@
-libgpg_error_la_SOURCES = gpg-error.h gettext.h \
+libgpg_error_nld_la_SOURCES = gpg-error.h gettext.h \
strsource.c strerror.c code-to-errno.c code-from-errno.c
-libgpg_error_la_LIBADD = @LTLIBINTL@
+libgpg_error_nld_la_LIBADD = @LTLIBINTL@
bin_PROGRAMS = gpg-error
gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c
-gpg_error_LDADD = ./libgpg-error.la
+gpg_error_LDADD = ./libgpg-error-nld.la
err-sources.h: Makefile mkstrtable.awk err-sources.h.in
$(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=3 \
--- src/strerror.c
+++ src/strerror.c 2004/07/14 08:56:43
@@ -47,7 +47,7 @@
else
code = GPG_ERR_UNKNOWN_ERRNO;
}
- return dgettext (PACKAGE, msgstr + msgidx[msgidxof (code)]);
+ return dgettext (PACKAGE"-nld", msgstr + msgidx[msgidxof (code)]);
}
@@ -158,7 +158,7 @@
code = GPG_ERR_UNKNOWN_ERRNO;
}
- errstr = dgettext (PACKAGE, msgstr + msgidx[msgidxof (code)]);
+ errstr = dgettext (PACKAGE"-nld", msgstr + msgidx[msgidxof (code)]);
errstr_len = strlen (errstr) + 1;
cpy_len = errstr_len < buflen ? errstr_len : buflen;
memcpy (buf, errstr, cpy_len);
--- src/strsource.c
+++ src/strsource.c 2004/07/14 08:56:43
@@ -33,5 +33,5 @@
gpg_strsource (gpg_error_t err)
{
gpg_err_source_t source = gpg_err_source (err);
- return dgettext (PACKAGE, msgstr + msgidx[msgidxof (source)]);
+ return dgettext (PACKAGE"-nld", msgstr + msgidx[msgidxof (source)]);
}
--- tests/Makefile.am
+++ tests/Makefile.am 2004/07/14 08:56:43
@@ -23,6 +23,6 @@
INCLUDES = -I$(top_builddir)/src
-LDADD = ../src/libgpg-error.la
+LDADD = ../src/libgpg-error-nld.la
noinst_PROGRAMS = $(TESTS)

82
libgpg-error.changes Normal file
View File

@ -0,0 +1,82 @@
-------------------------------------------------------------------
Wed Dec 13 12:37:00 CET 2006 - mkoenig@suse.de
- get rid of .la file and fix devel so link
-------------------------------------------------------------------
Tue Dec 5 18:47:06 CET 2006 - mkoenig@suse.de
- move shared lib to /%_lib
-------------------------------------------------------------------
Tue Sep 19 16:23:09 CEST 2006 - mkoenig@suse.de
- update to version 1.4:
* New error codes for the Assuan IPC library.
* New error code GPG_ERR_MISSING_ERRNO
* New error source GPG_ERR_SOURCE_ANY
* New convenience functions gpg_err_code_from_syserror and
gpg_error_from_syserror
-------------------------------------------------------------------
Thu Jul 13 09:55:21 CEST 2006 - mskibbe@suse.de
- add autoreconf --force ( includes the missing -fPIC option while
build )
-------------------------------------------------------------------
Wed Jul 12 11:14:55 CEST 2006 - mskibbe@suse.de
- update to version 1.3 which
o includes fixes in Makefiles
o fix cast problems
o include utf8 functions
o add some languages
-------------------------------------------------------------------
Wed Jan 25 21:37:28 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Jun 23 17:31:04 CEST 2005 - hvogel@suse.de
- require libgpg-error
- add %clean section
-------------------------------------------------------------------
Thu Oct 14 16:50:38 CEST 2004 - hvogel@suse.de
- update to version 1.0
-------------------------------------------------------------------
Mon Sep 27 14:37:55 CEST 2004 - hvogel@suse.de
- fixed ac-quotation of gpg-error.m4
-------------------------------------------------------------------
Mon Jul 19 13:31:55 CEST 2004 - hvogel@suse.de
- correct nld_build if statement
-------------------------------------------------------------------
Wed Jul 14 10:20:45 CEST 2004 - adrian@suse.de
- create -devel subpackage
- prepare for NLD
-------------------------------------------------------------------
Mon May 24 16:42:53 CEST 2004 - ro@suse.de
- added return value to non-void function (main)
-------------------------------------------------------------------
Wed May 19 15:03:17 CEST 2004 - hvogel@suse.de
- update to version 0.7
-------------------------------------------------------------------
Tue Feb 17 21:13:31 CET 2004 - hvogel@suse.de
- initial package, version 0.6

150
libgpg-error.spec Normal file
View File

@ -0,0 +1,150 @@
#
# spec file for package libgpg-error (Version 1.4)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libgpg-error
URL: http://www.gnupg.org/
Version: 1.4
Release: 18
Summary: Library That Defines Common Error Values for All GnuPG Components
License: GNU General Public License (GPL), GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: Development/Libraries/C and C++
Autoreqprov: on
Source: %name-%version.tar.bz2
# rename package to "libgpg-error-nld" and set this to 1 for NLD
%define nld_build 0
Patch0: %name-nld-build.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a library that defines common error values for all GnuPG
components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
pinentry, SmartCard Daemon, and possibly more in the future.
Authors:
--------
Marcus Brinkmann <marcus@g10code.com>
%package devel
Summary: Development package for libgpg-error
Group: Development/Libraries/C and C++
%if %nld_build
Conflicts: libgpg-error-devel
%else
Provides: libgpg-error:/usr/include/gpg-error.h
%endif
Requires: libgpg-error == %version
%description devel
Files needed for software development using libgpg-error.
Authors:
--------
Marcus Brinkmann <marcus@g10code.com>
%prep
%setup -q -n libgpg-error-%version
autoreconf --force
%if %nld_build
%patch
%endif
%build
libtoolize --force
aclocal -I m4
automake -a
autoconf
./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--libdir=/%{_lib} \
--infodir=%{_infodir} \
CFLAGS="$RPM_OPT_FLAGS"
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/%{_lib}/libgpg-error.la
mkdir -p $RPM_BUILD_ROOT%{_libdir}
rm $RPM_BUILD_ROOT/%{_lib}/libgpg-error.so
ln -s /%{_lib}/libgpg-error.so.0 $RPM_BUILD_ROOT%{_libdir}/libgpg-error.so
mv $RPM_BUILD_ROOT/%{_lib}/libgpg-error.a $RPM_BUILD_ROOT%{_libdir}
# Drop the lisp stuff, it depends on ASDF and CFFI
# which needs to be packaged first
rm -r %{buildroot}/usr/share/common-lisp
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr(-,root,root)
%doc README NEWS ChangeLog COPYING.LIB COPYING AUTHORS ABOUT-NLS
%_datadir/locale/*/LC_MESSAGES/libgpg-error*.mo
/%_lib/libgpg-error*.so.*
%files devel
%defattr(-,root,root)
%_datadir/aclocal/gpg-error.m4
%_includedir/*
%_bindir/*
%_libdir/libgpg-error*.a
%_libdir/libgpg-error*.so
%changelog -n libgpg-error
* Wed Dec 13 2006 - mkoenig@suse.de
- get rid of .la file and fix devel so link
* Tue Dec 05 2006 - mkoenig@suse.de
- move shared lib to /%%_lib
* Tue Sep 19 2006 - mkoenig@suse.de
- update to version 1.4:
* New error codes for the Assuan IPC library.
* New error code GPG_ERR_MISSING_ERRNO
* New error source GPG_ERR_SOURCE_ANY
* New convenience functions gpg_err_code_from_syserror and
gpg_error_from_syserror
* Thu Jul 13 2006 - mskibbe@suse.de
- add autoreconf --force ( includes the missing -fPIC option while
build )
* Wed Jul 12 2006 - mskibbe@suse.de
- update to version 1.3 which
o includes fixes in Makefiles
o fix cast problems
o include utf8 functions
o add some languages
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jun 23 2005 - hvogel@suse.de
- require libgpg-error
- add %%clean section
* Thu Oct 14 2004 - hvogel@suse.de
- update to version 1.0
* Mon Sep 27 2004 - hvogel@suse.de
- fixed ac-quotation of gpg-error.m4
* Mon Jul 19 2004 - hvogel@suse.de
- correct nld_build if statement
* Wed Jul 14 2004 - adrian@suse.de
- create -devel subpackage
- prepare for NLD
* Mon May 24 2004 - ro@suse.de
- added return value to non-void function (main)
* Wed May 19 2004 - hvogel@suse.de
- update to version 0.7
* Tue Feb 17 2004 - hvogel@suse.de
- initial package, version 0.6

0
ready Normal file
View File