From b605cfb570b531590efc6b3a1598669b82e6c2ed Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 31 2019 14:54:11 +0000 Subject: import yum-metadata-parser-1.1.4-10.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4033cb8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/yum-metadata-parser-1.1.4.tar.gz diff --git a/.yum-metadata-parser.metadata b/.yum-metadata-parser.metadata new file mode 100644 index 0000000..9c3e3e8 --- /dev/null +++ b/.yum-metadata-parser.metadata @@ -0,0 +1 @@ +044e69a04ea5ac39d79020d9e1f1a35c9dc64d9b SOURCES/yum-metadata-parser-1.1.4.tar.gz diff --git a/SOURCES/BZ-612409-handle-2GB-rpms.patch b/SOURCES/BZ-612409-handle-2GB-rpms.patch new file mode 100644 index 0000000..057665f --- /dev/null +++ b/SOURCES/BZ-612409-handle-2GB-rpms.patch @@ -0,0 +1,48 @@ +commit 2d8499cf272bf9027d015fae0d344998debfae69 +Author: James Antill +Date: Sat Aug 21 18:26:33 2010 -0400 + + Handle > 2GB sized rpms, in XML => sqlite conversion, BZ 612409. + +diff --git a/db.c b/db.c +index 4d49595..80f87af 100644 +--- a/db.c ++++ b/db.c +@@ -550,9 +550,9 @@ yum_db_package_write (sqlite3 *db, sqlite3_stmt *handle, Package *p) + sqlite3_bind_int (handle, 17, p->rpm_header_start); + sqlite3_bind_int (handle, 18, p->rpm_header_end); + sqlite3_bind_text (handle, 19, p->rpm_packager, -1, SQLITE_STATIC); +- sqlite3_bind_int (handle, 20, p->size_package); +- sqlite3_bind_int (handle, 21, p->size_installed); +- sqlite3_bind_int (handle, 22, p->size_archive); ++ sqlite3_bind_int64 (handle, 20, p->size_package); ++ sqlite3_bind_int64 (handle, 21, p->size_installed); ++ sqlite3_bind_int64 (handle, 22, p->size_archive); + sqlite3_bind_text (handle, 23, p->location_href, -1, SQLITE_STATIC); + sqlite3_bind_text (handle, 24, p->location_base, -1, SQLITE_STATIC); + sqlite3_bind_text (handle, 25, p->checksum_type, -1, SQLITE_STATIC); +commit ffdcc0bf2bc9abc1f36f47378128af9afe2134e9 +Author: James Antill +Date: Thu Feb 24 11:18:54 2011 -0500 + + Change the conversion to be 64bit safe too, *sigh*. BZ 612409 + +diff --git a/xml-parser.c b/xml-parser.c +index 9617d17..35f04e6 100644 +--- a/xml-parser.c ++++ b/xml-parser.c +@@ -185,11 +185,11 @@ primary_parser_package_start (PrimarySAXContext *ctx, + value = attrs[++i]; + + if (!strcmp (attr, "package")) +- p->size_package = strtol(value, NULL, 10); ++ p->size_package = strtoll(value, NULL, 10); + else if (!strcmp (attr, "installed")) +- p->size_installed = strtol(value, NULL, 10); ++ p->size_installed = strtoll(value, NULL, 10); + else if (!strcmp (attr, "archive")) +- p->size_archive = strtol(value, NULL, 10); ++ p->size_archive = strtoll(value, NULL, 10); + } + } + diff --git a/SPECS/yum-metadata-parser.spec b/SPECS/yum-metadata-parser.spec new file mode 100644 index 0000000..ab80c26 --- /dev/null +++ b/SPECS/yum-metadata-parser.spec @@ -0,0 +1,176 @@ +%{!?python_sitelib_platform: %define python_sitelib_platform %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + + +Summary: A fast metadata parser for yum +Name: yum-metadata-parser +Version: 1.1.4 +Release: 10%{?dist} +Source0: http://linux.duke.edu/projects/yum/download/%{name}/%{name}-%{version}.tar.gz +Patch0: BZ-612409-handle-2GB-rpms.patch +License: GPLv2 +Group: Development/Libraries +URL: http://linux.duke.edu/projects/yum/ +Conflicts: yum < 3.2.0 +BuildRequires: python-devel +BuildRequires: glib2-devel +BuildRequires: libxml2-devel +BuildRequires: sqlite-devel +BuildRequires: pkgconfig +Requires: glib2 >= 2.15 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Fast metadata parser for yum implemented in C. + +%prep +%setup -q +%patch0 -p1 + +%build +%{__python} setup.py build + +%install +%{__rm} -rf %{buildroot} +%{__python} setup.py install -O1 --root=%{buildroot} + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc README AUTHORS ChangeLog +%{python_sitelib_platform}/_sqlitecache.so +%{python_sitelib_platform}/sqlitecachec.py +%{python_sitelib_platform}/sqlitecachec.pyc +%{python_sitelib_platform}/sqlitecachec.pyo + +%{python_sitelib_platform}/*egg-info + +%changelog +* Fri Jan 24 2014 Daniel Mach - 1.1.4-10 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.1.4-9 +- Mass rebuild 2013-12-27 + +* Fri Feb 15 2013 Fedora Release Engineering - 1.1.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 1.1.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1.1.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Feb 24 2011 James Antill 1.1.4-5 +- Really handle rpms that are over 2GB, in the .xml to .sqlite conversion. +- Resolves: bz#612409 + +* Tue Feb 08 2011 Fedora Release Engineering - 1.1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Sep 10 2010 James Antill 1.1.4-3 +- Handle rpms that are over 2GB, in the .xml to .sqlite conversion. +- Resolves: bz#612409 + +* Thu Jul 22 2010 David Malcolm - 1.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Thu Jan 7 2010 Seth Vidal - 1.1.4-1 +- update to upstream 1.1.4 - which is really just all of these patches rolled into a release + +* Tue Aug 18 2009 Seth Vidal - 1.1.2-14 +- apply latest patches from upstream - consolidate into one big patch +- test before a 1.1.3 from upstream + +* Mon Jul 27 2009 Fedora Release Engineering - 1.1.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.1.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams 1.1.2-11 +- Rebuild for Python 2.6 + +* Tue Oct 14 2008 James Antill 1.1.2-10 +- Add delay indexes and no updates patches from upstream. +- Resolves: bug 465898 + +* Thu Feb 14 2008 Seth Vidal 1.1.2-8 +- bump for gcc + +* Fri Jan 25 2008 Seth Vidal 1.1.2-7 +- apply exclusive lock patch + +* Thu Jan 24 2008 Seth Vidal 1.1.2-6 +- add explicit dep on glib2 > 2.15 + +* Tue Jan 22 2008 Seth Vidal 1.1.2-5 +- rebuild + +* Tue Jan 08 2008 James Bowes 1.1.2-4 +- egg-info is under the arch specific dir + +* Tue Jan 08 2008 James Bowes 1.1.2-3 +- Include the egg-info dir. + +* Tue Nov 27 2007 Paul Nasrat 1.1.2-2 +- Fix segmentation fault with no pkgId + +* Fri Aug 24 2007 Seth Vidal 1.1.2-1 +- 1.1.2-1 +- hopefully fixes the mash issues + +* Tue Jul 10 2007 James Bowes +- Use the 4 argument form of defattr + +* Mon Jul 9 2007 Jeremy Katz +- conflict with yum < 3.2.0 (#247451) + +* Tue May 15 2007 Jeremy Katz - 1.1.0-2 +- export dbversion so that things like createrepo can discover it (#239938) + +* Fri Apr 27 2007 Jeremy Katz - 1.1.0-1 +- update to 1.1.0 for new sqlite db schema + +* Wed Apr 4 2007 Jeremy Katz - 1.0.4-1 +- update to 1.0.4 + +* Tue Feb 13 2007 James Bowes - 1.0.3-2 +- Spec file updates from the merge review: clean the buildroot. + +* Mon Jan 8 2007 Jeremy Katz - 1.0.3-1 +- update to 1.0.3 + +* Wed Dec 6 2006 Jeremy Katz - 1.0-9 +- rebuild for python 2.5, support new sqlite + +* Wed Sep 27 2006 Jeremy Katz - 1.0-8 +- fix dep loop + +* Wed Jul 12 2006 Jesse Keating +- rebuild + +* Thu Jun 15 2006 Paul Nasrat - 1.0-7 +- add patch to correct population of packages.location_base + +* Wed Jun 14 2006 Paul Nasrat - 1.0-6 +- add patch to correct table order of primary:files + +* Tue Jun 13 2006 Jeremy Katz - 1.0-5 +- add patch to be quieter so that we don't break tree composes + +* Mon Jun 12 2006 Jeremy Katz - 1.0-4 +- urls, build into fedora + +* Mon Jun 05 2006 Tambet Ingo - 1.0-3 +- Require yum >= 2.6.2 + +* Sat Jun 04 2006 Terje Rosten - 1.0-2 +- add buildrequires +- doc files +- url + +* Fri Jun 02 2006 Terje Rosten - 1.0-0.1 +- initial package +