On 09/14/2016 09:46 AM, David Howells wrote:
Florian Weimer <fwei...@redhat.com> wrote:

I think if you want silent deletion, you'll have to add “Obsoletes:
binutils-sh64-linux-gnu” to the cross-binutils-common package.

Yeah, the following worked:

@@ -129,6 +133,9 @@ converting addresses to file and line).
 Summary: Cross-build binary utility documentation and translation files
 Group: Development/Tools
 BuildArch: noarch
+%if !%{build_sh64}
+Obsoletes: binutils-sh64-linux-gnu
+%endif
 %description -n %{cross}-binutils-common
 Documentation, manual pages and translation files for cross-build binary image
 generation, manipulation and query tools.

I forgot to put the '!' in the %if condition, which didn't help.

David
--
devel mailing list
devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org


Be sure to properly version the obsoletes - something like

Obsoletes: binutils-sh64-linux-gnu < VERSION-RELEASE

Where VERSION-RELEASE is the version-release where you dropped the package.

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  or...@cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com
--
devel mailing list
devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to