- Autoconfiscate the package thus easing build and installation.

OBS-URL: https://build.opensuse.org/package/show/filesystems/gptfdisk?expand=0&rev=5
This commit is contained in:
Philipp Thomas 2014-10-10 15:16:59 +00:00 committed by Git OBS Bridge
parent c67ab6dac0
commit 63196b5bd3
3 changed files with 21 additions and 8 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20c3ade5b6aec4803b34c456d33613ec41feb7da398e7b501f81c86d2a6d810a
size 1144

View File

@ -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 Tue Mar 4 10:19:25 UTC 2014 - sweet_f_a@gmx.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package gptfdisk # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -25,6 +25,7 @@ Group: System/Base
Url: http://rodsbooks.com/gdisk Url: http://rodsbooks.com/gdisk
Source: http://downloads.sf.net/%name/%name-%version.tar.gz Source: http://downloads.sf.net/%name/%name-%version.tar.gz
Source1: gptfdisk-autoconfiscation.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
@ -34,8 +35,12 @@ BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(uuid)
%else %else
BuildRequires: libuuid-devel BuildRequires: libuuid-devel
BuildRequires: pkgconfig
BuildRequires: popt-devel BuildRequires: popt-devel
%endif %endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: pkgconfig
Obsoletes: gdisk < %version-%release Obsoletes: gdisk < %version-%release
Provides: 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 package) fixes some problems with MBR disks that can be created by
buggy partitioning software. buggy partitioning software.
%package fixparts %package fixparts
Summary: A tool for repairing certain types of damage to MBR disks Summary: A tool for repairing certain types of damage to MBR disks
Group: System/Base Group: System/Base
@ -58,16 +63,16 @@ and enables changing primary vs. logical partition status. Also
provides a few additional partition manipulation features. provides a few additional partition manipulation features.
%prep %prep
%setup -q %setup -q -a1
rm -f Makefile
%build %build
CFLAGS="%optflags" CXXFLAGS="%optflags" make %{?_smp_mflags} autoreconf -fi
%configure
make %{?_smp_mflags}
%install %install
b="%buildroot"; make DESTDIR=%{_buildroot} install
mkdir -p "$b/%_sbindir" "$b/%_mandir/man8";
install -pm0755 fixparts {,c,s}gdisk "$b/%_sbindir/";
install -pm0644 *.8 "$b/%_mandir/man8/";
%check %check
./gdisk_test.sh ./gdisk_test.sh