diff --git a/gptfdisk-autoconfiscation.tar.xz b/gptfdisk-autoconfiscation.tar.xz new file mode 100644 index 0000000..80e242b --- /dev/null +++ b/gptfdisk-autoconfiscation.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20c3ade5b6aec4803b34c456d33613ec41feb7da398e7b501f81c86d2a6d810a +size 1144 diff --git a/gptfdisk.changes b/gptfdisk.changes index fd8cc59..0e16b9c 100644 --- a/gptfdisk.changes +++ b/gptfdisk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 10 17:15:58 CEST 2014 - pth@suse.de + +- Autoconfiscate the package thus easing build and installation. + ------------------------------------------------------------------- Tue Mar 4 10:19:25 UTC 2014 - sweet_f_a@gmx.de diff --git a/gptfdisk.spec b/gptfdisk.spec index 9184e04..e8ca48e 100644 --- a/gptfdisk.spec +++ b/gptfdisk.spec @@ -1,7 +1,7 @@ # # spec file for package gptfdisk # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products 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,6 +25,7 @@ Group: System/Base Url: http://rodsbooks.com/gdisk Source: http://downloads.sf.net/%name/%name-%version.tar.gz +Source1: gptfdisk-autoconfiscation.tar.xz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc-c++ BuildRequires: ncurses-devel @@ -34,8 +35,12 @@ BuildRequires: pkgconfig(popt) BuildRequires: pkgconfig(uuid) %else BuildRequires: libuuid-devel +BuildRequires: pkgconfig BuildRequires: popt-devel %endif +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: pkgconfig Obsoletes: gdisk < %version-%release Provides: gdisk = %version-%release @@ -47,7 +52,7 @@ GPT-enabled partitioning tools; the fixparts utility (in the fixparts package) fixes some problems with MBR disks that can be created by buggy partitioning software. -%package fixparts +%package fixparts Summary: A tool for repairing certain types of damage to MBR disks Group: System/Base @@ -58,16 +63,16 @@ and enables changing primary vs. logical partition status. Also provides a few additional partition manipulation features. %prep -%setup -q +%setup -q -a1 +rm -f Makefile %build -CFLAGS="%optflags" CXXFLAGS="%optflags" make %{?_smp_mflags} +autoreconf -fi +%configure +make %{?_smp_mflags} %install -b="%buildroot"; -mkdir -p "$b/%_sbindir" "$b/%_mandir/man8"; -install -pm0755 fixparts {,c,s}gdisk "$b/%_sbindir/"; -install -pm0644 *.8 "$b/%_mandir/man8/"; +make DESTDIR=%{_buildroot} install %check ./gdisk_test.sh