Stefan van der Eijk wrote:
> Charles A Edwards wrote:
>
>> On Thu, 09 May 2002 15:27:58 +0200
>> Stefan van der Eijk <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>>> --=-=-=
>>>>
>>>> * Mon Apr 15 2002 Guillaume Cottenceau <[EMAIL PROTECTED]>
>>>> 1.6.1-1mdk
>>>>
>>>> - new version
>>>>
>>>>
>>>
>>> Just wondering why automake1.6 doesn't provide "automake".
>>>
>>> # rpm -qp --provides
>>> /mirrors/cooker/i586/Mandrake/RPMS/automake1.6-1.6.1-1mdk.noarch.rpm
>>> perl(Automake::General) perl(Automake::Struct) = 0.58
>>> perl(Automake::Struct::Tie_ISA) perl(Automake::XFile) = 1.1
>>> automake1.6 = 1.6.1-1mdk
>>>
>>
>> Because for now automake is provided by automake-1.4-20.p5.mdk.
>
> Sure. But unlike packages like libglib1.2-devel and libglib2.0_0-devel
> (which can be installed next to each other) the two automake's can't.
> They basically provide the same functionality, so shouldn't they both
> provide "automake"?
This should work:
$ diff automake1.6.spec.orig automake1.6.spec -u
--- automake1.6.spec.orig 2002-05-09 20:21:44.000000000 +0200
+++ automake1.6.spec 2002-05-09 20:48:07.000000000 +0200
@@ -1,7 +1,7 @@
%define name automake1.6
%define version 1.6.1
%define prefix %{_prefix}
-%define release 1mdk
+%define release 2mdk
Summary: A GNU tool for automatically creating Makefiles.
Name: %{name}
@@ -15,7 +15,8 @@
Prereq: /sbin/install-info
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-Conflicts: automake
+Provides: automake = %version
+Conflicts: automake < %version
Obsoletes: automake1.5
%description
@@ -57,6 +58,10 @@
%{_datadir}/aclocal*
%changelog
+* Thu May 9 2002 Stefan van der Eijk <[EMAIL PROTECTED]> 1.6.1-2mdk
+- Provides automake = %%version
+- Add version to Conflicts
+
* Mon Apr 15 2002 Guillaume Cottenceau <[EMAIL PROTECTED]> 1.6.1-1mdk
- new version