Hey all,
I am pretty close on my first attempt at making RPMs for tintin++ using the HOW-TO as my guide.
When I run the
rpm -ba tintin.spec
It compiles okay, but tries to copy the executable to /usr/bin, and failing since I am not root, seems to exit without making any RPMs.
The man page for rpm doesn't describe -ba option, and on my redhat machines at work, it is rpmbuild for that step.
Why does it try to install it when all I want to do is create the RPMs?
What I expected was to have both RPMs made, and then test them for the install step.
I still have a patch to add, but wanted to get this much working first.
Here is my spec file:
%define name tintin
%define version 1.99.6
%define release %mkrel 1
Summary: tintin++ is a console based MUD client
Name: %name
Version: %version
Release: %release
License: GPL
Group: Applications
Source: %{name}-%{version}.tar.bz2
BuildRoot: %_tmppath/tt-buildroot
BuildRequires: glibc-headers-devel libpcre0-devel zlib1-devel
#Requires: tintin-update
URL: http://tintin.sourceforge.net/
%description
Cwallpaper is a GUI front end for wallpaper utilies such as xsetroot.
%prep
%setup -q -n tt/src
%build
%{configure} --prefix=%{_prefix}
%{__make} %{?_smp_mflags} %{?mflags}
%install
%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
%clean
test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-, root, root)
%{_bindir}/tt
%{_datadir}/tt/*
%changelog
* Wed Oct 17 2009 Artthou <gregmilford at gmail.com> 1.99.6-1pclos
- rebuild for pclos2009
Thanks in advance for tips and lessons...this is new to me.