ruby-rpm:ruby-rpm.git
6 years agoMerge branch 'master' of gitorious.org:ruby-rpm/ruby-rpm into work-1.4 work-1.4
Duncan Mac-Vicar P [Wed, 31 Aug 2011 13:44:20 +0000 (15:44 +0200)]
Merge branch 'master' of gitorious.org:ruby-rpm/ruby-rpm into work-1.4

6 years agoupdate changelog and bump version v1.3.1
Duncan Mac-Vicar P [Wed, 31 Aug 2011 13:41:24 +0000 (15:41 +0200)]
update changelog and bump version

6 years agoRequire rpm 4.1 or newer
Duncan Mac-Vicar P [Tue, 30 Aug 2011 22:30:03 +0000 (00:30 +0200)]
Require rpm 4.1 or newer

6 years agoimprove testcase by using mktmpdir and
Duncan Mac-Vicar P [Tue, 30 Aug 2011 21:02:51 +0000 (23:02 +0200)]
improve testcase by using mktmpdir and
refactor de tests.

Fix a typo where the system db was tested for existence.

6 years agoadd test helper and a testcase for spec files
Duncan Mac-Vicar P [Mon, 29 Aug 2011 23:08:39 +0000 (01:08 +0200)]
add test helper and a testcase for spec files

6 years agomove more docs to db.c and rpm.c
Duncan Mac-Vicar P [Mon, 29 Aug 2011 23:07:54 +0000 (01:07 +0200)]
move more docs to db.c and rpm.c

6 years agoMove parts of DB and Transaction documentation to db.c
Duncan Mac-Vicar P [Mon, 29 Aug 2011 14:00:32 +0000 (16:00 +0200)]
Move parts of DB and Transaction documentation to db.c

6 years agoMove RPM::Spec docs to spec.c
Duncan Mac-Vicar P [Mon, 29 Aug 2011 12:19:47 +0000 (14:19 +0200)]
Move RPM::Spec docs to spec.c

6 years agoWe need to link against librpmbuild to use RPM::Spec (because parseSpec())
Duncan Mac-Vicar P [Mon, 29 Aug 2011 11:34:58 +0000 (13:34 +0200)]
We need to link against librpmbuild to use RPM::Spec (because parseSpec())

6 years agoMove RPM::Package docs to package.c
Duncan Mac-Vicar P [Mon, 29 Aug 2011 10:57:45 +0000 (12:57 +0200)]
Move RPM::Package docs to package.c

6 years agoMove RPM::Dependency docs to dependency.c
Duncan Mac-Vicar P [Mon, 29 Aug 2011 10:25:12 +0000 (12:25 +0200)]
Move RPM::Dependency docs to dependency.c

6 years agoMove the RPM::File documentation to file.c
Duncan Mac-Vicar P [Mon, 29 Aug 2011 09:33:48 +0000 (11:33 +0200)]
Move the RPM::File documentation to file.c

6 years agoMove RPM::Source docs to source.c
Duncan Mac-Vicar P [Mon, 29 Aug 2011 08:53:54 +0000 (10:53 +0200)]
Move RPM::Source docs to source.c

6 years agospecify versions for dependencies
Duncan Mac-Vicar P [Mon, 29 Aug 2011 08:33:41 +0000 (10:33 +0200)]
specify versions for dependencies

6 years agoshare file lists between yard and rdoc
Duncan Mac-Vicar P [Mon, 29 Aug 2011 08:33:30 +0000 (10:33 +0200)]
share file lists between yard and rdoc

6 years agouse bundler tasks
Duncan Mac-Vicar P [Mon, 29 Aug 2011 08:32:48 +0000 (10:32 +0200)]
use bundler tasks

6 years agomoved RPM::Version documentation to the extension
Duncan Mac-Vicar P [Mon, 29 Aug 2011 08:31:44 +0000 (10:31 +0200)]
moved RPM::Version documentation to the extension

6 years agomoved RPM::Version documentation to the extension
Duncan Mac-Vicar P [Mon, 29 Aug 2011 08:31:10 +0000 (10:31 +0200)]
moved RPM::Version documentation to the extension

6 years agoMerge branch 'rpm5' of git://gitorious.org/~afb/ruby-rpm/afb-ruby-rpm
Duncan Mac-Vicar P [Mon, 29 Aug 2011 08:27:50 +0000 (10:27 +0200)]
Merge branch 'rpm5' of git://gitorious.org/~afb/ruby-rpm/afb-ruby-rpm

6 years agoMove rpm spec from spec/ to distro/ as spec is used for rspec in ruby
Duncan Mac-Vicar P [Mon, 29 Aug 2011 06:49:08 +0000 (08:49 +0200)]
Move rpm spec from spec/ to distro/ as spec is used for rspec in ruby

6 years agoLooks like all patches are applied
Duncan Mac-Vicar P [Mon, 29 Aug 2011 06:46:15 +0000 (08:46 +0200)]
Looks like all patches are applied

6 years agogoogle translated version of the reference. TODO: move those to the C code
Duncan Mac-Vicar P [Sun, 28 Aug 2011 22:34:34 +0000 (00:34 +0200)]
google translated version of the reference. TODO: move those to the C code

6 years agoadd applied patches to CHANGELOG
Duncan Mac-Vicar P [Sun, 28 Aug 2011 22:33:43 +0000 (00:33 +0200)]
add applied patches to CHANGELOG

6 years agoinclude C docs
Duncan Mac-Vicar P [Sun, 28 Aug 2011 22:33:24 +0000 (00:33 +0200)]
include C docs

6 years agomove old patches and Japanese manual so that it does not clash with rdoc output
Duncan Mac-Vicar P [Sun, 28 Aug 2011 22:33:03 +0000 (00:33 +0200)]
move old patches and Japanese manual so that it does not clash with rdoc output

6 years agouse rbconfig to get DLEXT instead of hardcoding .so 2
Anders F Bjorklund [Tue, 23 Aug 2011 07:54:28 +0000 (09:54 +0200)]
use rbconfig to get DLEXT instead of hardcoding .so

6 years agoadd missing patches and fix build
Anders F Bjorklund [Tue, 23 Aug 2011 06:59:43 +0000 (08:59 +0200)]
add missing patches and fix build

6 years agoruby-rpm-1.2.3-rpm5.patch
Anders F Bjorklund [Wed, 5 Mar 2008 15:24:58 +0000 (16:24 +0100)]
ruby-rpm-1.2.3-rpm5.patch

6 years agoruby-rpm-1.2.3-rpm448.patch
Anders F Bjorklund [Sun, 10 Jun 2007 21:31:12 +0000 (23:31 +0200)]
ruby-rpm-1.2.3-rpm448.patch

6 years agoruby-rpm-1.2.1-rpm446.patch
Anders F Bjorklund [Sat, 6 Jan 2007 22:57:04 +0000 (23:57 +0100)]
ruby-rpm-1.2.1-rpm446.patch

6 years agostpcpy declaration clashing with darwin's <string.h>
Anders F Bjorklund [Mon, 22 Aug 2011 15:21:59 +0000 (17:21 +0200)]
stpcpy declaration clashing with darwin's <string.h>

6 years agoAdd a missing header that caused compile to fail
Lubomir Rintel [Mon, 14 Mar 2011 10:34:30 +0000 (11:34 +0100)]
Add a missing header that caused compile to fail

http://rubyforge.org/tracker/index.php?func=detail&aid=29073&group_id=1924&atid=7497

package.c: In function ‘package_clear_cache’:
package.c:21: error: implicit declaration of function ‘st_free_table’
package.c: In function ‘package_use_cache’:
package.c:29: error: implicit declaration of function ‘st_init_numtable’
package.c:29: error: cast to pointer from integer of different size
package.c: In function ‘package_free’:
package.c:46: error: implicit declaration of function ‘st_delete’
package.c: In function ‘package_new_from_header’:
package.c:72: error: implicit declaration of function ‘st_lookup’
package.c:79: error: implicit declaration of function ‘st_insert’
(cherry picked from commit e4514fe960f6a802c21a6e13abf213c53d147802)

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

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

11 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