From 846f1af61e7a985bae6105771f4b80c677cc2d5a Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 6 Mar 2009 13:26:53 +0000 Subject: [PATCH] Version 0.9 release. --- .gitignore | 4 ++++ README | 28 ++++++++++++++++++++++++++++ auto-buildrequires.spec.in | 5 ++++- configure.ac | 4 ++-- 4 files changed, 38 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 988f998..0b32ac0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ *~ +*.o +*.so .deps .libs +INSTALL Makefile Makefile.in aclocal.m4 @@ -17,6 +20,7 @@ config.h.in config.log config.status configure +depcomp install-sh missing stamp-h1 diff --git a/README b/README index e69de29..4be546c 100644 --- a/README +++ b/README @@ -0,0 +1,28 @@ +Auto-BuildRequires is a simple set of scripts for automatically +suggesting BuildRequires lines for programs. + +Written by Richard W.M. Jones, rjones@redhat.com, +http://et.redhat.com/~rjones/ +http://et.redhat.com/~rjones/auto-buildrequires/ + +Usage: + + auto-br-rpmbuild -ba foo.spec + +If your build command is more complex, try: + + auto-br [command ...] + + +Developers +---------------------------------------------------------------------- + +The basic "magic" is a C LD_PRELOAD module, auto-buildrequires-preload.c, +which intercepts some system calls to determine which files the build +is looking at. Those get logged to a simple text file. + +The Perl analysis script, auto-br-analyze.pl.in, runs afterwards on +the logfile, and uses rpm to find out which packages those files +belong to. Those are printed out as the list of BuildRequires. + +A shell script, auto-br.sh.in, holds the whole thing together. diff --git a/auto-buildrequires.spec.in b/auto-buildrequires.spec.in index 7b5e9a7..1f1f007 100644 --- a/auto-buildrequires.spec.in +++ b/auto-buildrequires.spec.in @@ -3,7 +3,7 @@ Summary: Work out BuildRequires for rpmbuild automatically Name: auto-buildrequires Version: @VERSION@ -Release: 2 +Release: 1 License: GPLv2+ Group: Development/Tools URL: http://et.redhat.com/~rjones/auto-buildrequires/ @@ -44,5 +44,8 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Mar 6 2009 Richard Jones - 0.9-1 +- Imported to git and rebuilt. + * Thu Nov 6 2008 Richard Jones - 0.1-2 - Initial build. diff --git a/configure.ac b/configure.ac index e718416..acd8fc0 100644 --- a/configure.ac +++ b/configure.ac @@ -16,7 +16,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -AC_INIT(auto-buildrequires,0.1) +AC_INIT(auto-buildrequires,0.9) AM_INIT_AUTOMAKE AC_PROG_INSTALL @@ -24,7 +24,7 @@ AC_PROG_CC AM_PROG_CC_C_O AC_CHECK_PROG([RPM],[rpm],[rpm]) -AC_CHECK_PROG([RPMBUILD],[rpmbuild],[rpm]) +AC_CHECK_PROG([RPMBUILD],[rpmbuild],[rpmbuild]) # XXX Should check for String::ShellQuote and File::Temp modules. AC_PATH_PROG([PERL],[perl],[/usr/bin/perl]) -- 1.8.3.1