ruby-rpm:ruby-rpm.git
7 years agowrong version bumped v1.3.0
Duncan Mac-Vicar P [Sun, 22 Aug 2010 14:46:52 +0000 (16:46 +0200)]
wrong version bumped

7 years agordoc required
Duncan Mac-Vicar P [Sun, 22 Aug 2010 14:30:08 +0000 (16:30 +0200)]
rdoc required

7 years agofix gemspec tags
Duncan Mac-Vicar P [Thu, 19 Aug 2010 13:03:55 +0000 (15:03 +0200)]
fix gemspec tags

7 years agoChangelog
Duncan Mac-Vicar P [Thu, 19 Aug 2010 12:57:14 +0000 (14:57 +0200)]
Changelog

7 years agoDRY with VERSION
Duncan Mac-Vicar P [Thu, 19 Aug 2010 12:52:48 +0000 (14:52 +0200)]
DRY with VERSION

7 years agoBuild with ruby 1.9.x too
Duncan Mac-Vicar P [Thu, 19 Aug 2010 12:47:28 +0000 (14:47 +0200)]
Build with ruby 1.9.x too

7 years agoPort the build system to something more current:
Duncan Mac-Vicar P [Thu, 19 Aug 2010 09:37:32 +0000 (11:37 +0200)]
Port the build system to something more current:
- rake-compiler to build the extension
- Gemfile to automatically install dependencies
- split gemspec out of Rakefile (for bundler compatibility)
- rdoc for README

8 years agoroot and home attributes only available in rpm < 4.6.0 v1.2.4
Duncan Mac-Vicar P [Tue, 10 Nov 2009 16:41:06 +0000 (17:41 +0100)]
root and home attributes only available in rpm < 4.6.0

8 years agofix version define
Duncan Mac-Vicar P [Tue, 10 Nov 2009 16:06:01 +0000 (17:06 +0100)]
fix version define

8 years agocompiles with rpm 4.4 and 4.7, verified with openSUSE 11.0 and openSUSE
Duncan Mac-Vicar P [Tue, 20 Oct 2009 12:27:59 +0000 (14:27 +0200)]
compiles with rpm 4.4 and 4.7, verified with openSUSE 11.0 and openSUSE
Factory

8 years agoTry to make the code work with both rpms
Duncan Mac-Vicar P [Tue, 20 Oct 2009 11:31:07 +0000 (13:31 +0200)]
Try to make the code work with both rpms

8 years agomake this function static
Duncan Mac-Vicar P [Tue, 20 Oct 2009 10:50:30 +0000 (12:50 +0200)]
make this function static

8 years agofirst port to rpm 4.7
Duncan Mac-Vicar P [Mon, 19 Oct 2009 15:30:36 +0000 (17:30 +0200)]
first port to rpm 4.7

9 years agoPass all defines through extconf.h
David Lutterkort [Wed, 5 Nov 2008 00:21:23 +0000 (00:21 +0000)]
Pass all defines through extconf.h

Place _RPM_4_4_COMPAT and RPM_VERSION_CODE in extconf.h, instead of passing
them on the command line.

9 years agoCleaner RPM header file checks
David Lutterkort [Wed, 5 Nov 2008 00:21:21 +0000 (00:21 +0000)]
Cleaner RPM header file checks

Check for various RPM headers and base the decision to include them on their
presence, not on the RPM version.

9 years agoBuild setup for rpm installed in nonstandard location
David Lutterkort [Wed, 5 Nov 2008 00:21:18 +0000 (00:21 +0000)]
Build setup for rpm installed in nonstandard location

Make it possible to switch to a different version of RPM by setting
PKG_CONFIG_PATH and PATH in the environment

9 years agoDo not choke on deprecation warnings
David Lutterkort [Tue, 4 Nov 2008 02:58:36 +0000 (02:58 +0000)]
Do not choke on deprecation warnings

9 years agoFix couple more compilation problems
David Lutterkort [Tue, 4 Nov 2008 01:54:44 +0000 (01:54 +0000)]
Fix couple more compilation problems

9 years agoextconf.rb: create extconf.h; compile with -Werror
David Lutterkort [Tue, 4 Nov 2008 01:53:23 +0000 (01:53 +0000)]
extconf.rb: create extconf.h; compile with -Werror

9 years agoFix a number of compiler warnings
David Lutterkort [Tue, 4 Nov 2008 01:49:15 +0000 (01:49 +0000)]
Fix a number of compiler warnings

9 years agoEnable test_rebuild and make it pass by working around an RPM oddity
David Lutterkort [Tue, 4 Nov 2008 01:41:05 +0000 (01:41 +0000)]
Enable test_rebuild and make it pass by working around an RPM oddity

9 years agoversion.c: NUM2INT on some platforms is a long; always promote to long for printing
David Lutterkort [Tue, 4 Nov 2008 01:38:47 +0000 (01:38 +0000)]
version.c: NUM2INT on some platforms is a long; always promote to long for printing

9 years agoFixup rpm_transaction_check() to build with new rpm
David Lutterkort [Fri, 10 Oct 2008 23:53:12 +0000 (23:53 +0000)]
Fixup rpm_transaction_check() to build with new rpm

 - use iterator for walking the problem set, rpmProblem "methods" for
   accessing the data
 - ugly and unnecessary code duplication wrt the no-iterator case for
   parsing the dependency string but hey, it builds...

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
9 years agoFixup rpm_transaction_commit() for opaque rpmps/rpmProblem
David Lutterkort [Fri, 10 Oct 2008 23:52:04 +0000 (23:52 +0000)]
Fixup rpm_transaction_commit() for opaque rpmps/rpmProblem

 - dumb ifdef hack to "detect", should check for rpmpsInitIterator() or such
   in librpm instead
 - use rpmps iterator for walking over the problems + rpmProblem "methods"
   for grabbing data from them

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
9 years agoUse rpmpsTrim() instead of manually doing it
David Lutterkort [Fri, 10 Oct 2008 23:49:59 +0000 (23:49 +0000)]
Use rpmpsTrim() instead of manually doing it

 - this should end up with the same thing but...

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
9 years agoDumb ifdef kludgery to work around stuff
David Lutterkort [Fri, 10 Oct 2008 23:48:52 +0000 (23:48 +0000)]
Dumb ifdef kludgery to work around stuff

 - rpmdb struct is opaque now, can't access root+home from there (if
   something *really* needs these, we can add functions to librpm instead)
 - rpmtsAvailable() is no more

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
9 years agoExclude various removed constants on newer rpm
David Lutterkort [Fri, 10 Oct 2008 23:43:59 +0000 (23:43 +0000)]
Exclude various removed constants on newer rpm

 - RPMSENSE_SERIAL and RPMPROB_BADPRETRANS are *ancient* and gone from new rpm
 - RPMTRANS_FLAG_ANACONDA is no more (vendor specific and useless these days)
 - RPMMESS_ERROR etc are replaced with RPMLOG_ERR & friends

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
9 years agoFixup for spec changes in newer rpm
David Lutterkort [Fri, 10 Oct 2008 23:41:39 +0000 (23:41 +0000)]
Fixup for spec changes in newer rpm

 - newer rpm doesn't have RPMERR_SPEC, just let default: case catch the errors
 - adjust for spec buildRootURL -> buildRoot change (URL as buildroot
   never made any sense anyway)

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
9 years agoInclude rpmlog.h instead of (nonexistent) rpmmessages.h on newer rpm
David Lutterkort [Fri, 10 Oct 2008 23:40:30 +0000 (23:40 +0000)]
Include rpmlog.h instead of (nonexistent) rpmmessages.h on newer rpm

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
9 years agoUse pkg-config for rpm if it exists, enable compat mode for now.
David Lutterkort [Fri, 10 Oct 2008 23:39:01 +0000 (23:39 +0000)]
Use pkg-config for rpm if it exists, enable compat mode for now.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
9 years agoDisable failing test RPM_DB_Tests::test_rebuild
David Lutterkort [Fri, 10 Oct 2008 23:34:34 +0000 (23:34 +0000)]
Disable failing test RPM_DB_Tests::test_rebuild

10 years agoBring into accordance with Fedora guidelines
David Lutterkort [Tue, 11 Mar 2008 16:45:42 +0000 (16:45 +0000)]
Bring into accordance with Fedora guidelines

10 years agoBump version to 1.2.3
David Lutterkort [Mon, 8 Oct 2007 22:55:30 +0000 (22:55 +0000)]
Bump version to 1.2.3

10 years agoNEWS for 1.2.3
David Lutterkort [Mon, 8 Oct 2007 22:54:58 +0000 (22:54 +0000)]
NEWS for 1.2.3

10 years agoRelease 1.2.3
David Lutterkort [Mon, 7 May 2007 22:18:20 +0000 (22:18 +0000)]
Release 1.2.3

10 years agoAdd FIXME comment
David Lutterkort [Mon, 7 May 2007 22:14:32 +0000 (22:14 +0000)]
Add FIXME comment

11 years agoAdd a hash method for versions
David Lutterkort [Tue, 24 Apr 2007 01:31:27 +0000 (01:31 +0000)]
Add a hash method for versions

11 years agoZero epoch is the same as no epoch
David Lutterkort [Tue, 24 Apr 2007 00:05:55 +0000 (00:05 +0000)]
Zero epoch is the same as no epoch

11 years agoForce garbage collection on close to make sure garbage objects don't force the DB...
David Lutterkort [Thu, 22 Mar 2007 01:39:33 +0000 (01:39 +0000)]
Force garbage collection on close to make sure garbage objects don't force the DB to stay open

11 years agoExpand description; build zip, too
David Lutterkort [Wed, 21 Mar 2007 23:26:52 +0000 (23:26 +0000)]
Expand description; build zip, too

11 years agoInclude rpm specfiles
David Lutterkort [Wed, 21 Mar 2007 23:07:09 +0000 (23:07 +0000)]
Include rpm specfiles

11 years agoAdd a NEWS file
David Lutterkort [Wed, 21 Mar 2007 23:01:34 +0000 (23:01 +0000)]
Add a NEWS file

11 years agoDiddle with dist task
David Lutterkort [Wed, 21 Mar 2007 22:46:02 +0000 (22:46 +0000)]
Diddle with dist task

11 years agoCopy everything to trunk/ subdir to make room for a tags/ dir
David Lutterkort [Wed, 21 Mar 2007 22:36:14 +0000 (22:36 +0000)]
Copy everything to trunk/ subdir to make room for a tags/ dir

11 years agoMore complete Rakefile; first steps towards making install.rb obsolete, though it...
David Lutterkort [Wed, 21 Mar 2007 22:32:44 +0000 (22:32 +0000)]
More complete Rakefile; first steps towards making install.rb obsolete, though it's still needed

11 years agoPatch from Pascal Terjan (Mandriva)
David Lutterkort [Wed, 21 Mar 2007 22:31:55 +0000 (22:31 +0000)]
Patch from Pascal Terjan (Mandriva)

11 years agoMove fedora specfile to a separate subdir
David Lutterkort [Wed, 21 Mar 2007 22:27:19 +0000 (22:27 +0000)]
Move fedora specfile to a separate subdir

11 years agoFix type pointed out by Guillermo Gomez
David Lutterkort [Wed, 21 Mar 2007 20:56:17 +0000 (20:56 +0000)]
Fix type pointed out by Guillermo Gomez

11 years agoFix Dependency.satisfy? and document desired behavior with a test
David Lutterkort [Sat, 17 Mar 2007 00:58:35 +0000 (00:58 +0000)]
Fix Dependency.satisfy? and document desired behavior with a test

11 years agoFix segv when link_to is NIL
David Lutterkort [Thu, 15 Mar 2007 04:18:10 +0000 (04:18 +0000)]
Fix segv when link_to is NIL

11 years agoTest that exposes segfault in File constructor
David Lutterkort [Wed, 14 Mar 2007 00:57:43 +0000 (00:57 +0000)]
Test that exposes segfault in File constructor

11 years agoRelax requirements so that package builds on RHEL4
David Lutterkort [Sat, 10 Mar 2007 00:07:21 +0000 (00:07 +0000)]
Relax requirements so that package builds on RHEL4

11 years agoFix error converting epoch in RPM::Version.inspect
David Lutterkort [Tue, 30 Jan 2007 02:26:22 +0000 (02:26 +0000)]
Fix error converting epoch in RPM::Version.inspect

11 years agoDistribute spec file(s)
David Lutterkort [Tue, 12 Dec 2006 20:28:42 +0000 (20:28 +0000)]
Distribute spec file(s)

11 years agoSeparate directory for spec file(s)
David Lutterkort [Wed, 15 Nov 2006 01:51:14 +0000 (01:51 +0000)]
Separate directory for spec file(s)

11 years agoAdd extconf.rb top tarball
David Lutterkort [Wed, 15 Nov 2006 01:50:30 +0000 (01:50 +0000)]
Add extconf.rb top tarball

11 years agoAdd support for building tarball
David Lutterkort [Wed, 15 Nov 2006 01:32:53 +0000 (01:32 +0000)]
Add support for building tarball

11 years agoRemove unused variables
David Lutterkort [Wed, 15 Nov 2006 01:08:47 +0000 (01:08 +0000)]
Remove unused variables

11 years agoAdd entry about patch additions
David Lutterkort [Wed, 15 Nov 2006 01:08:16 +0000 (01:08 +0000)]
Add entry about patch additions

11 years agoMake the test runner run
David Lutterkort [Fri, 13 Oct 2006 21:53:40 +0000 (21:53 +0000)]
Make the test runner run

11 years agoApply patch7 (ruby-rpm-1.2.0_no_random_return-2.patch) from SuSE
David Lutterkort [Fri, 13 Oct 2006 21:47:38 +0000 (21:47 +0000)]
Apply patch7 (ruby-rpm-1.2.0_no_random_return-2.patch) from SuSE

11 years agoApply patch6 (ruby-rpm-1.2.0_no_random_return.patch) from SuSE
David Lutterkort [Fri, 13 Oct 2006 21:46:12 +0000 (21:46 +0000)]
Apply patch6 (ruby-rpm-1.2.0_no_random_return.patch) from SuSE

11 years agoApply patch5 (ruby-rpm-1.2.0_no_RPMSENSE_PATCHES.patch) from SuSE
David Lutterkort [Fri, 13 Oct 2006 21:45:00 +0000 (21:45 +0000)]
Apply patch5 (ruby-rpm-1.2.0_no_RPMSENSE_PATCHES.patch) from SuSE

11 years agoApply patch4 (ruby-rpm-1.2.0-callback445.patch) from SuSE
David Lutterkort [Fri, 13 Oct 2006 21:43:34 +0000 (21:43 +0000)]
Apply patch4 (ruby-rpm-1.2.0-callback445.patch) from SuSE

11 years agoAdd patch3 (ruby-rpm-1.2.0-package-sprintf.patch) from SuSE - add Package::sprintf
David Lutterkort [Fri, 13 Oct 2006 21:41:23 +0000 (21:41 +0000)]
Add patch3 (ruby-rpm-1.2.0-package-sprintf.patch) from SuSE - add Package::sprintf

11 years agoApply patch2 (ruby-rpm-1.2.0-db-package-version-20040923.patch) from SuSE specfile
David Lutterkort [Fri, 13 Oct 2006 21:39:55 +0000 (21:39 +0000)]
Apply patch2 (ruby-rpm-1.2.0-db-package-version-20040923.patch) from SuSE specfile

11 years agoApply patch1 (ruby-rpm-1.2.0-expand-macros.patch) from SuSE specfile - add RPM::expan...
David Lutterkort [Fri, 13 Oct 2006 21:33:42 +0000 (21:33 +0000)]
Apply patch1 (ruby-rpm-1.2.0-expand-macros.patch) from SuSE specfile - add RPM::expand method

11 years agoApply patch0 (ruby-rpm-1.2.0.diff) from SuSE, with small modifications
David Lutterkort [Fri, 13 Oct 2006 21:30:13 +0000 (21:30 +0000)]
Apply patch0 (ruby-rpm-1.2.0.diff) from SuSE, with small modifications

11 years agoPatch2 from mdk specfile: add arch getter to package class
David Lutterkort [Fri, 13 Oct 2006 21:17:31 +0000 (21:17 +0000)]
Patch2 from mdk specfile: add arch getter to package class

11 years agoPatch1 from mdk specfile; fix signature of rb_time_new
David Lutterkort [Fri, 13 Oct 2006 21:15:56 +0000 (21:15 +0000)]
Patch1 from mdk specfile; fix signature of rb_time_new

11 years agoPatch0 from mdk specfile; patch for a segfault when TMP or TEMP or TMPDIR exist but...
David Lutterkort [Fri, 13 Oct 2006 21:11:28 +0000 (21:11 +0000)]
Patch0 from mdk specfile; patch for a segfault when TMP or TEMP or TMPDIR exist but does not contain =

11 years agoDirectory to hold patches pulled from various spec files
David Lutterkort [Fri, 13 Oct 2006 21:09:51 +0000 (21:09 +0000)]
Directory to hold patches pulled from various spec files

11 years agoSources from last released upstream version ruby-rpm-1.2.0.tar.bz2 (as found in sever...
David Lutterkort [Tue, 19 Sep 2006 14:22:11 +0000 (14:22 +0000)]
Sources from last released upstream version ruby-rpm-1.2.0.tar.bz2 (as found in several RPM's and at developer.momonga-linux.org/viewcvs/trunk/pkgs/ruby-rpm/)