From 8fc20779e6f57eb88907ac16cc1f5019a70fe25e Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 15 Feb 2010 12:32:47 +0000 Subject: [PATCH] - fix linking with --no-add-needed (#564724) --- rpmreaper-0.1.6-librpm.patch | 12 ++++++++++++ rpmreaper.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 rpmreaper-0.1.6-librpm.patch diff --git a/rpmreaper-0.1.6-librpm.patch b/rpmreaper-0.1.6-librpm.patch new file mode 100644 index 0000000..c65ce34 --- /dev/null +++ b/rpmreaper-0.1.6-librpm.patch @@ -0,0 +1,12 @@ +diff -up rpmreaper-0.1.6/Makefile.librpm rpmreaper-0.1.6/Makefile +--- rpmreaper-0.1.6/Makefile.librpm 2009-04-02 10:18:29.000000000 +0200 ++++ rpmreaper-0.1.6/Makefile 2010-02-15 13:26:29.000000000 +0100 +@@ -2,7 +2,7 @@ NAME = rpmreaper + VERSION = 0.1.6 + + CFLAGS = -O -g -Wall +-LDFLAGS = -lrpmbuild -lncurses ++LDFLAGS = -lrpm -lncurses + + prefix = /usr/local + bindir = $(prefix)/bin diff --git a/rpmreaper.spec b/rpmreaper.spec index 3191e32..48f6a0d 100644 --- a/rpmreaper.spec +++ b/rpmreaper.spec @@ -1,12 +1,13 @@ Name: rpmreaper Version: 0.1.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A tool for removing packages from system Group: Applications/System License: GPLv2+ URL: https://fedorahosted.org/rpmreaper/ Source0: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.gz +Patch0: rpmreaper-0.1.6-librpm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel rpm-devel @@ -17,6 +18,7 @@ allows removing unnecessary packages and their dependencies from the system. %prep %setup -q +%patch0 -p1 -b .librpm %build make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" @@ -35,6 +37,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/%{name}.1* %changelog +* Mon Feb 15 2010 Miroslav Lichvar 0.1.6-3 +- fix linking with --no-add-needed (#564724) + * Sun Jul 26 2009 Fedora Release Engineering - 0.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild