diff --git a/.gitignore b/.gitignore deleted file mode 100644 index be77586..0000000 --- a/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -libmetalink-0.0.3.tar.bz2 -/libmetalink-0.1.2.tar.bz2 -/libmetalink-0.1.3.tar.bz2 -/libmetalink-0.1.3.tar.gz -/libmetalink-release-0.1.3.tar.gz diff --git a/0001-fix-covscan-issues.patch b/0001-fix-covscan-issues.patch deleted file mode 100644 index c5d2824..0000000 --- a/0001-fix-covscan-issues.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 204c580643f7c52364520926b9df3a621fab6df7 Mon Sep 17 00:00:00 2001 -From: Martin Sehnoutka -Date: Tue, 24 Jul 2018 15:10:40 +0200 -Subject: [PATCH] fix covscan issues - ---- - lib/libexpat_metalink_parser.c | 3 +++ - lib/metalink_pctrl.c | 2 ++ - 2 files changed, 5 insertions(+) - -diff --git a/lib/libexpat_metalink_parser.c b/lib/libexpat_metalink_parser.c -index 4e73aef..79b091c 100644 ---- a/lib/libexpat_metalink_parser.c -+++ b/lib/libexpat_metalink_parser.c -@@ -29,6 +29,7 @@ - - #include - #include -+#include - #include - #include - -@@ -56,6 +57,8 @@ static void split_ns_name(const char** localname, - *localname = sep+1; - len = sep-src; - temp = malloc((len+1) * sizeof **ns_uri); -+ if (temp == NULL) -+ exit(EXIT_FAILURE); - memcpy(temp, src, len); - temp[len] = '\0'; - *ns_uri = temp; -diff --git a/lib/metalink_pctrl.c b/lib/metalink_pctrl.c -index c25989b..e6fb8f8 100644 ---- a/lib/metalink_pctrl.c -+++ b/lib/metalink_pctrl.c -@@ -469,6 +469,7 @@ metalink_error_t metalink_pctrl_file_set_language(metalink_pctrl_t* ctrl, const - l = strdup(language); - ctrl->languages = metalink_list_new(); - if(!ctrl->languages || !l || metalink_list_append(ctrl->languages, l) != 0) { -+ if (l) free(l); - return METALINK_ERR_BAD_ALLOC; - } - -@@ -486,6 +487,7 @@ metalink_error_t metalink_pctrl_file_set_os(metalink_pctrl_t* ctrl, const char* - o = strdup(os); - ctrl->oses = metalink_list_new(); - if(!ctrl->oses || !o || metalink_list_append(ctrl->oses, o) != 0) { -+ if (o) free(o); - return METALINK_ERR_BAD_ALLOC; - } - --- -2.17.1 - diff --git a/changelog b/changelog deleted file mode 100644 index 120eef7..0000000 --- a/changelog +++ /dev/null @@ -1,112 +0,0 @@ -* Wed Jan 12 2022 Benjamin A. Beasley - 0.1.3-16 -- Switch to GitHub release archive; as a result, we must now run autoreconf -- Patch additional allocation-related issues -- Switch BR’s to pkgconfig(…) -- Drop obsolete macros and workarounds -- General tidying -- Don’t glob over the .so version - -* Thu Jul 22 2021 Fedora Release Engineering - 0.1.3-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Tue Jan 26 2021 Fedora Release Engineering - 0.1.3-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Tue Aug 04 2020 Alejandro Alvarez Ayllon - 0.1.3-13 -- Apply patch fixing NULL ptr deref in initial_state_start_fun (#1860976) - -* Tue Jul 28 2020 Fedora Release Engineering - 0.1.3-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Mon Jul 13 2020 Tom Stellard - 0.1.3-11 -- Use make macros -- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro - -* Wed Jan 29 2020 Fedora Release Engineering - 0.1.3-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 0.1.3-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 0.1.3-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 0.1.3-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 0.1.3-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Sat Feb 03 2018 Igor Gnatenko - 0.1.3-5 -- Switch to %%ldconfig_scriptlets - -* Thu Aug 03 2017 Fedora Release Engineering - 0.1.3-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 0.1.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 0.1.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Nov 16 2016 Alejandro Alvarez - 0.1.3-1 -- New upstream release - -* Thu Feb 04 2016 Fedora Release Engineering - 0.1.2-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 0.1.2-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun Aug 17 2014 Fedora Release Engineering - 0.1.2-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Fri Jul 18 2014 Tom Callaway - 0.1.2-6 -- fix license handling - -* Sat Jun 07 2014 Fedora Release Engineering - 0.1.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sat Aug 03 2013 Fedora Release Engineering - 0.1.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Jun 13 2013 Alejandro Alvarez - 0.1.2-3 -- Added BuildRequires: CUnit-devel -- Added %%check section -- Removed %%defattr -- Moved man pages to devel package. There is no need for -doc - -* Mon Jun 10 2013 Alejandro Alvarez - 0.1.2-2 -- Escaped macros in changelog -- Changed packages summaries -- Renamed -docs to -doc, and changed its group to Documentation -- Fixed -devel dependencies -- Removed -docs dependency on the main package -- All header files specified explicitly - -* Mon Apr 22 2013 Alejandro Alvarez - 0.1.2-1 -- Updated for new upstream release -- Man pages moved to libmetalink-docs package - -* Fri Jan 13 2012 Fedora Release Engineering - 0.0.3-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Tue Feb 08 2011 Fedora Release Engineering - 0.0.3-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Fri Jul 24 2009 Fedora Release Engineering - 0.0.3-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Thu May 07 2009 Ant Bryan - 0.0.3-4 -- Remove Provides: libmetalink-static = %%{version}-%%{release} - -* Tue May 06 2009 Ant Bryan - 0.0.3-3 -- Use %%{_docdir} instead of /usr/share/doc -- Own /usr/include/metalink - -* Wed Apr 29 2009 Ant Bryan - 0.0.3-2 -- Incorporate suggested changes: remove .la files, --disable static. - -* Mon Apr 27 2009 Ant Bryan - 0.0.3-1 -- Initial package, 0.0.3. - diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..253fba4 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +libmetalink package is retired on branch c10s for BAKERY-412 \ No newline at end of file diff --git a/libmetalink-0.1.3-ns_uri.patch b/libmetalink-0.1.3-ns_uri.patch deleted file mode 100644 index daa5fa7..0000000 --- a/libmetalink-0.1.3-ns_uri.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -urp libmetalink-0.1.3.orig/lib/metalink_pstate.c libmetalink-0.1.3/lib/metalink_pstate.c ---- libmetalink-0.1.3.orig/lib/metalink_pstate.c 2012-08-12 04:43:53.000000000 -0400 -+++ libmetalink-0.1.3/lib/metalink_pstate.c 2020-07-22 17:03:21.205852103 -0400 -@@ -100,7 +100,7 @@ void initial_state_start_fun(metalink_ps - const char** attrs) - { - if(strcmp("metalink", name) == 0) { -- if (strcmp(METALINK_V3_NS_URI, ns_uri) == 0) { -+ if (ns_uri && strcmp(METALINK_V3_NS_URI, ns_uri) == 0) { - const char* type; - const char* origin; - metalink_pctrl_set_version(stm->ctrl, METALINK_VERSION_3); -@@ -116,7 +116,7 @@ void initial_state_start_fun(metalink_ps - - metalink_pstm_enter_metalink_state(stm); - } -- else if (strcmp(METALINK_V4_NS_URI, ns_uri) == 0) { -+ else if (ns_uri && strcmp(METALINK_V4_NS_URI, ns_uri) == 0) { - metalink_pctrl_set_version(stm->ctrl, METALINK_VERSION_4); - metalink_pstm_enter_metalink_state_v4(stm); - } else { diff --git a/libmetalink.spec b/libmetalink.spec deleted file mode 100644 index cfc3558..0000000 --- a/libmetalink.spec +++ /dev/null @@ -1,83 +0,0 @@ -Name: libmetalink -Version: 0.1.3 -%global so_version 3 -Release: %autorelease -Summary: Metalink library written in C - -# SPDX -License: MIT -URL: https://github.com/metalink-dev/libmetalink -Source: %{url}/archive/release-%{version}/libmetalink-release-%{version}.tar.gz - -# NULL ptr deref in initial_state_start_fun -# https://bugs.launchpad.net/libmetalink/+bug/1888672 -Patch: https://bugs.launchpad.net/libmetalink/+bug/1888672/+attachment/5395227/+files/libmetalink-0.1.3-ns_uri.patch -# Fix few issues found by the Coverity static analysis tool -# https://bugs.launchpad.net/libmetalink/+bug/1784359 -# https://github.com/metalink-dev/libmetalink/pull/2 -Patch: https://bugs.launchpad.net/libmetalink/+bug/1784359/+attachment/5169495/+files/0001-fix-covscan-issues.patch - -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: libtool - -BuildRequires: gcc -BuildRequires: make - -BuildRequires: pkgconfig(expat) -BuildRequires: pkgconfig(cunit) -# Required for AM_PATH_XML2 m4 macro so we can “autoreconf”; however, expat is -# used preferentially where available. -BuildRequires: libxml2-devel - -%description -libmetalink is a Metalink C library. It adds Metalink functionality such as -parsing Metalink XML files to programs written in C. - - -%package devel -Summary: Files needed for developing with libmetalink - -Requires: libmetalink%{?_isa} = %{version}-%{release} - -%description devel -Files needed for building applications with libmetalink. - - -%prep -%autosetup -p1 -n libmetalink-release-%{version} - - -%build -autoreconf --force --install --verbose -%configure --disable-static -%make_build - - -%check -%make_build check - - -%install -%make_install -find '%{buildroot}' -type f -name '*la' -print -delete - - -%files -%license COPYING -%doc AUTHORS -%doc ChangeLog -%doc NEWS -%doc README -%{_libdir}/libmetalink.so.%{so_version}{,.*} - - -%files devel -%{_includedir}/metalink/ -%{_libdir}/libmetalink.so -%{_libdir}/pkgconfig/libmetalink.pc -%{_mandir}/man3/metalink*.3.* - - -%changelog -%autochangelog diff --git a/sources b/sources deleted file mode 100644 index cbb8c0b..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (libmetalink-release-0.1.3.tar.gz) = 7985fb0e8a5defe683284065cc2081050bd2f5c0e474e4ec87a2384dec10069ef96c8229f0b5121551e51796e60d982c3c73d1317c85b595833b4320fcf1fc74