Submitting arguments to rpmbuild
Jonathan Ryshpan
jonrysh at pacbell.net
Thu Dec 1 23:03:46 UTC 2005
I'm trying to build an rpm with a little variation. The rpm in question
is audacity, whose start is shown at the end of this message.
There is a line starting "%{!?_without_mp3:" which is evidently a
conditional, controlled by the macro _without_mp3. How can I submit
this to rpmbuild? Or does it have to be edited into the spec file?
Rpmbuild seems to accept options intended for this purpose, since
"rpmbuild --help" returns the following text at the end:
Options implemented via popt alias/exec:
--dbpath=DIRECTORY use database in DIRECTORY
--with=<option> enable configure <option> for
build
--without=<option> disable configure <option> for
build
But I haven't been able to get anything like this to work.
Any help will be appreciated.
Thanks - jon
-------------------- audacity.spec --------------------
Name: audacity
Version: 1.2.3
Release: 5.lvn.1.4
Summary: A multitrack audio editor
Group: Applications/Multimedia
License: GPL
URL: http://audacity.sourceforge.net
Source:
http://dl.sf.net/sourceforge/audacity/audacity-src-1.2.3.tar.gz
Source1: audacity.png
Patch1: audacity-1.2.2-aboutdialog.patch
BuildRoot:
%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libogg-devel, libvorbis-devel, zlib-devel, perl
BuildRequires: gettext, zip, flac-devel, ladspa-devel
BuildRequires: libsamplerate-devel, libsndfile-devel
BuildRequires: libid3tag-devel, desktop-file-utils
%{!?_without_mp3:BuildRequires: libmad-devel}
%{?_with_gtk1:BuildRequires: wxGTK-devel}
%{!?_with_gtk1:BuildRequires: wxGTK2-devel}
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
# Compile options:
# --without mp3 : disable mp3 support
# --with gtk1 : use GTK+ version of wxGTK, else GTK2
version
# --with portaudiov19 : enable version 19 of portaudio (disables
portmixer)
%description
Audacity is a cross-platform multitrack audio editor. It allows you to
record sounds directly or to import Ogg, WAV, AIFF, AU, IRCAM, or MP3
files. It features a few simple effects, all of the editing features
you should need, and unlimited undo. The GUI was built with wxWindows
and the audio I/O currently uses OSS under Linux. Audacity runs on
Linux/*BSD, MacOS, and Windows.
...
More information about the fedora-list
mailing list