Search
j0ke.net Open Build Service
>
Projects
>
J0KE.NET
:
infrastructure
>
createrepo
> createrepo.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File createrepo.spec of Package createrepo (Revision 3)
Currently displaying revision
3
,
show latest
# # spec file for package createrepo (Version 0.4.11) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: createrepo BuildRequires: python Version: 0.4.11 Release: 8 License: GPL v2 or later Summary: Creates a Common Metadata Repository Group: System/Packages Source: %{name}-%{version}.tar.bz2 Patch: %{name}-missing-tags.patch Patch1: %{name}-suse-changelogs.patch Patch2: modifyrepo-prettyxml.patch Patch3: %{name}-0.4.8-cache_utime.patch Patch5: %{name}-0.4.10-fixsymlinks.patch Patch6: %{name}-0.4.10-cachefix.patch Patch7: %{name}-license-to-confirm.patch Url: http://linux.duke.edu/metadata/ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Requires: rpm >= 4.1.1 Requires: rpm-python Requires: libxml2-python %if 0%{?suse_version} %if %{suse_version} > 910 Requires: yum-metadata-parser %endif %py_requires %else Requires: yum-metadata-parser %endif %description This utility generates a common metadata repository from a directory of RPM packages. Authors: -------- Seth Vidal <skvidal@phy.duke.edu> %prep %setup -q %patch %patch1 %patch2 %patch3 %patch5 -p1 %patch6 %patch7 %install %if 0%{?suse_version} %if %{suse_version} <= 1010 sed -e "s,rpm.RPMTAG_ENHANCESNAME,1159," \ -e "s,rpm.RPMTAG_ENHANCESFLAGS,1161," \ -e "s,rpm.RPMTAG_ENHANCESVERSION,1160," \ -e "s,rpm.RPMTAG_SUGGESTSNAME,1156," \ -e "s,rpm.RPMTAG_SUGGESTSFLAGS,1158," \ -e "s,rpm.RPMTAG_SUGGESTSVERSION,1157," \ -e "s,rpm.RPMSENSE_STRONG,0x8000000," \ dumpMetadata.py > dumpMetadata.py.patched mv dumpMetadata.py.patched dumpMetadata.py %endif %endif make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc ChangeLog README %{_mandir}/*/* %{_bindir}/* %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %changelog * Mon Jun 9 2008 - martin.mohring@5etech.eu - adaption for mutitarget specfile to use with OBS * Mon Jan 07 2008 - cthiel@suse.de - fixed exporting of Recommends tag on old distros (#351380) * Thu Dec 06 2007 - cthiel@suse.de - added modifyrepo-prettyxml.patch to prettify xml output of modifyrepo * Tue Dec 04 2007 - cthiel@suse.de - update to version 0.4.11 * adds dmd command * adds -i, --pkglist option (use only these files from the directory specified) - drop createrepo-0.4.8-try_sqlitecachec.patch and createrepo-dmd.patch (both included upstream) * Wed Nov 28 2007 - adrian@suse.de - apply fix from mls to avoid dieing createrepo on not nice formated changelogs * Tue Aug 07 2007 - cthiel@suse.de - update to version 0.4.10 * Adds a --update option to createrepo. https://lists.dulug.duke.edu/pipermail/rpm-metadata/2007-March/000756.html * dumpMetadata.py: Fix for older rpm versions - added createrepo-dmd.patch: introduces dmd to generate and apply deltas between repository metadata - added createrepo-0.4.10-fixsymlinks.patch - reordered patches * Mon May 21 2007 - cthiel@suse.de - replace rpm.RPMTAG_HDRID with rpm.RPMTAG_SHA1HEADER in createrepo-0.4.8-cachefix.patch * Wed May 16 2007 - cthiel@suse.de - update to version 0.4.9 * includes createrepo-0.4.8-skip-symlinks.patch and createrepo-0.4.8-cachefix.patch (partly) * Tue May 15 2007 - cthiel@suse.de - improve createrepo-0.4.8-cachefix.patch to work on older distros * Tue May 08 2007 - cthiel@suse.de - added createrepo-0.4.8-cache_utime.patch: touch cache files after using them * Tue May 08 2007 - cthiel@suse.de - made yum-metadata-parser requirement optional for old distros * Fri May 04 2007 - cthiel@suse.de - added createrepo-0.4.8-cachefix.patch * makes sure to generate unique hashkeys for the cache * Wed Apr 25 2007 - cthiel@suse.de - added createrepo-0.4.8-skip-symlinks.patch * implements -S, --skip-symlinks option * Fri Feb 16 2007 - cthiel@suse.de - update to version 0.4.8 * genpkgmetadata.py: merge Jesse Keatings' patch to find groups file properly * dumpMetadata.py: merge in Christoph Thiel's patch to fix string conversion for odd EVR's * updated docs - dropped createrepo-EVR.patch (mereged upstream) * Wed Feb 07 2007 - cthiel@suse.de - update to version 0.4.7 * modifyrepo.py: use the mdname for the 'href' element, so it doesn't explode when dealing with xml.dom.minidom.Document objects. * Makefile, bin/Makefile, createrepo.spec: Makefile changes for modifyrepo, and added it to the spec as well. * modifyrepo.py, bin/modifyrepo: Initial import - added Requires: yum-metadata-parser, to support -d option (generate sqlite databases for use with yum) * Wed Jan 10 2007 - cthiel@suse.de - added createrepo-EVR.patch to make _stringToVersion match rpm's parseEVR behavior (#228522) * Thu Aug 17 2006 - cthiel@suse.de - make missing tags work on older distros again * Mon Aug 14 2006 - cthiel@suse.de - fix build in openSUSE Build Service * Fri Aug 11 2006 - cthiel@suse.de - update to version 0.4.6 * Patch from Hans-Peter Jansen -C, --checkts option added to avoid metadata generation, if ctime filestamps are up to date. It's currently mutually exclusive with the --split option. * Fix cache output dir to 0.4.5 behaviour * Fix filtering out path from file list and passing correct path to writeMetaData * Make splitmetadata handler do it' own getFileList to correctly manipulate paths. * Set outputdir correctly * Move to split basedir and directory everywhere to preserve command line paths. Use os.path.walk rather than our own implementation Improve error messages * Consistent directory handling and errors * Patch from Hans-Peter Jansen to use a more robust rpm header signature retrieval method for cache files, as recommended by Jeff Johnson. * Tolerate unknown files in repodata dirs * patch to support --noepoch for use with old versions of rpm - remove python-urlgrabber dependency * Wed May 24 2006 - cthiel@suse.de - added license-to-confirm.patch (by Jose Mercado <jose@novell.com>) * adds license-to-confirm element for packages which have EULAs * Wed Mar 22 2006 - cthiel@suse.de - added createrepo-0.4.4-suse-changelogs.patch (#159882) * removes superfluous "- " from author information on changelogs - merged cleanup.patch into missing-tags.patch * Thu Mar 16 2006 - cthiel@suse.de - update to version 0.4.4 * introduces split media support * adds seperate outputdir option * improves cache handling * documentation updates - added Requires: python-urlgrabber * Wed Mar 15 2006 - agruen@suse.de - Fix a data type conversion bug introduced in the last change that triggers with some package repositories. Code cleanup. * Mon Mar 13 2006 - agruen@suse.de - missing-tags.patch: Include the new Enhances, Supplements, Suggests, and Recommends rpm tags in the metadata. * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Thu Sep 29 2005 - dmueller@suse.de - add norootforbuild * Wed Sep 28 2005 - cthiel@suse.de - use cachedir relative to package directory, if cachedir isn't an aboslute path * Wed Sep 28 2005 - cthiel@suse.de - use RPMTAG_SHA1HEADER instead of hdrid in doChecksumCache() [#119199] * Mon Sep 12 2005 - cthiel@suse.de - specfile cleanup * Thu Aug 18 2005 - cthiel@suse.de - dropped unneeded patch * Sun Aug 14 2005 - cthiel@suse.de - use macro py_requires * Wed Aug 03 2005 - cthiel@suse.de - initial package (version 0.4.3)