createrepo_c/createrepo_c.spec

304 lines
10 KiB
RPMSpec
Raw Normal View History

2014-11-06 13:39:07 +00:00
%global gitrev 92d9225
2013-08-05 08:00:32 +00:00
# gitrev is output of: git rev-parse --short HEAD
2012-06-13 07:27:37 +00:00
Summary: Creates a common metadata repository
Name: createrepo_c
2014-11-06 13:39:07 +00:00
Version: 0.7.2
2014-10-20 06:45:50 +00:00
Release: 1%{?dist}
2012-07-26 10:33:50 +00:00
License: GPLv2
2012-06-13 07:27:37 +00:00
Group: System Environment/Base
2013-08-05 08:00:32 +00:00
# Use the following commands to generate the tarball:
# git clone https://github.com/Tojaj/createrepo_c.git
# cd createrepo_c
# utils/make_tarball.sh %{gitrev}
Source0: createrepo_c-%{gitrev}.tar.xz
URL: https://github.com/Tojaj/createrepo_c
2012-06-13 07:27:37 +00:00
2013-03-07 08:11:31 +00:00
BuildRequires: bzip2-devel
2012-06-13 07:27:37 +00:00
BuildRequires: cmake
2013-03-07 08:11:31 +00:00
BuildRequires: doxygen
BuildRequires: expat-devel
2012-06-13 07:27:37 +00:00
BuildRequires: file-devel
2013-03-07 08:11:31 +00:00
BuildRequires: glib2-devel >= 2.22.0
2012-06-13 07:27:37 +00:00
BuildRequires: libcurl-devel
2013-03-07 08:11:31 +00:00
BuildRequires: libxml2-devel
2013-08-05 08:00:32 +00:00
BuildRequires: openssl-devel
BuildRequires: python2-devel
BuildRequires: python-nose
2014-02-20 13:32:43 +00:00
BuildRequires: python-sphinx
2013-03-11 11:19:45 +00:00
BuildRequires: rpm-devel >= 4.8.0-28
2012-07-26 10:33:50 +00:00
BuildRequires: sqlite-devel
2013-03-07 08:11:31 +00:00
BuildRequires: xz-devel
BuildRequires: zlib-devel
2012-07-26 10:33:50 +00:00
Requires: %{name}-libs = %{version}-%{release}
2013-03-11 12:06:32 +00:00
%if 0%{?rhel} == 6
Requires: rpm >= 4.8.0-28
%else
Requires: rpm >= 4.9.0
%endif
2012-06-13 07:27:37 +00:00
%description
2014-06-26 13:46:14 +00:00
C implementation of Createrepo.
A set of utilities (createrepo_c, mergerepo_c, modifyrepo_c)
for generating a common metadata repository from a directory of
rpm packages and maintaining it.
2012-07-26 10:33:50 +00:00
%package libs
Summary: Library for repodata manipulation
Group: Development/Libraries
%description libs
Libraries for applications using the createrepo_c library
for easy manipulation with a repodata.
%package devel
Summary: Library for repodata manipulation
Group: Development/Libraries
Requires: pkgconfig >= 1:0.14
Requires: %{name}-libs = %{version}-%{release}
%description devel
This package contains the createrepo_c C library and header files.
These development files are for easy manipulation with a repodata.
2013-08-05 08:00:32 +00:00
%package -n python-createrepo_c
Summary: Python bindings for the createrepo_c library
Group: Development/Languages
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n python-createrepo_c
Python bindings for the createrepo_c library.
2012-07-26 10:33:50 +00:00
2012-06-13 07:27:37 +00:00
%prep
2013-08-05 08:00:32 +00:00
%setup -q -n createrepo_c
2012-06-13 07:27:37 +00:00
%build
%cmake .
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
2014-02-20 13:32:43 +00:00
make doc-c
2012-06-13 07:27:37 +00:00
2013-08-05 08:00:32 +00:00
%check
make tests
make ARGS="-V" test
2012-06-13 07:27:37 +00:00
%install
make install DESTDIR=$RPM_BUILD_ROOT/
2012-07-26 10:33:50 +00:00
%post -n %{name}-libs -p /sbin/ldconfig
2012-06-13 07:27:37 +00:00
2012-07-26 10:33:50 +00:00
%postun -n %{name}-libs -p /sbin/ldconfig
2012-06-13 07:27:37 +00:00
%files
2013-03-07 08:11:31 +00:00
%doc README.md
2012-06-13 07:27:37 +00:00
%doc COPYING
%_mandir/man8/createrepo_c.8.*
%_mandir/man8/mergerepo_c.8.*
2014-02-20 13:32:43 +00:00
%_mandir/man8/modifyrepo_c.8.*
2012-07-26 10:33:50 +00:00
%config%{_sysconfdir}/bash_completion.d/createrepo_c.bash
2012-06-13 07:27:37 +00:00
%{_bindir}/createrepo_c
%{_bindir}/mergerepo_c
2014-02-20 13:32:43 +00:00
%{_bindir}/modifyrepo_c
2012-06-13 07:27:37 +00:00
2012-07-26 10:33:50 +00:00
%files libs
%doc COPYING
%{_libdir}/libcreaterepo_c.so.*
%files devel
%{_libdir}/libcreaterepo_c.so
%{_libdir}/pkgconfig/createrepo_c.pc
%{_includedir}/createrepo_c/*
%doc COPYING
%doc doc/html
2013-08-05 08:00:32 +00:00
%files -n python-createrepo_c
%{python_sitearch}/createrepo_c/
2012-06-13 07:27:37 +00:00
%changelog
2014-11-06 13:39:07 +00:00
* Thu Nov 06 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.2-1
- createrepo_c: New option --local-sqlite
2014-10-31 12:29:15 +00:00
* Fri Oct 31 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.1-1
- Mergerepo: Fix mergerepo
- Mergerepo: Add some debugging of metadata read.
2014-10-20 06:45:50 +00:00
* Mon Oct 20 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.7.0-1
- deltarpms: Update module to work with current version of drpm
- mergerepo_c: Add --omit-baseurl option
- craterepo_c: Gen empty repo if empty pkglist is used
- Docs: Output python docs to separate directory
- Several small fixes
2014-08-12 08:10:47 +00:00
* Tue Aug 12 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.6.1-1
- updateinfo: Use Python datetime objects in python bindings
2014-08-05 08:48:01 +00:00
* Tue Aug 5 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.6.0-1
- Support for updateinfo.xml manipulation (including Python bindings)
* Fri Jul 18 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.5.0-1
- Experimental delta rpm (DRPM) support (Disabled in Fedora build).
2014-06-26 13:46:14 +00:00
* Thu Jun 26 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.4.1-1
- Initialize threads correctly on old versions of GLib2 (RhBug: 1108787)
- Do not print log domain (get rid off C_CREATEREPOLIB prefix in log messages)
- Implements support for --cachedir
- New option --retain-old-md-by-age
- Few small API changes
* Tue May 6 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.4.0-1
2014-05-06 13:07:11 +00:00
- Change default behavior of repodata files handling. (RhBug: 1094539)
See: https://github.com/Tojaj/createrepo_c/wiki/New-File-Handling
By default, createrepo leaves old groupfiles (comps files)
in the repodata/ directory during update.
Createrepo_c did the same thing but the version 0.4.0 changes this behaviour.
2014-04-28 11:59:12 +00:00
* Thu Apr 10 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.3.1-2
2014-04-07 14:42:38 +00:00
- Support for weak and rich dependecies
2014-03-10 07:40:34 +00:00
* Mon Mar 10 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.3.0-1
- Relevant only for developers using createrepo_c library: New approach for
metadata loading in case of internal high-level parser functions (see commit
messages for more information: d6ed327595, 0b0e75203e, ad1e8450f5)
- Support for changelog limit value == -1 (include all changelogs)
- Update debug compilation flags
- Update man pages (Add synompsis with usage)
- Update usage examples in help
2014-02-20 13:32:43 +00:00
* Thu Feb 20 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.2-1
- Temporary remove deltarepo subpackages
- cmake: Do not install deltarepo stuff yet
- helper: Removed cr_remove_metadata() and cr_get_list_of_md_locations()
- Add module helpers
- Sanitize strings before writting them to XML or sqlitedb (ISSUE #3)
* Mon Jan 27 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.1-3
- New expert option: --ignore-lock
* Mon Jan 20 2014 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.1-2
- More effort to avoid residual .repodata/ directory on error
- Add deltarepo and python-deltarepo subpackages
- Add modifyrepo_c
- Add documentation for python bindings
- Refactored code & a lot of little bug fixes
2013-08-14 08:50:49 +00:00
* Wed Aug 14 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.1-1
- checksum: Set SHA to be the same as SHA1 (For compatibility with original
Createrepo)
2013-08-05 08:00:32 +00:00
* Mon Aug 5 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.2.0-1
- Speedup (More parallelization)
- Changed C API
- Add python bindings
- A lot of bugfixes
- Add new make targets: tests (make tests - builds c tests) and test
(make test - runs c and python test suits).
- Changed interface of most of C modules - Better error reporting
(Add GError ** param).
- Experimental Python bindings (Beware: The interface is not final yet!).
- package: Add cr_package_copy method.
- sqlite: Do not recreate tables and triggers while opening existing db.
- mergerepo_c: Implicitly use --all with --koji.
- Man page update.
* Thu Apr 11 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.17-3
- mergerepo_c: Add --simple-md-filenames and --unique-md-filenames
options. (RhBug: 950994)
- mergerepo_c: Always include noarch while mimic koji
mergerepos. (RhBug: 950991)
- Rename cr_package_parser_shutdown to cr_package_parser_cleanup()
- cr_db_info_update is now safe from sqlinjection.
2013-03-28 07:53:29 +00:00
* Mon Mar 25 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.17-1
- Fix double free() when old metadata parsing failed. (related to RhBug: 920795)
- Convert all strings to UTF-8 while dumping XML. (related RhBug: 920795)
2013-03-11 11:19:45 +00:00
* Mon Mar 11 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.16-2
- Remove creation of own empty rpm keyring for a transaction set.
This is not necessary since rpm-4.8.0-28 (rpm commit
cad147070e5513312d851f44998012e8f0cdf1e3). Moreover, own rpm keyring
causes a race condition in threads (causing double free()) which use
rpmReadPackageFile() called from cr_package_from_rpm().
2013-03-07 08:11:31 +00:00
* Thu Mar 07 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.16-1
- Fix usage of rpm keyring (RhBug:918645)
- More generic interface of repomd module
- Code refactoring
- Add some usage examples into the doxygen documentation and .h files
- Rename version constants in version.h
- New function cr_package_nevra (returns package nevra string)
2013-02-21 11:43:38 +00:00
* Mon Feb 11 2013 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.15-1
- Fix bug in final move from .repodata/ -> repodata/
- Fix warnings from RPM library. RPM library is thread-unsafe. This
includes also reading headers. Use of empty keyring for rpm transaction
should work around the problem.
2012-11-27 08:03:48 +00:00
* Tue Nov 27 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.14-1
- Fix filelists database generation (use '.' instead of '' for current dir)
* Tue Nov 20 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.13-1
- Fix race-condition during task buffering in createrepo_c
* Tue Nov 20 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.12-2
- Fix removing old repomd.xml while --update
2012-11-15 13:30:42 +00:00
* Thu Nov 15 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.12-1
- Fix bug in sqlite filelists database
- Fix memory leak
2012-11-09 09:28:46 +00:00
* Fri Nov 09 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.11-1
- Deterministic output! Packages in output repodata are now sorted
by ASCII value
- Support for Koji mergerepos behaviour in mergerepo_c
(new --koji, --groupfile and --blocked params)
- Better atomicity while finall move .repodata/ -> repodata/
- Repomd module supports pkgorigins record
- Some new functions in misc module
- Small changes in library interface
2012-10-03 11:10:15 +00:00
* Wed Oct 03 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.10-1
- Another memory usage optimalization
2012-09-03 14:39:09 +00:00
* Mon Sep 03 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.9-1
- Some changes in library interface
- Memory usage optimalization
- Fix a segfault and a race condition
- New cmd options: --read-pkgs-list and --retain-old-md param
- Few other bugfixes
2012-08-15 14:40:46 +00:00
* Wed Aug 15 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.8-1
- New interface of repomd module
- New cmd options: --repo --revision --distro --content --basedir
- New createrepo_c specific cmd option --keep-all-metadata
- Few bugfixes
2013-08-05 08:00:32 +00:00
* Thu Jul 26 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.7-1
2012-07-26 10:33:50 +00:00
- SQLite support
- Bash completion
- createrepo_c support for --compress-type param
- Improved logging
- Subpackages -devel and -libsi
- Relicensed to GPLv2
- Doxygen documentation in devel package
- README update
2013-08-05 08:00:32 +00:00
* Mon Jun 11 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.5-1
2012-06-13 07:27:37 +00:00
- Support for .xz compression
- Unversioned .so excluded from installation
2013-08-05 08:00:32 +00:00
* Mon Jun 4 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.4-1
2012-06-13 07:27:37 +00:00
- New mergerepo params: --all, --noarch-repo and --method
- Fix segfault when more than one --excludes param used
2013-08-05 08:00:32 +00:00
* Mon May 28 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.3-1
2012-06-13 07:27:37 +00:00
- Set RelWithDebInfo as default cmake build type
2013-08-05 08:00:32 +00:00
* Wed May 23 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.2-1
2012-06-13 07:27:37 +00:00
- Add version.h header file
2013-08-05 08:00:32 +00:00
* Wed May 23 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.1-1
2012-06-13 07:27:37 +00:00
- Add license
2013-08-05 08:00:32 +00:00
* Wed May 9 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.0-1
2012-06-13 07:27:37 +00:00
- First public release