createrepo_c/createrepo_c.spec

179 lines
5.5 KiB
RPMSpec
Raw Normal View History

2012-06-13 07:27:37 +00:00
Summary: Creates a common metadata repository
Name: createrepo_c
2013-03-07 08:11:31 +00:00
Version: 0.1.16
2013-03-11 12:06:32 +00:00
Release: 3%{?dist}
2012-07-26 10:33:50 +00:00
License: GPLv2
2012-06-13 07:27:37 +00:00
Group: System Environment/Base
Source0: https://fedorahosted.org/releases/c/r/createrepo_c/%{name}-%{version}.tar.xz
URL: https://fedorahosted.org/createrepo_c/
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-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
C implementation of Createrepo. This utility will generate a common
metadata repository from a directory of rpm packages
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.
2012-06-13 07:27:37 +00:00
%prep
%setup -q
%build
%cmake .
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
2012-07-26 10:33:50 +00:00
make doc
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.*
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
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
2012-06-13 07:27:37 +00:00
%changelog
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
2012-07-26 10:33:50 +00:00
* Tue Jul 26 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.7-1
- 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
2012-06-13 07:27:37 +00:00
* Tue Jun 11 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.5-1
- Support for .xz compression
- Unversioned .so excluded from installation
* Tue Jun 4 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.4-1
- New mergerepo params: --all, --noarch-repo and --method
- Fix segfault when more than one --excludes param used
* Tue May 28 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.3-1
- Set RelWithDebInfo as default cmake build type
* Tue May 23 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.2-1
- Add version.h header file
* Tue May 23 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.1-1
- Add license
* Tue May 9 2012 Tomas Mlcoch <tmlcoch at redhat.com> - 0.1.0-1
- First public release