[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-packaging
Subject:    Re: [A-A-P-develop] I uploaded an RPM to Mandriva/Mandrake
From:       Aschwin Marsman <aschwin () marsman ! org>
Date:       2005-11-20 7:17:18
Message-ID: Pine.LNX.4.63.0511200713290.31918 () CO239024-A ! almel1 ! ov ! home ! nl
[Download RAW message or body]

On Fri, 18 Nov 2005, Ian S. Nelson wrote:
> Aschwin Marsman wrote:
> >On Tue, 15 Nov 2005, Ian S. Nelson wrote:

Hi Ian,

> >>I've built an RPM for a-a-p and started the process to try and get in
> >>included in to Mandriva.
> >>
> >I would like to do the same for openSUSE. I think I would need:
> >- a source rpm
> >- an idea on how much a-a-p is used so I convince the maintainers to
> >  include the package
> >
> >I can't download from mandriva incoming. I would like to have the
> >source rpm so I can try if it works on SUSE 10.0 out of the box.
>
> Here is the source RPM.

Thanks. I'm also sending this reply to the opensuse-packaging
mailing list. Therefor I also attached your original spec file
and do I need some advertising:

A-A-P makes it easy to locate, download, build and install software. 
It also supports browsing source code, developing programs, managing 
different versions and distribution of software and documentation. 
This means that A-A-P is useful both for users and for developers.
http://www.a-a-p.org/
A-A-P is created by vim creator Bram Moolenaar.

I installed it on SUSE 10.0:

--------------8<--------------8<--------------8<--------------
rpm -Uvh a-a-p-1.079-1mdk.src.rpm
1:a-a-p                  warning: user ian does not exist - using root
warning: group ian does not exist - using root
warning: user ian does not exist - using root
warning: group ian does not exist - using root
########################################### [100%]
--------------8<--------------8<--------------8<--------------

So the spec file needs to be adjusted so it will be installed as
user root without warnings.

Installing the src.rpm gives a dependancy problem:

--------------8<--------------8<--------------8<--------------
rpmbuild --rebuild /home/marsman/projects/aap/a-a-p-1.07
Installing /home/marsman/projects/aap/a-a-p-1.079-1mdk.src.rpm
warning: user ian does not exist - using root
warning: group ian does not exist - using root
warning: user ian does not exist - using root
warning: group ian does not exist - using root
error: Failed build dependencies:
        libpython-devel is needed by a-a-p-1.079-1mdk
--------------8<--------------8<--------------8<--------------

This looks like an inconsistency in the naming of a package,
on SUSE 10.0 I have:

--------------8<--------------8<--------------8<--------------
rpm -qi python-devel
Name        : python-devel                 Relocations: (not relocatable)
Version     : 2.4.1                             Vendor: SUSE LINUX Products GmbH, Nuern
berg, Germany
Release     : 3                             Build Date: Tue Sep 13 02:48:40 2005
Install date: Sun Oct 23 20:34:02 2005      Build Host: bizet.suse.de
Group       : Development/Languages/Python   Source RPM: python-2.4.1-3.src.rpm
Size        : 13912546                         License: Artistic License, Other License
(s), see package
Signature   : DSA/SHA1, Tue Sep 13 04:01:07 2005, Key ID a84edae89c800aca
Packager    : http://www.suse.de/feedback
URL         : http://www.python.org/
Summary     : Include Files and Libraries Mandatory for Building Python Modules.
Description :
The Python programming language's interpreter can be extended with
dynamically loaded extensions and can be embedded in other programs.

This package contains header files, a static library, and development
tools for building Python modules, extending the Python interpreter or
embedding Python in applications.

This also includes the Python distutils, which were in the Python
package up to version 2.2.2.

Authors:
--------
    Guido van Rossum <guido@python.org>
	Distribution: SUSE LINUX 10.0 (i586)
--------------8<--------------8<--------------8<--------------

So it looks like we'll need a:

BuildRequires: libpython-devel

for Mandriva

and

BuildRequires: python-devel

for SUSE.

How can this be done so that it will work on as many rpm using distros as
possible?

Some info on building packages for openSUSE:
http://www.opensuse.org/SUSE_Build_Tutorial

Have a nice weekend,

Aschwin Marsman

-- 
aschwin@marsman.org              http://www.marsman.org
["a-a-p.spec" (TEXT/PLAIN)]

%define name a-a-p
%define version 1.079
%define release 1mdk

Summary: Open Source software construction tool
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://internap.dl.sourceforge.net/sourceforge/a-a-p/aap-1.079.tar.bz2
License: GPL
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildArchitectures: noarch
BuildRequires: libpython-devel
Requires: python
Url: http://www.a-a-p.org/

%description
A-A-P is an Open Source software construction tool--that is, a build
tool; an improved substitute for the classic Make utility; a better way
to build software.  

a-a-p "configuration files" are similar to makefile but they can include Python.
a-a-p uses MD5 signatures to rebuild only when the contents of a file have
really changed, not just when the timestamp has been touched.  a-a-p
supports side-by-side variant builds, and is easily extended with user-
defined Builder and/or Scanner objects.  Most of the a-a-p logic is object oriented, 
including default build rules for many types of program,  they are all overloadable 
also.

%prep
%setup -q

%build
mkdir -p $RPM_BUILD_ROOT/usr
 

%install
export PYTHONOPTIMIZE=1
./aap PREFIX=$RPM_BUILD_ROOT/usr install

cd $RPM_BUILD_ROOT/usr/bin
rm aap
ln -s /usr/lib/aap/Exec-1.079/aap aap




%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root.-)
   /usr/bin/aap
   /usr/lib/aap/Exec-1.079/AapVersion.py
   /usr/lib/aap/Exec-1.079/AapVersion.pyo
   /usr/lib/aap/Exec-1.079/Action.py
   /usr/lib/aap/Exec-1.079/Action.pyo
   /usr/lib/aap/Exec-1.079/Args.py
   /usr/lib/aap/Exec-1.079/Args.pyo
   /usr/lib/aap/Exec-1.079/COPYING
   /usr/lib/aap/Exec-1.079/Cache.py
   /usr/lib/aap/Exec-1.079/Cache.pyo
   /usr/lib/aap/Exec-1.079/Commands.py
   /usr/lib/aap/Exec-1.079/Commands.pyo
   /usr/lib/aap/Exec-1.079/Conftest.py
   /usr/lib/aap/Exec-1.079/Conftest.pyo
   /usr/lib/aap/Exec-1.079/CopyMove.py
   /usr/lib/aap/Exec-1.079/CopyMove.pyo
   /usr/lib/aap/Exec-1.079/Depend.py
   /usr/lib/aap/Exec-1.079/Depend.pyo
   /usr/lib/aap/Exec-1.079/Dictlist.py
   /usr/lib/aap/Exec-1.079/Dictlist.pyo
   /usr/lib/aap/Exec-1.079/DoAddDef.py
   /usr/lib/aap/Exec-1.079/DoAddDef.pyo
   /usr/lib/aap/Exec-1.079/DoArgs.py
   /usr/lib/aap/Exec-1.079/DoArgs.pyo
   /usr/lib/aap/Exec-1.079/DoBuild.py
   /usr/lib/aap/Exec-1.079/DoBuild.pyo
   /usr/lib/aap/Exec-1.079/DoConf.py
   /usr/lib/aap/Exec-1.079/DoConf.pyo
   /usr/lib/aap/Exec-1.079/DoInstall.py
   /usr/lib/aap/Exec-1.079/DoInstall.pyo
   /usr/lib/aap/Exec-1.079/DoRead.py
   /usr/lib/aap/Exec-1.079/DoRead.pyo
   /usr/lib/aap/Exec-1.079/Error.py
   /usr/lib/aap/Exec-1.079/Error.pyo
   /usr/lib/aap/Exec-1.079/Filetype.py
   /usr/lib/aap/Exec-1.079/Filetype.pyo
   /usr/lib/aap/Exec-1.079/Global.py
   /usr/lib/aap/Exec-1.079/Global.pyo
   /usr/lib/aap/Exec-1.079/Main.py
   /usr/lib/aap/Exec-1.079/Main.pyo
   /usr/lib/aap/Exec-1.079/Message.py
   /usr/lib/aap/Exec-1.079/Message.pyo
   /usr/lib/aap/Exec-1.079/Node.py
   /usr/lib/aap/Exec-1.079/Node.pyo
   /usr/lib/aap/Exec-1.079/ParsePos.py
   /usr/lib/aap/Exec-1.079/ParsePos.pyo
   /usr/lib/aap/Exec-1.079/PkgInstall.py
   /usr/lib/aap/Exec-1.079/PkgInstall.pyo
   /usr/lib/aap/Exec-1.079/Port.py
   /usr/lib/aap/Exec-1.079/Port.pyo
   /usr/lib/aap/Exec-1.079/PrintProfile.py
   /usr/lib/aap/Exec-1.079/PrintProfile.pyo
   /usr/lib/aap/Exec-1.079/Process.py
   /usr/lib/aap/Exec-1.079/Process.pyo
   /usr/lib/aap/Exec-1.079/README.txt
   /usr/lib/aap/Exec-1.079/RecPos.py
   /usr/lib/aap/Exec-1.079/RecPos.pyo
   /usr/lib/aap/Exec-1.079/RecPython.py
   /usr/lib/aap/Exec-1.079/RecPython.pyo
   /usr/lib/aap/Exec-1.079/Remote.py
   /usr/lib/aap/Exec-1.079/Remote.pyo
   /usr/lib/aap/Exec-1.079/RootShell.py
   /usr/lib/aap/Exec-1.079/RootShell.pyo
   /usr/lib/aap/Exec-1.079/Rule.py
   /usr/lib/aap/Exec-1.079/Rule.pyo
   /usr/lib/aap/Exec-1.079/Scope.py
   /usr/lib/aap/Exec-1.079/Scope.pyo
   /usr/lib/aap/Exec-1.079/Sign.py
   /usr/lib/aap/Exec-1.079/Sign.pyo
   /usr/lib/aap/Exec-1.079/Util.py
   /usr/lib/aap/Exec-1.079/Util.pyo
   /usr/lib/aap/Exec-1.079/VersCont.py
   /usr/lib/aap/Exec-1.079/VersCont.pyo
   /usr/lib/aap/Exec-1.079/VersContCvs.py
   /usr/lib/aap/Exec-1.079/VersContCvs.pyo
   /usr/lib/aap/Exec-1.079/Work.py
   /usr/lib/aap/Exec-1.079/Work.pyo
   /usr/lib/aap/Exec-1.079/__init__.py
   /usr/lib/aap/Exec-1.079/__init__.pyo
   /usr/lib/aap/Exec-1.079/aap
   /usr/lib/aap/Exec-1.079/aap.py
   /usr/lib/aap/Exec-1.079/aap.pyo
   /usr/lib/aap/Exec-1.079/aapnetrc.py
   /usr/lib/aap/Exec-1.079/aapnetrc.pyo
   /usr/lib/aap/Exec-1.079/aapre.py
   /usr/lib/aap/Exec-1.079/default.aap
   /usr/lib/aap/Exec-1.079/doc/appendix.html
   /usr/lib/aap/Exec-1.079/doc/exec.html
   /usr/lib/aap/Exec-1.079/doc/exec.pdf
   /usr/lib/aap/Exec-1.079/doc/index.html
   /usr/lib/aap/Exec-1.079/doc/license.html
   /usr/lib/aap/Exec-1.079/doc/ref-arguments.html
   /usr/lib/aap/Exec-1.079/doc/ref-assign.html
   /usr/lib/aap/Exec-1.079/doc/ref-attributes.html
   /usr/lib/aap/Exec-1.079/doc/ref-commands.html
   /usr/lib/aap/Exec-1.079/doc/ref-filetype.html
   /usr/lib/aap/Exec-1.079/doc/ref-modules.html
   /usr/lib/aap/Exec-1.079/doc/ref-python.html
   /usr/lib/aap/Exec-1.079/doc/ref-syntax.html
   /usr/lib/aap/Exec-1.079/doc/ref-tools.html
   /usr/lib/aap/Exec-1.079/doc/ref-variables.html
   /usr/lib/aap/Exec-1.079/doc/ref-varscope.html
   /usr/lib/aap/Exec-1.079/doc/reference.html
   /usr/lib/aap/Exec-1.079/doc/tutor-actions.html
   /usr/lib/aap/Exec-1.079/doc/tutor-compile.html
   /usr/lib/aap/Exec-1.079/doc/tutor-cvs.html
   /usr/lib/aap/Exec-1.079/doc/tutor-distribute.html
   /usr/lib/aap/Exec-1.079/doc/tutor-include.html
   /usr/lib/aap/Exec-1.079/doc/tutor-pipe.html
   /usr/lib/aap/Exec-1.079/doc/tutor-port.html
   /usr/lib/aap/Exec-1.079/doc/tutor-python.html
   /usr/lib/aap/Exec-1.079/doc/tutor-start.html
   /usr/lib/aap/Exec-1.079/doc/tutor-variant.html
   /usr/lib/aap/Exec-1.079/doc/tutor-website.html
   /usr/lib/aap/Exec-1.079/doc/tutorial.html
   /usr/lib/aap/Exec-1.079/doc/user-autoconf.html
   /usr/lib/aap/Exec-1.079/doc/user-autodep.html
   /usr/lib/aap/Exec-1.079/doc/user-basics.html
   /usr/lib/aap/Exec-1.079/doc/user-configure.html
   /usr/lib/aap/Exec-1.079/doc/user-cvs.html
   /usr/lib/aap/Exec-1.079/doc/user-debug.html
   /usr/lib/aap/Exec-1.079/doc/user-depend.html
   /usr/lib/aap/Exec-1.079/doc/user-fetch.html
   /usr/lib/aap/Exec-1.079/doc/user-filetype.html
   /usr/lib/aap/Exec-1.079/doc/user-install.html
   /usr/lib/aap/Exec-1.079/doc/user-issue.html
   /usr/lib/aap/Exec-1.079/doc/user-language.html
   /usr/lib/aap/Exec-1.079/doc/user-makedif.html
   /usr/lib/aap/Exec-1.079/doc/user-package.html
   /usr/lib/aap/Exec-1.079/doc/user-porting.html
   /usr/lib/aap/Exec-1.079/doc/user-publish.html
   /usr/lib/aap/Exec-1.079/doc/user-python.html
   /usr/lib/aap/Exec-1.079/doc/user-tools.html
   /usr/lib/aap/Exec-1.079/doc/user-variant.html
   /usr/lib/aap/Exec-1.079/doc/user-version.html
   /usr/lib/aap/Exec-1.079/doc/user.html
   /usr/lib/aap/Exec-1.079/import_re.py
   /usr/lib/aap/Exec-1.079/import_re.pyo
   /usr/lib/aap/Exec-1.079/modules/d.aap
   /usr/lib/aap/Exec-1.079/modules/kde.aap
   /usr/lib/aap/Exec-1.079/modules/libtool.aap
   /usr/lib/aap/Exec-1.079/modules/qt.aap
   /usr/lib/aap/Exec-1.079/modules/rectest.aap
   /usr/lib/aap/Exec-1.079/popenerr.py
   /usr/lib/aap/Exec-1.079/popenerr.pyo
   /usr/lib/aap/Exec-1.079/tools/__init__.py
   /usr/lib/aap/Exec-1.079/tools/__init__.pyo
   /usr/lib/aap/Exec-1.079/tools/bcc.py
   /usr/lib/aap/Exec-1.079/tools/bcc.pyo
   /usr/lib/aap/Exec-1.079/tools/dmd.py
   /usr/lib/aap/Exec-1.079/tools/dmd.pyo
   /usr/lib/aap/Exec-1.079/tools/gcc.py
   /usr/lib/aap/Exec-1.079/tools/gcc.pyo
   /usr/lib/aap/Exec-1.079/tools/icc.py
   /usr/lib/aap/Exec-1.079/tools/icc.pyo
   /usr/lib/aap/Exec-1.079/tools/mingw.py
   /usr/lib/aap/Exec-1.079/tools/mingw.pyo
   /usr/lib/aap/Exec-1.079/tools/msvc.py
   /usr/lib/aap/Exec-1.079/tools/msvc.pyo
   /usr/man/man1/aap.1.bz2



%changelog
* Mon Nov 7 2005 Ian S. Nelson <nelsonis@earthlink.net> 1.079
- Initial mdk RPM package




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic