Sync from SUSE:SLFO:Main libmetalink revision 705674ac36396fcafb049aa3907130b4
This commit is contained in:
commit
7ec7f96f21
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
BIN
libmetalink-0.1.3.tar.xz
(Stored with Git LFS)
Normal file
BIN
libmetalink-0.1.3.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
75
libmetalink-autotools.patch
Normal file
75
libmetalink-autotools.patch
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
Index: configure.ac
|
||||||
|
===================================================================
|
||||||
|
--- configure.ac.orig
|
||||||
|
+++ configure.ac
|
||||||
|
@@ -22,9 +22,6 @@
|
||||||
|
AC_PREREQ(2.61)
|
||||||
|
AC_INIT([libmetalink], [0.1.3], [t-tujikawa@users.sourceforge.net])
|
||||||
|
|
||||||
|
-LT_PREREQ([2.2.6])
|
||||||
|
-LT_INIT()
|
||||||
|
-
|
||||||
|
dnl See versioning rule:
|
||||||
|
dnl http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
||||||
|
AC_SUBST(LT_CURRENT, 4)
|
||||||
|
@@ -66,7 +63,10 @@ AC_ARG_ENABLE([gcc-visibility],
|
||||||
|
[gcc_visibility=$withval], [gcc_visibility=no])
|
||||||
|
|
||||||
|
# Checks for programs
|
||||||
|
-AC_PROG_CC
|
||||||
|
+AC_PROG_CC_STDC
|
||||||
|
+AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
+AC_SYS_LARGEFILE
|
||||||
|
+LT_INIT([disable-static pic-only])
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
# Package version
|
||||||
|
Index: lib/libexpat_metalink_parser.c
|
||||||
|
===================================================================
|
||||||
|
--- lib/libexpat_metalink_parser.c.orig
|
||||||
|
+++ lib/libexpat_metalink_parser.c
|
||||||
|
@@ -130,7 +130,7 @@ METALINK_PUBLIC
|
||||||
|
metalink_parse_file(const char* filename, metalink_t** res)
|
||||||
|
{
|
||||||
|
metalink_error_t r;
|
||||||
|
- FILE *docfp = fopen(filename, "rb");
|
||||||
|
+ FILE *docfp = fopen(filename, "rbe");
|
||||||
|
if(docfp == NULL)
|
||||||
|
return METALINK_ERR_CANNOT_OPEN_FILE;
|
||||||
|
r = metalink_parse_fp(docfp, res);
|
||||||
|
Index: lib/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- lib/Makefile.am.orig
|
||||||
|
+++ lib/Makefile.am
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
SUBDIRS = includes
|
||||||
|
|
||||||
|
-AM_CPPFLAGS = -I$(srcdir)/includes -I$(builddir)/includes \
|
||||||
|
- @XML_CPPFLAGS@ @EXPAT_CFLAGS@ \
|
||||||
|
+AM_CPPFLAGS = -include $(top_builddir)/config.h -I$(srcdir)/includes -I$(builddir)/includes \
|
||||||
|
+ @EXPAT_CFLAGS@ \
|
||||||
|
@DEFS@
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
@@ -57,6 +57,6 @@ OBJECTS += libexpat_metalink_parser.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
libmetalink_la_SOURCES = $(HFILES) $(OBJECTS)
|
||||||
|
-libmetalink_la_LDFLAGS = -no-undefined \
|
||||||
|
+libmetalink_la_LDFLAGS = -no-undefined -export-symbols-regex '^metalink_'\
|
||||||
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
||||||
|
- @XML_LIBS@ @EXPAT_LIBS@
|
||||||
|
+ @EXPAT_LIBS@
|
||||||
|
Index: test/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- test/Makefile.am.orig
|
||||||
|
+++ test/Makefile.am
|
||||||
|
@@ -11,7 +11,7 @@ metalinktest_SOURCES = \
|
||||||
|
metalinktest_LDADD = ${top_builddir}/lib/libmetalink.la
|
||||||
|
metalinktest_LDFLAGS = -static @CUNIT_LIBS@
|
||||||
|
|
||||||
|
-AM_CFLAGS = -I${top_srcdir}/lib -I${top_srcdir}/lib/includes \
|
||||||
|
+AM_CFLAGS = -include $(top_builddir)/config.h -I${top_srcdir}/lib -I${top_srcdir}/lib/includes \
|
||||||
|
-I${top_builddir}/lib/includes \
|
||||||
|
-DLIBMETALINK_TEST_DIR=\"$(top_srcdir)/test/\" @CUNIT_CFLAGS@
|
||||||
|
TESTS = metalinktest
|
54
libmetalink.changes
Normal file
54
libmetalink.changes
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 24 10:36:02 CEST 2018 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Use %license instead of %doc [bsc#1082318]
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 21 19:36:12 UTC 2018 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- libmetalink-autotools.patch: update, export only
|
||||||
|
metalink_ symbols using -export-symbols-regex, there
|
||||||
|
is an upstream configure option --enable-gcc-visibility
|
||||||
|
but it is currently incomplete and cannot be used as is
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 1 15:14:18 UTC 2015 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
- Update to version 0.1.3
|
||||||
|
* This release fixes the bug that signature element in metalink v4
|
||||||
|
was not parsed correctly.
|
||||||
|
- Update libmetalink-autotools.patch
|
||||||
|
- Use download Url as source
|
||||||
|
- Perform a spec-cleaner
|
||||||
|
- Build with libxml2 and cunit support
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 20 17:54:17 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Fornat spec file for factory
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 20 17:00:39 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.1.2
|
||||||
|
* This release adds RFC 5854 Metalink 4.0 support
|
||||||
|
* adds dynamic attribute of the origin element in Metalink
|
||||||
|
|
||||||
|
- libmetalink-autotools.patch : multiple pet peeves in autotools.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 24 21:08:12 UTC 2011 - andreas.stieger@gmx.de
|
||||||
|
|
||||||
|
- remove dependency on licenses, no longer in Factory
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 8 21:07:05 UTC 2009 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
- add support for libxml2 and expat, which makes the build include
|
||||||
|
all API functions, unlike the previous, crippled builds
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 1 23:48:44 UTC 2009 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
- initial package: 0.0.3
|
||||||
|
|
107
libmetalink.spec
Normal file
107
libmetalink.spec
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libmetalink
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define soname 3
|
||||||
|
Name: libmetalink
|
||||||
|
Version: 0.1.3
|
||||||
|
Release: 0
|
||||||
|
Summary: Metalink Library
|
||||||
|
License: MIT
|
||||||
|
Group: System/Libraries
|
||||||
|
Url: https://launchpad.net/libmetalink
|
||||||
|
Source: https://launchpad.net/libmetalink/trunk/libmetalink-%{version}/+download/%{name}-%{version}.tar.xz
|
||||||
|
Patch0: libmetalink-autotools.patch
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
%if 0%{?suse_version} > 1310
|
||||||
|
BuildRequires: pkgconfig(cunit)
|
||||||
|
%endif
|
||||||
|
%if 0%{?suse_version} >= 1310
|
||||||
|
BuildRequires: pkgconfig(expat)
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
|
%else
|
||||||
|
BuildRequires: libexpat-devel
|
||||||
|
BuildRequires: libxml2-devel
|
||||||
|
%endif
|
||||||
|
BuildRequires: xz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
Libmetalink is a Metalink library written in C language. It is intended to
|
||||||
|
provide the programs written in C to add Metalink functionality such as parsing
|
||||||
|
Metalink XML files.
|
||||||
|
|
||||||
|
%package -n libmetalink%{soname}
|
||||||
|
Summary: Metalink Library
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libmetalink%{soname}
|
||||||
|
Libmetalink is a Metalink library written in C language. It is intended to
|
||||||
|
provide the programs written in C to add Metalink functionality such as parsing
|
||||||
|
Metalink XML files.
|
||||||
|
|
||||||
|
%package -n libmetalink-devel
|
||||||
|
Summary: Metalink Library
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: glibc-devel
|
||||||
|
Requires: libmetalink%{soname} = %{version}
|
||||||
|
|
||||||
|
%description -n libmetalink-devel
|
||||||
|
Libmetalink is a Metalink library written in C language. It is intended to
|
||||||
|
provide the programs written in C to add Metalink functionality such as parsing
|
||||||
|
Metalink XML files.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -fiv
|
||||||
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--with-libexpat
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
|
rm -rf "%{buildroot}%{_datadir}/doc"
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
|
%post -n libmetalink%{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libmetalink%{soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%check
|
||||||
|
make %{?_smp_mflags} test
|
||||||
|
|
||||||
|
%files -n libmetalink%{soname}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS ChangeLog README
|
||||||
|
%{_libdir}/libmetalink.so.%{soname}
|
||||||
|
%{_libdir}/libmetalink.so.%{soname}.*
|
||||||
|
|
||||||
|
%files -n libmetalink-devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/metalink
|
||||||
|
%{_libdir}/libmetalink.so
|
||||||
|
%{_libdir}/pkgconfig/libmetalink.pc
|
||||||
|
%{_mandir}/man3/metalink*.3*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user