diff --git a/libmetalink-0.1.3.tar.xz b/libmetalink-0.1.3.tar.xz deleted file mode 100644 index b115cd2..0000000 --- a/libmetalink-0.1.3.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:86312620c5b64c694b91f9cc355eabbd358fa92195b3e99517504076bf9fe33a -size 278592 diff --git a/libmetalink-autotools.patch b/libmetalink-autotools.patch index da42be9..5576ed8 100644 --- a/libmetalink-autotools.patch +++ b/libmetalink-autotools.patch @@ -1,3 +1,5 @@ +Index: configure.ac +=================================================================== --- configure.ac.orig +++ configure.ac @@ -22,9 +22,6 @@ @@ -10,7 +12,7 @@ dnl See versioning rule: dnl http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html AC_SUBST(LT_CURRENT, 4) -@@ -63,7 +61,10 @@ AC_ARG_ENABLE([gcc-visibility], +@@ -66,7 +63,10 @@ AC_ARG_ENABLE([gcc-visibility], [gcc_visibility=$withval], [gcc_visibility=no]) # Checks for programs @@ -22,6 +24,8 @@ 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 @@ -33,6 +37,8 @@ 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 @@ @@ -45,12 +51,17 @@ @DEFS@ pkgconfigdir = $(libdir)/pkgconfig -@@ -60,4 +60,4 @@ endif +@@ -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 \ ++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 = \ diff --git a/libmetalink.changes b/libmetalink.changes index 1dda138..af6fc0d 100644 --- a/libmetalink.changes +++ b/libmetalink.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +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 diff --git a/libmetalink.spec b/libmetalink.spec index 2efdcb0..17f9b1c 100644 --- a/libmetalink.spec +++ b/libmetalink.spec @@ -1,7 +1,7 @@ # -# spec file for package spec +# spec file for package libmetalink # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -103,4 +103,4 @@ make %{?_smp_mflags} test %{_libdir}/pkgconfig/libmetalink.pc %{_mandir}/man3/metalink*.3* -%changelog \ No newline at end of file +%changelog