Blame SPECS/createrepo_c.spec

a1549a
%global libmodulemd_version 2.3.0
4be1c8
%{!?_licensedir:%global license %%doc}
4be1c8
4be1c8
# Bash completion (we need different approach for RHEL-6)
4be1c8
%if 0%{?rhel} == 6
4be1c8
%global bash_completion %config%{_sysconfdir}/bash_completion.d/createrepo_c.bash
4be1c8
%else
4be1c8
%global bash_completion %{_datadir}/bash-completion/completions/*
4be1c8
%endif
4be1c8
4be1c8
%if 0%{?rhel} && 0%{?rhel} <= 7
4be1c8
%bcond_with python3
4be1c8
%bcond_with drpm
4be1c8
%else
4be1c8
%bcond_without python3
4be1c8
%bcond_without drpm
4be1c8
%endif
4be1c8
a1549a
%if 0%{?fedora} > 29 || 0%{?rhel} > 7
4be1c8
%bcond_with python2
4be1c8
%else
4be1c8
%bcond_without python2
4be1c8
%endif
4be1c8
52f0c6
%if 0%{?rhel} || (0%{?fedora} && 0%{?fedora} < 29)
a1549a
%bcond_with zchunk
a1549a
%else
a1549a
%bcond_without zchunk
a1549a
%endif
a1549a
52f0c6
%if 0%{?rhel} < 8 || (0%{?fedora} && 0%{?fedora} < 29)
a1549a
%bcond_with libmodulemd
a1549a
%else
a1549a
%bcond_without libmodulemd
a1549a
%endif
a1549a
4be1c8
Summary:        Creates a common metadata repository
4be1c8
Name:           createrepo_c
52f0c6
Version:        0.15.10
52f0c6
Release:        1%{?dist}
4be1c8
License:        GPLv2+
4be1c8
URL:            https://github.com/rpm-software-management/createrepo_c
4be1c8
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
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
4be1c8
BuildRequires:  xz-devel
4be1c8
BuildRequires:  zlib-devel
a1549a
%if %{with zchunk}
a1549a
BuildRequires:  pkgconfig(zck) >= 0.9.11
a1549a
BuildRequires:  zchunk
a1549a
%endif
a1549a
%if %{with libmodulemd}
a1549a
BuildRequires:  pkgconfig(modulemd-2.0) >= %{libmodulemd_version}
a1549a
BuildRequires:  libmodulemd
a1549a
Requires:       libmodulemd%{?_isa} >= %{libmodulemd_version}
a1549a
%endif
4be1c8
Requires:       %{name}-libs =  %{version}-%{release}
4be1c8
%if 0%{?rhel} == 6
4be1c8
Requires: rpm >= 4.8.0-28
4be1c8
%else
4be1c8
BuildRequires:  bash-completion
4be1c8
Requires: rpm >= 4.9.0
4be1c8
%endif
4be1c8
%if %{with drpm}
a1549a
BuildRequires:  drpm-devel >= 0.4.0
4be1c8
%endif
a1549a
a1549a
%if 0%{?fedora} || 0%{?rhel} > 7
4be1c8
Obsoletes:      createrepo < 0.11.0
4be1c8
Provides:       createrepo = %{version}-%{release}
a1549a
%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
%if %{with python2}
4be1c8
%package -n python2-%{name}
4be1c8
Summary:        Python bindings for the createrepo_c library
4be1c8
%{?python_provide:%python_provide python2-%{name}}
4be1c8
BuildRequires:  python2-devel
4be1c8
BuildRequires:  python2-nose
a1549a
%if 0%{?rhel} && 0%{?rhel} <= 7
a1549a
BuildRequires:  python-sphinx
a1549a
%else
4be1c8
BuildRequires:  python2-sphinx
a1549a
%endif
4be1c8
Requires:       %{name}-libs = %{version}-%{release}
4be1c8
4be1c8
%description -n python2-%{name}
4be1c8
Python bindings for the createrepo_c library.
4be1c8
%endif
4be1c8
4be1c8
%if %{with python3}
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-nose
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
%endif
4be1c8
4be1c8
%prep
4be1c8
%autosetup -p1
4be1c8
%if %{with python2}
4be1c8
mkdir build-py2
4be1c8
%endif
4be1c8
4be1c8
%if %{with python3}
4be1c8
mkdir build-py3
4be1c8
%endif
4be1c8
4be1c8
%build
4be1c8
# Build createrepo_c with Python 2
4be1c8
%if %{with python2}
4be1c8
pushd build-py2
a1549a
  %cmake .. -DPYTHON_DESIRED:FILEPATH=%{__python2} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} %{!?with_libmodulemd:-DWITH_LIBMODULEMD=OFF}
4be1c8
  make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
4be1c8
  %if %{without python3}
4be1c8
  # Build C documentation
4be1c8
  make doc-c
4be1c8
  %endif
4be1c8
popd
4be1c8
%endif
4be1c8
4be1c8
# Build createrepo_c with Pyhon 3
4be1c8
%if %{with python3}
4be1c8
pushd build-py3
a1549a
  %cmake .. -DPYTHON_DESIRED:FILEPATH=%{__python3} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} %{!?with_libmodulemd:-DWITH_LIBMODULEMD=OFF}
4be1c8
  make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
4be1c8
  # Build C documentation
4be1c8
  make doc-c
4be1c8
popd
4be1c8
%endif
4be1c8
4be1c8
%check
4be1c8
%if %{with python2}
4be1c8
pushd build-py2
4be1c8
  %if %{without python3}
4be1c8
  # Compile C tests
4be1c8
  make tests
4be1c8
  %endif
4be1c8
4be1c8
  # Run Python 2 tests
4be1c8
  make ARGS="-V" test
4be1c8
popd
4be1c8
%endif
4be1c8
4be1c8
# Run Python 3 tests
4be1c8
%if %{with python3}
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
%endif
4be1c8
4be1c8
%install
4be1c8
%if %{with python2}
4be1c8
pushd build-py2
4be1c8
  # Install createrepo_c with Python 2
4be1c8
  make install DESTDIR=%{buildroot}
4be1c8
popd
4be1c8
%endif
4be1c8
4be1c8
%if %{with python3}
4be1c8
pushd build-py3
4be1c8
  # Install createrepo_c with Python 3
4be1c8
  make install DESTDIR=%{buildroot}
4be1c8
popd
4be1c8
%endif
4be1c8
a1549a
%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
a1549a
%endif
4be1c8
a1549a
%if 0%{?rhel} && 0%{?rhel} <= 7
a1549a
%post libs -p /sbin/ldconfig
a1549a
%postun libs -p /sbin/ldconfig
a1549a
%else
4be1c8
%ldconfig_scriptlets libs
a1549a
%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
a1549a
%{_bindir}/sqliterepo_c
a1549a
a1549a
%if 0%{?fedora} || 0%{?rhel} > 7
4be1c8
%{_bindir}/createrepo
4be1c8
%{_bindir}/mergerepo
4be1c8
%{_bindir}/modifyrepo
a1549a
%endif
4be1c8
4be1c8
%files libs
4be1c8
%license COPYING
4be1c8
%{_libdir}/lib%{name}.so.*
4be1c8
4be1c8
%files devel
4be1c8
%if %{with python3}
4be1c8
%doc build-py3/doc/html
4be1c8
%else
4be1c8
%doc build-py2/doc/html
4be1c8
%endif
4be1c8
%{_libdir}/lib%{name}.so
4be1c8
%{_libdir}/pkgconfig/%{name}.pc
4be1c8
%{_includedir}/%{name}/
4be1c8
4be1c8
%if %{with python2}
4be1c8
%files -n python2-%{name}
4be1c8
%{python2_sitearch}/%{name}/
a1549a
%{python2_sitearch}/%{name}-%{version}-py%{python2_version}.egg-info
4be1c8
%endif
4be1c8
4be1c8
%if %{with python3}
4be1c8
%files -n python3-%{name}
4be1c8
%{python3_sitearch}/%{name}/
a1549a
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
4be1c8
%endif
4be1c8
4be1c8
%changelog
52f0c6
* Wed Apr 29 2020 Ales Matej <amatej@redhat.com> - 0.15.10-1
52f0c6
- Update to 0.15.10
52f0c6
- New option --recycle-pkglist for --update mode
52f0c6
- Add restart_suggested field to updatecollectionpackage in updateinfo.xml
52f0c6
- Add relogin_suggested field to updatecollectionpackage in updateinfo.xml (Rhbug:1779751)
52f0c6
- Export all changelog entries to other.xml in compatibility mode
52f0c6
- Enhance error handling when locating repositories (RhBug:1762697)
52f0c6
- Clean up temporary .repodata on sigint
52f0c6
- Support issued date in epoch format set by Python API (RhBug:1779751)
52f0c6
- Allow parsing of xml repodata from string via new API functions (RhBug:1804308)
52f0c6
- Fix a bug when setting updateCollectionModule (RhBug:1821781)
52f0c6
52f0c6
* Tue Mar 24 2020 Stephen Gallagher <sgallagh@redhat.com> - 0.15.1-3
52f0c6
- Fix incorrect conditional causing libmodulemd support to be disabled (RhBug:1816753)
52f0c6
eb9c9f
* Mon Jan 13 2020 Ales Matej <amatej@redhat.com> - 0.15.1-2
eb9c9f
- Add reboot_suggested to UpdateRecord (RhBug:1772466)
eb9c9f
- Explicitly output boolean values for updateinfo.xml (RhBug:1772466)
eb9c9f
- Fix modifyrepo_c with modules.yaml as a symbolic link (RhBug:1776399)
eb9c9f
a1549a
* Tue Oct 22 2019 Ales Matej <amatej@redhat.com> - 0.15.1-1
a1549a
- Update to 0.15.1
a1549a
- Allow pip to see installation of python3-createrepo_c
a1549a
- Imporove documentation
a1549a
- Remove dependency on deltarpm in favour of drpm
a1549a
- Obsolete createrepo on all Fedoras again (RhBug:1702771)
a1549a
- Fix issue with createrepo_c hanging at the end (RhBug:1714666)
a1549a
- Don't include packages with forbidden control chars in repodata
a1549a
- Depend on the appropriate minimum version of libmodulemd
a1549a
- Add --pkgorigins mode for Koji
a1549a
- Prevent exiting with 0 if errors occur while finalizing repodata.
a1549a
- Add support for reading and merging module metadata
a1549a
- Update --keep-all-metadata to keep all additional metadata, not just updateinfo and groupfile (RhBug:1639287)
a1549a
- mergerepo_c: Add support for --koji simple mode
a1549a
- Fix generating corrupted sqlite files (RhBug: 1696808)
a1549a
- Do not obsolete createrepo on Fedora < 31
a1549a
- mergerepo_c: check if nevra is NULL and warn user about src.rpm naming
a1549a
- Include file timestamp in repomd.xml to allow reproducing exact metadata as produced in the past
a1549a
- Enhance support of zchunk
a1549a
- Support of zchunk
a1549a
- [spec] Fix ldconfig for rhel <= 7
a1549a
- Fix "CR_DELTA_RPM_SUPPORT" redefined warnings
a1549a
- Set to build against Python 3 by default
a1549a
- Update README
a1549a
- Add mergerepo_c --repo-prefix-search and --repo-prefix-replace.
a1549a
- Fix missing packages in mergerepo_c in case multiple VR exists for single pkg in repo.
a1549a
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