71da59
%global libmodulemd_version 2.3.0
4be1c8
%{!?_licensedir:%global license %%doc}
20460e
%define __cmake_in_source_build 1
4be1c8
4be1c8
%global bash_completion %{_datadir}/bash-completion/completions/*
4be1c8
20460e
%if 0%{?rhel} && ( 0%{?rhel} <= 7 || 0%{?rhel} >= 9 )
4be1c8
%bcond_with drpm
4be1c8
%else
4be1c8
%bcond_without drpm
4be1c8
%endif
4be1c8
3cbb20
%if 0%{?rhel}
71da59
%bcond_with zchunk
71da59
%else
71da59
%bcond_without zchunk
71da59
%endif
71da59
3cbb20
%if 0%{?rhel} && 0%{?rhel} < 8
71da59
%bcond_with libmodulemd
71da59
%else
71da59
%bcond_without libmodulemd
71da59
%endif
71da59
3cbb20
%if 0%{?rhel} && 0%{?rhel} <= 8
3cbb20
%bcond_without legacy_hashes
3cbb20
%else
3cbb20
%bcond_with legacy_hashes
3cbb20
%endif
3cbb20
4be1c8
Summary:        Creates a common metadata repository
4be1c8
Name:           createrepo_c
3cbb20
Version:        0.17.7
152ca6
Release:        6%{?dist}
4be1c8
License:        GPLv2+
4be1c8
URL:            https://github.com/rpm-software-management/createrepo_c
4be1c8
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
3cbb20
Patch1:         0001-Preserve-changed-API-for-cr_compress_file_with_stat-RhBug1973588.patch
3cbb20
Patch2:         0002-Default---keep-all-metadata-to-TRUE-and-add---discard-additional-metadata.patch
3cbb20
Patch3:         0003-Revert-added-API-for-parsing-main-metadata-together-RhBug2062299.patch
4be1c8
4be1c8
BuildRequires:  cmake
4be1c8
BuildRequires:  gcc
4be1c8
BuildRequires:  bzip2-devel
4be1c8
BuildRequires:  doxygen
4be1c8
BuildRequires:  file-devel
4be1c8
BuildRequires:  glib2-devel >= 2.22.0
4be1c8
BuildRequires:  libcurl-devel
4be1c8
BuildRequires:  libxml2-devel
4be1c8
BuildRequires:  openssl-devel
4be1c8
BuildRequires:  rpm-devel >= 4.8.0-28
4be1c8
BuildRequires:  sqlite-devel
20460e
BuildRequires:  xz
4be1c8
BuildRequires:  xz-devel
4be1c8
BuildRequires:  zlib-devel
71da59
%if %{with zchunk}
71da59
BuildRequires:  pkgconfig(zck) >= 0.9.11
71da59
BuildRequires:  zchunk
71da59
%endif
71da59
%if %{with libmodulemd}
71da59
BuildRequires:  pkgconfig(modulemd-2.0) >= %{libmodulemd_version}
71da59
BuildRequires:  libmodulemd
71da59
Requires:       libmodulemd%{?_isa} >= %{libmodulemd_version}
71da59
%endif
4be1c8
Requires:       %{name}-libs =  %{version}-%{release}
4be1c8
BuildRequires:  bash-completion
4be1c8
Requires: rpm >= 4.9.0
4be1c8
%if %{with drpm}
71da59
BuildRequires:  drpm-devel >= 0.4.0
4be1c8
%endif
71da59
71da59
%if 0%{?fedora} || 0%{?rhel} > 7
4be1c8
Obsoletes:      createrepo < 0.11.0
4be1c8
Provides:       createrepo = %{version}-%{release}
71da59
%endif
4be1c8
4be1c8
%description
4be1c8
C implementation of Createrepo.
4be1c8
A set of utilities (createrepo_c, mergerepo_c, modifyrepo_c)
4be1c8
for generating a common metadata repository from a directory of
4be1c8
rpm packages and maintaining it.
4be1c8
4be1c8
%package libs
4be1c8
Summary:    Library for repodata manipulation
4be1c8
4be1c8
%description libs
4be1c8
Libraries for applications using the createrepo_c library
4be1c8
for easy manipulation with a repodata.
4be1c8
4be1c8
%package devel
4be1c8
Summary:    Library for repodata manipulation
4be1c8
Requires:   %{name}-libs%{?_isa} = %{version}-%{release}
4be1c8
4be1c8
%description devel
4be1c8
This package contains the createrepo_c C library and header files.
4be1c8
These development files are for easy manipulation with a repodata.
4be1c8
4be1c8
%package -n python3-%{name}
4be1c8
Summary:        Python 3 bindings for the createrepo_c library
4be1c8
%{?python_provide:%python_provide python3-%{name}}
4be1c8
BuildRequires:  python3-devel
4be1c8
BuildRequires:  python3-sphinx
4be1c8
Requires:       %{name}-libs = %{version}-%{release}
4be1c8
4be1c8
%description -n python3-%{name}
4be1c8
Python 3 bindings for the createrepo_c library.
4be1c8
4be1c8
%prep
4be1c8
%autosetup -p1
4be1c8
4be1c8
mkdir build-py3
4be1c8
4be1c8
%build
4be1c8
# Build createrepo_c with Pyhon 3
4be1c8
pushd build-py3
20460e
  %cmake .. \
20460e
      -DWITH_ZCHUNK=%{?with_zchunk:ON}%{!?with_zchunk:OFF} \
20460e
      -DWITH_LIBMODULEMD=%{?with_libmodulemd:ON}%{!?with_libmodulemd:OFF} \
3cbb20
      -DWITH_LEGACY_HASHES=%{?with_legacy_hashes:ON}%{!?with_legacy_hashes:OFF} \
20460e
      -DENABLE_DRPM=%{?with_drpm:ON}%{!?with_drpm:OFF}
4be1c8
  make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
4be1c8
  # Build C documentation
4be1c8
  make doc-c
4be1c8
popd
4be1c8
4be1c8
%check
4be1c8
# Run Python 3 tests
4be1c8
pushd build-py3
4be1c8
  # Compile C tests
4be1c8
  make tests
4be1c8
4be1c8
  # Run Python 3 tests
4be1c8
  make ARGS="-V" test
4be1c8
popd
4be1c8
4be1c8
%install
4be1c8
pushd build-py3
4be1c8
  # Install createrepo_c with Python 3
4be1c8
  make install DESTDIR=%{buildroot}
4be1c8
popd
4be1c8
71da59
%if 0%{?fedora} || 0%{?rhel} > 7
4be1c8
ln -sr %{buildroot}%{_bindir}/createrepo_c %{buildroot}%{_bindir}/createrepo
4be1c8
ln -sr %{buildroot}%{_bindir}/mergerepo_c %{buildroot}%{_bindir}/mergerepo
4be1c8
ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
71da59
%endif
4be1c8
71da59
%if 0%{?rhel} && 0%{?rhel} <= 7
71da59
%post libs -p /sbin/ldconfig
71da59
%postun libs -p /sbin/ldconfig
71da59
%else
4be1c8
%ldconfig_scriptlets libs
71da59
%endif
4be1c8
4be1c8
%files
4be1c8
%doc README.md
4be1c8
%{_mandir}/man8/createrepo_c.8*
4be1c8
%{_mandir}/man8/mergerepo_c.8*
4be1c8
%{_mandir}/man8/modifyrepo_c.8*
4be1c8
%{_mandir}/man8/sqliterepo_c.8*
4be1c8
%{bash_completion}
4be1c8
%{_bindir}/createrepo_c
4be1c8
%{_bindir}/mergerepo_c
4be1c8
%{_bindir}/modifyrepo_c
71da59
%{_bindir}/sqliterepo_c
71da59
71da59
%if 0%{?fedora} || 0%{?rhel} > 7
4be1c8
%{_bindir}/createrepo
4be1c8
%{_bindir}/mergerepo
4be1c8
%{_bindir}/modifyrepo
71da59
%endif
4be1c8
4be1c8
%files libs
4be1c8
%license COPYING
4be1c8
%{_libdir}/lib%{name}.so.*
4be1c8
4be1c8
%files devel
4be1c8
%doc build-py3/doc/html
4be1c8
%{_libdir}/lib%{name}.so
4be1c8
%{_libdir}/pkgconfig/%{name}.pc
4be1c8
%{_includedir}/%{name}/
4be1c8
4be1c8
%files -n python3-%{name}
4be1c8
%{python3_sitearch}/%{name}/
71da59
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
4be1c8
4be1c8
%changelog
152ca6
* Wed May 11 2022 Lukas Hrazky <lhrazky@redhat.com> - 0.17.7-6
152ca6
- Revert addition of new API for parsing main metadata together (RhBug:2062767)
3cbb20
3cbb20
* Wed Feb 16 2022 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.7-4
3cbb20
- Switch default of --keep-all-metadata to TRUE and add --discard-additional-metadata (RhBug:1992209)
3cbb20
3cbb20
* Mon Nov 29 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.7-3
3cbb20
- Fix memory leak of `tmp_err` (RhBug:2005781)
3cbb20
3cbb20
* Mon Nov 15 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.7-2
3cbb20
- Build with legacy hashes (RhBug:2022271)
3cbb20
3cbb20
* Tue Nov 09 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.7-1
3cbb20
- Update to 0.17.7
3cbb20
- Remove insecure hashes SHA-1 and MD5 from the default build (RhBug:1935486)
3cbb20
- Fix error when updating repo with removed modules metadata
3cbb20
- Exit with status code 1 when loading of repo's metadata fails
3cbb20
- Fix memory leaks (RhBug:1998426)
3cbb20
- Fix valgrind warnings caused by subprocess calls
3cbb20
20460e
* Wed Sep 15 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.2-3
20460e
- Preserve changed API for cr_compress_file_with_stat (RhBug:1973588)
20460e
20460e
* Tue Jul 27 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.2-2
20460e
- Fix: cr_compress_file_with_stat: Memory leak
20460e
20460e
* Wed Apr 28 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 0.17.2-1
20460e
- Update to 0.17.2
20460e
- Fix Python deprecation (PY_SSIZE_T_CLEAN) (RhBug:1891785)
20460e
- Revert back to old c API for destination file of cr_compress_file_with_stat and cr_compress_file to prevent a memory leak
20460e
- Disable drpm for RHEL >= 9 (RhBug:1914828)
20460e
- Setting updated/issued_date to None doesn't produce garbage values (RhBug:1921715)
20460e
- Allow taking __repr__ (__str__) of closed xmlfile and sqlite (RhBug:1913465)
20460e
fa515f
* Fri Jan 29 2021 Nicola Sella <nsella@redhat.com> - 0.16.2-2
fa515f
- Never leave behind .repodata lock on exit (RhBug:1906831)
fa515f
fa515f
* Mon Nov 09 2020 Nicola Sella <nsella@redhat.com> - 0.16.2-1
fa515f
- Update to 0.16.2
fa515f
- Add module metadata support to createrepo_c (RhBug:1795936)
fa515f
- Fix various memory leaks
fa515f
a903fe
* Thu Jul 30 2020 Ales Matej <amatej@redhat.com> - 0.15.11-2
a903fe
- Parse xml snippet in smaller parts (RhBug:1859689)
a903fe
a903fe
* Wed Apr 29 2020 Ales Matej <amatej@redhat.com> - 0.15.11-1
a903fe
- Update to 0.15.11
a903fe
- Add --arch-expand option
a903fe
- Fix various memory leaks
a903fe
a903fe
* Wed Apr 29 2020 Ales Matej <amatej@redhat.com> - 0.15.10-1
a903fe
- Update to 0.15.10
a903fe
- New option --recycle-pkglist for --update mode
a903fe
- Add restart_suggested field to updatecollectionpackage in updateinfo.xml
a903fe
- Add relogin_suggested field to updatecollectionpackage in updateinfo.xml (Rhbug:1779751)
a903fe
- Export all changelog entries to other.xml in compatibility mode
a903fe
- Enhance error handling when locating repositories (RhBug:1762697)
a903fe
- Clean up temporary .repodata on sigint
a903fe
- Support issued date in epoch format set by Python API (RhBug:1779751)
a903fe
- Allow parsing of xml repodata from string via new API functions (RhBug:1804308)
a903fe
- Fix a bug when setting updateCollectionModule (RhBug:1821781)
a903fe
a903fe
* Tue Mar 24 2020 Stephen Gallagher <sgallagh@redhat.com> - 0.15.1-3
a903fe
- Fix incorrect conditional causing libmodulemd support to be disabled (RhBug:1816753)
a903fe
71da59
* Mon Jan 13 2020 Ales Matej <amatej@redhat.com> - 0.15.1-2
71da59
- Add reboot_suggested to UpdateRecord (RhBug:1772466)
71da59
- Explicitly output boolean values for updateinfo.xml (RhBug:1772466)
71da59
- Fix modifyrepo_c with modules.yaml as a symbolic link (RhBug:1776399)
71da59
71da59
* Tue Oct 22 2019 Ales Matej <amatej@redhat.com> - 0.15.1-1
71da59
- Update to 0.15.1
71da59
- Allow pip to see installation of python3-createrepo_c
71da59
- Imporove documentation
71da59
- Remove dependency on deltarpm in favour of drpm
71da59
- Obsolete createrepo on all Fedoras again (RhBug:1702771)
71da59
- Fix issue with createrepo_c hanging at the end (RhBug:1714666)
71da59
- Don't include packages with forbidden control chars in repodata
71da59
- Depend on the appropriate minimum version of libmodulemd
71da59
- Add --pkgorigins mode for Koji
71da59
- Prevent exiting with 0 if errors occur while finalizing repodata.
71da59
- Add support for reading and merging module metadata
71da59
- Update --keep-all-metadata to keep all additional metadata, not just updateinfo and groupfile (RhBug:1639287)
71da59
- mergerepo_c: Add support for --koji simple mode
71da59
- Fix generating corrupted sqlite files (RhBug: 1696808)
71da59
- Do not obsolete createrepo on Fedora < 31
71da59
- mergerepo_c: check if nevra is NULL and warn user about src.rpm naming
71da59
- Include file timestamp in repomd.xml to allow reproducing exact metadata as produced in the past
71da59
- Enhance support of zchunk
71da59
- Support of zchunk
71da59
- [spec] Fix ldconfig for rhel <= 7
71da59
- Fix "CR_DELTA_RPM_SUPPORT" redefined warnings
71da59
- Set to build against Python 3 by default
71da59
- Update README
71da59
- Add mergerepo_c --repo-prefix-search and --repo-prefix-replace.
71da59
- Fix missing packages in mergerepo_c in case multiple VR exists for single pkg in repo.
71da59
6cec19
* Thu Aug 08 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 0.11.0-3
6cec19
- Backport patch to switch off timestamps on documentation in order to remove
6cec19
  file conflicts (RhBug:1738788)
6cec19
6cec19
* Mon Jul 22 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 0.11.0-2
6cec19
- Consistently produce valid URLs by prepending protocol. (RhBug:1632121)
6cec19
- modifyrepo_c: Prevent doubling of compression (test.gz.gz) (RhBug:1639287)
6cec19
- Correct pkg count in headers if there were invalid pkgs (RhBug:1596211)
6cec19
- Add support for modular errata (RhBug:1656584)
6cec19
4be1c8
* Wed Jun 27 2018 Marek Blaha <mblaha@redhat.com> - 0.11.0-1
4be1c8
- Update to 0.11.0
4be1c8
4be1c8
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-21
4be1c8
- Rebuilt for Python 3.7
4be1c8
4be1c8
* Wed May 16 2018 Jaroslav Mracek <jmracek@redhat.com> - 0.10.0-20
4be1c8
- Obsolete and provide createrepo
4be1c8
4be1c8
* Fri Mar 16 2018 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-19
4be1c8
- Conditionalize the Python 2 subpackage
4be1c8
- Don't build the Python 2 subpackage on EL > 7
4be1c8
4be1c8
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.10.0-18
4be1c8
- Update Python 2 dependency declarations to new packaging standards
4be1c8
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
4be1c8
4be1c8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-17
4be1c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4be1c8
4be1c8
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.10.0-16
4be1c8
- Switch to %%ldconfig_scriptlets
4be1c8
4be1c8
* Fri Dec 22 2017 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.10.0-15
4be1c8
- Backport PR#64 and #66
4be1c8
4be1c8
* Fri Aug 11 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.10.0-14
4be1c8
- Rebuilt after RPM update (№ 3)
4be1c8
4be1c8
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.10.0-13
4be1c8
- Rebuilt for RPM soname bump
4be1c8
4be1c8
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.10.0-12
4be1c8
- Rebuilt for RPM soname bump
4be1c8
4be1c8
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-11
4be1c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4be1c8
4be1c8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-10
4be1c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4be1c8
4be1c8
* Mon Feb 13 2017 Pavel Raiskup <praiskup@redhat.com> - 0.10.0-9
4be1c8
- backport patches for double-free in --ignore-lock (rhbz#1355720)
4be1c8
4be1c8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-8
4be1c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4be1c8
4be1c8
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.10.0-7
4be1c8
- Rebuild for Python 3.6
4be1c8
4be1c8
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-6
4be1c8
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
4be1c8
4be1c8
* Tue Apr 12 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.10.0-5
4be1c8
- Make drpm builds conditional
4be1c8
4be1c8
* Sun Apr 10 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.10.0-4
4be1c8
- Don't own python3_sitearch dir in python3 subpkg
4be1c8
- Use %%license macro
4be1c8
- Follow modern packaging guidelines
4be1c8
- Cleanups in spec file
4be1c8
- Follow packaging guidelines about SourceURL
4be1c8
- Fix license
4be1c8
4be1c8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-3
4be1c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4be1c8
4be1c8
* Fri Jan 8 2016 Orion Poplawski <orion@cora.nwra.com> - 0.10.0-2
4be1c8
- Remove comments causing trouble with post/postun scriptlets
4be1c8
4be1c8
* Tue Jan   5 2016 Tomas Mlcoch <tmlcoch at redhat.com> - 0.10.0-1
4be1c8
- Python 3 support (made by Ralph Bean)
4be1c8
- Modify gen_rst.py to indicate --sqliterepo is an option too (Neal Gompa)
4be1c8
- Do not compress manpages at generation time (Neal Gompa)
4be1c8
4be1c8
* Tue Oct  20 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 0.9.1-1
4be1c8
- Fix double free during parsing broken XML metadata (Issue #33)
4be1c8
- Tests: Add acceptance test for --general-compress-type option
4be1c8
- Fix 'CR_CW_UNKNOWN_COMPRESSION cannot be used' error
4be1c8
- Refactoring: Fix compiler warnings
4be1c8
- Add --general-compress-type option (RhBug 1253850)
4be1c8
- Enable drpm support when drpm library is detected on system (RhBug: 1261031) (Issue #37)
4be1c8
- fix traceback on non-complete datetime information (Jarek Polok)
4be1c8
- parsehdr: Skip broken dependency with bad (non-numerical) epoch and print warning about that
4be1c8
  (https://lists.fedoraproject.org/pipermail/devel/2015-August/213882.html)
4be1c8
- misc: cr_str_to_evr(): Return NULL instead of "0" for bad (non-numerical) epoch
4be1c8
- updateinfo: Fix a typo in the package release attribute (Luke Macken)
4be1c8
- CMake: Don't require CXX compiler
4be1c8
- Tests for different checksum type for RPMs and repodata files (#31)
4be1c8
- Support different checksum type for RPMs and repodata files (#31)
4be1c8
4be1c8
* Tue Jul   7 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 0.9.0-2
4be1c8
- Add drpm as a BuildRequire
4be1c8
4be1c8
* Thu May  28 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 0.9.0-1
4be1c8
- mergerepo_c: Prepend protocol (file://) for URLs in pkgorigins (if --koji is used)
4be1c8
- Update bash completion
4be1c8
- doc: Update manpages
4be1c8
- mergerepo: Fix NVR merging method
4be1c8
- mergerepo: Fix behavior of --all param
4be1c8
- createrepo: Add --cut-dirs and --location-prefix options
4be1c8
- misc: Add cr_cut_dirs()
4be1c8
- mergerepo: Use better version comparison algorithm
4be1c8
- utils: Port cr_cmp_version_str() to rpm's algorithm (rpmvercmp)
4be1c8
- misc: Rename elements in cr_Version structure
4be1c8
- mergerepo: Fix version-release comparison for packages when --all is used
4be1c8
- mergerepo: Show warnings if some groupfile cannot be automatically used
4be1c8
- mergerepo: Exit with error code when a groupfile cannot be copied
4be1c8
4be1c8
* Fri May  15 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 0.8.3-1
4be1c8
- mergerepo: Do not prepend file:// if protocol is already specified
4be1c8
4be1c8
* Thu May  14 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 0.8.2-1
4be1c8
- doc: Add man pages for sqliterepo and update manpages for other tools
4be1c8
- mergerepo: Work only with noarch packages if --koji is used and
4be1c8
  no archlist is specified
4be1c8
- mergerepo: Use file:// protocol in local baseurl
4be1c8
- mergerepo: Do not include baseurl for first repo if --koji is specified (RhBug: 1220082)
4be1c8
- mergerepo_c: Support multilib arch for --koji repos
4be1c8
- mergerepo_c: Refactoring
4be1c8
- Print debug message with version in each tool when --verbose is used
4be1c8
- modifyrepo: Don't override file with itself (RhBug: 1215229)
4be1c8
4be1c8
* Wed May   6 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 0.8.1-1
4be1c8
- Fix bash completion for RHEL 6
4be1c8
4be1c8
* Tue May   5 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 0.8.0-1
4be1c8
- New tool Sqliterepo_c - It generates sqlite databases into repos
4be1c8
  where the sqlite is missing.
4be1c8
- Internal refactoring and code cleanup
4be1c8
4be1c8
* Fri Feb  20 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.7-1
4be1c8
- Proper directory for temporary files when --local-sqlite is used (Issue #12)
4be1c8
- Bring bash completion install dir and filenames up to date with current bash-completion
4be1c8
4be1c8
* Thu Jan   8 2015 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.6-1
4be1c8
- Python: Add __contains__ method to Repomd() class
4be1c8
4be1c8
* Sun Dec  28 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.5-1
4be1c8
- Python repomd: Support for iteration and indexing by type - e.g. record = repomd['primary']
4be1c8
- Show warning if an XML parser probably parsed a bad type of medata (New XML parser warning type CR_XML_WARNING_BADMDTYPE)
4be1c8
- drpm library: Explicitly try to locate libdrpm.so.0
4be1c8
- deltarpms: Don't show options for delta rpms if support is not available
4be1c8
4be1c8
* Tue Nov  11 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.4-1
4be1c8
- createrepo_c, mergerepo_c: Follow redirs by default while downloading remote repos
4be1c8
- mergerepo_c: Fix segfault when a package without sourcerpm is part of metadata and --koji option is used
4be1c8
4be1c8
* Mon Nov  10 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.3-1
4be1c8
- xml_parser: Add file path into error messages
4be1c8
- Refactor: Replace g_error() with g_critical() (RhBug: 1162102)
4be1c8
4be1c8
* Thu Nov  06 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.2-1
4be1c8
- createrepo_c: New option --local-sqlite
4be1c8
4be1c8
* Fri Oct  31 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.1-1
4be1c8
- Mergerepo: Fix mergerepo
4be1c8
- Mergerepo: Add some debugging of metadata read.
4be1c8
4be1c8
* Mon Oct  20 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.0-1
4be1c8
- deltarpms: Update module to work with current version of drpm
4be1c8
- mergerepo_c: Add --omit-baseurl option
4be1c8
- craterepo_c: Gen empty repo if empty pkglist is used
4be1c8
- Docs: Output python docs to separate directory
4be1c8
- Several small fixes
4be1c8
4be1c8
* Tue Aug  12 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.6.1-1
4be1c8
- updateinfo: Use Python datetime objects in python bindings
4be1c8
4be1c8
* Tue Aug   5 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.6.0-1
4be1c8
- Support for updateinfo.xml manipulation (including Python bindings)
4be1c8
4be1c8
* Fri Jul  18 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.5.0-1
4be1c8
- Experimental delta rpm (DRPM) support (Disabled in Fedora build).
4be1c8
4be1c8
* Thu Jun  26 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.4.1-1
4be1c8
- Initialize threads correctly on old versions of GLib2 (RhBug: 1108787)
4be1c8
- Do not print log domain (get rid off C_CREATEREPOLIB prefix in log messages)
4be1c8
- Implements support for --cachedir
4be1c8
- New option --retain-old-md-by-age
4be1c8
- Few small API changes
4be1c8
4be1c8
* Tue May   6 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.4.0-1
4be1c8
- Change default behavior of repodata files handling. (RhBug: 1094539)
4be1c8
  See: https://github.com/Tojaj/createrepo_c/wiki/New-File-Handling
4be1c8
  By default, createrepo leaves old groupfiles (comps files)
4be1c8
  in the repodata/ directory during update.
4be1c8
  Createrepo_c did the same thing but the version 0.4.0 changes this behaviour.
4be1c8
4be1c8
* Thu Apr  10 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.3.1-2
4be1c8
- Support for weak and rich dependecies
4be1c8
4be1c8
* Mon Mar  10 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.3.0-1
4be1c8
- Relevant only for developers using createrepo_c library: New approach for
4be1c8
  metadata loading in case of internal high-level parser functions (see commit
4be1c8
  messages for more information: d6ed327595, 0b0e75203e, ad1e8450f5)
4be1c8
- Support for changelog limit value == -1 (include all changelogs)
4be1c8
- Update debug compilation flags
4be1c8
- Update man pages (Add synompsis with usage)
4be1c8
- Update usage examples in help
4be1c8
4be1c8
* Thu Feb  20 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.2-1
4be1c8
- Temporary remove deltarepo subpackages
4be1c8
- cmake: Do not install deltarepo stuff yet
4be1c8
- helper: Removed cr_remove_metadata() and cr_get_list_of_md_locations()
4be1c8
- Add module helpers
4be1c8
- Sanitize strings before writting them to XML or sqlitedb (ISSUE #3)
4be1c8
4be1c8
* Mon Jan  27 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.1-3
4be1c8
- New expert option: --ignore-lock
4be1c8
4be1c8
* Mon Jan  20 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.1-2
4be1c8
- More effort to avoid residual .repodata/ directory on error
4be1c8
- Add deltarepo and python-deltarepo subpackages
4be1c8
- Add modifyrepo_c
4be1c8
- Add documentation for python bindings
4be1c8
- Refactored code & a lot of little bug fixes
4be1c8
4be1c8
* Wed Aug  14 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.1-1
4be1c8
- checksum: Set SHA to be the same as SHA1 (For compatibility with original
4be1c8
  Createrepo)
4be1c8
4be1c8
* Mon Aug   5 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.0-1
4be1c8
- Speedup (More parallelization)
4be1c8
- Changed C API
4be1c8
- Add python bindings
4be1c8
- A lot of bugfixes
4be1c8
- Add new make targets: tests (make tests - builds c tests) and test
4be1c8
  (make test - runs c and python test suits).
4be1c8
- Changed interface of most of C modules - Better error reporting
4be1c8
  (Add GError ** param).
4be1c8
- Experimental Python bindings (Beware: The interface is not final yet!).
4be1c8
- package: Add cr_package_copy method.
4be1c8
- sqlite: Do not recreate tables and triggers while opening existing db.
4be1c8
- mergerepo_c: Implicitly use --all with --koji.
4be1c8
- Man page update.
4be1c8
4be1c8
* Thu Apr  11 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.17-3
4be1c8
- mergerepo_c: Add --simple-md-filenames and --unique-md-filenames
4be1c8
options. (RhBug: 950994)
4be1c8
- mergerepo_c: Always include noarch while mimic koji
4be1c8
mergerepos. (RhBug: 950991)
4be1c8
- Rename cr_package_parser_shutdown to cr_package_parser_cleanup()
4be1c8
- cr_db_info_update is now safe from sqlinjection.
4be1c8
4be1c8
* Mon Mar  25 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.17-1
4be1c8
- Fix double free() when old metadata parsing failed. (related to RhBug: 920795)
4be1c8
- Convert all strings to UTF-8 while dumping XML. (related RhBug: 920795)
4be1c8
4be1c8
* Mon Mar  11 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.16-2
4be1c8
- Remove creation of own empty rpm keyring for a transaction set.
4be1c8
This is not necessary since rpm-4.8.0-28 (rpm commit
4be1c8
cad147070e5513312d851f44998012e8f0cdf1e3). Moreover, own rpm keyring
4be1c8
causes a race condition in threads (causing double free()) which use
4be1c8
rpmReadPackageFile() called from cr_package_from_rpm().
4be1c8
4be1c8
* Thu Mar  07 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.16-1
4be1c8
- Fix usage of rpm keyring (RhBug:918645)
4be1c8
- More generic interface of repomd module
4be1c8
- Code refactoring
4be1c8
- Add some usage examples into the doxygen documentation and .h files
4be1c8
- Rename version constants in version.h
4be1c8
- New function cr_package_nevra (returns package nevra string)
4be1c8
4be1c8
* Mon Feb  11 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.15-1
4be1c8
- Fix bug in final move from .repodata/ -> repodata/
4be1c8
- Fix warnings from RPM library. RPM library is thread-unsafe. This
4be1c8
includes also reading headers. Use of empty keyring for rpm transaction
4be1c8
should work around the problem.
4be1c8
4be1c8
* Tue Nov  27 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.14-1
4be1c8
- Fix filelists database generation (use '.' instead of '' for current dir)
4be1c8
4be1c8
* Tue Nov  20 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.13-1
4be1c8
- Fix race-condition during task buffering in createrepo_c
4be1c8
4be1c8
* Tue Nov  20 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.12-2
4be1c8
- Fix removing old repomd.xml while --update
4be1c8
4be1c8
* Thu Nov  15 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.12-1
4be1c8
- Fix bug in sqlite filelists database
4be1c8
- Fix memory leak
4be1c8
4be1c8
* Fri Nov  09 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.11-1
4be1c8
- Deterministic output! Packages in output repodata are now sorted
4be1c8
by ASCII value
4be1c8
- Support for Koji mergerepos behaviour in mergerepo_c
4be1c8
(new --koji, --groupfile and --blocked params)
4be1c8
- Better atomicity while finall move .repodata/ -> repodata/
4be1c8
- Repomd module supports pkgorigins record
4be1c8
- Some new functions in misc module
4be1c8
- Small changes in library interface
4be1c8
4be1c8
* Wed Oct  03 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.10-1
4be1c8
- Another memory usage optimalization
4be1c8
4be1c8
* Mon Sep  03 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.9-1
4be1c8
- Some changes in library interface
4be1c8
- Memory usage optimalization
4be1c8
- Fix a segfault and a race condition
4be1c8
- New cmd options: --read-pkgs-list and --retain-old-md param
4be1c8
- Few other bugfixes
4be1c8
4be1c8
* Wed Aug  15 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.8-1
4be1c8
- New interface of repomd module
4be1c8
- New cmd options: --repo --revision --distro --content --basedir
4be1c8
- New createrepo_c specific cmd option --keep-all-metadata
4be1c8
- Few bugfixes
4be1c8
4be1c8
* Thu Jul  26 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.7-1
4be1c8
- SQLite support
4be1c8
- Bash completion
4be1c8
- createrepo_c support for --compress-type param
4be1c8
- Improved logging
4be1c8
- Subpackages -devel and -libsi
4be1c8
- Relicensed to GPLv2
4be1c8
- Doxygen documentation in devel package
4be1c8
- README update
4be1c8
4be1c8
* Mon Jun  11 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.5-1
4be1c8
- Support for .xz compression
4be1c8
- Unversioned .so excluded from installation
4be1c8
4be1c8
* Mon Jun   4 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.4-1
4be1c8
- New mergerepo params: --all, --noarch-repo and --method
4be1c8
- Fix segfault when more than one --excludes param used
4be1c8
4be1c8
* Mon May  28 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.3-1
4be1c8
- Set RelWithDebInfo as default cmake build type
4be1c8
4be1c8
* Wed May  23 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.2-1
4be1c8
- Add version.h header file
4be1c8
4be1c8
* Wed May  23 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.1-1
4be1c8
- Add license
4be1c8
4be1c8
* Wed May  9 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.0-1
4be1c8
- First public release