From c4704268095a96b7cbb1b4fafa809695b2334f304fc581fee2f36b67abc0d8d2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 16 Mar 2015 15:52:54 +0000 Subject: [PATCH] Remove unnecessary buildrequires OBS-URL: https://build.opensuse.org/package/show/network/canutils?expand=0&rev=6 --- canutils.changes | 5 +++++ canutils.spec | 22 +++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/canutils.changes b/canutils.changes index 089b697..3de587a 100644 --- a/canutils.changes +++ b/canutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 16 15:48:41 UTC 2015 - jengelh@inai.de + +- Use source URLs, some more macros and some unneeded BuildRequires. + ------------------------------------------------------------------- Thu Aug 8 00:31:43 UTC 2013 - jengelh@inai.de diff --git a/canutils.spec b/canutils.spec index d13c803..cf1de64 100644 --- a/canutils.spec +++ b/canutils.spec @@ -1,7 +1,7 @@ # # spec file for package canutils # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,34 +25,30 @@ Release: 0 Url: http://pengutronix.de/software/socket-can/download/ #Git-Clone: git://git.pengutronix.de/git/tools/canutils -Source: %name-%version.tar.bz2 +Source: http://pengutronix.de/software/socket-can/download/canutils/v4.0/%name-%version.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: autoconf >= 2.59 -BuildRequires: automake -BuildRequires: libtool >= 2 -BuildRequires: pkgconfig +BuildRequires: pkg-config BuildRequires: xz -%if 0%{?suse_version} >= 1140 || 0%{?fedora_version} +%if 0%{?suse_version} >= 1140 || 0%{?fedora_version} BuildRequires: pkgconfig(libsocketcan) >= 0.0.8 -%else +%else BuildRequires: libsocketcan-devel >= 0.0.8 -%endif +%endif %description +Utilities for Controller Area Networks. %prep %setup -q %build -./autogen.sh; %configure --disable-static make %{?_smp_mflags}; %install -b="%buildroot"; -make install DESTDIR="$b"; +%make_install # There are no development files here.. -rm -Rf "$b/%_libdir/pkgconfig"; +rm -Rf "%buildroot/%_libdir/pkgconfig"; %files %defattr(-,root,root)