109 lines
3.0 KiB
RPMSpec
109 lines
3.0 KiB
RPMSpec
|
#
|
||
|
# spec file for package iprutils
|
||
|
#
|
||
|
# Copyright (c) 2020 SUSE LLC
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
%define vmajor 2
|
||
|
%define vminor 4
|
||
|
%define vpatch 19
|
||
|
%define tag rel-%{vmajor}-%{vminor}-%{vpatch}
|
||
|
Name: iprutils
|
||
|
# NOTE: package's changelog is hidden in % changelog section
|
||
|
# in file iprutils/spec/iprutils.spec
|
||
|
Version: %{vmajor}.%{vminor}.%{vpatch}
|
||
|
Release: 0
|
||
|
Summary: Utilities for the IBM Power Linux RAID Adapters
|
||
|
License: CPL-1.0
|
||
|
Group: Hardware/Other
|
||
|
URL: https://github.com/bjking1/iprutils/releases
|
||
|
Source: https://github.com/bjking1/iprutils/archive/%{tag}.tar.gz#/%{name}-%{version}.tar.gz
|
||
|
BuildRequires: libtool
|
||
|
BuildRequires: pkgconfig
|
||
|
BuildRequires: systemd-rpm-macros
|
||
|
BuildRequires: zlib-devel
|
||
|
BuildRequires: pkgconfig(glib-2.0)
|
||
|
ExclusiveArch: ppc ppc64 ppc64le
|
||
|
%systemd_requires
|
||
|
%if 0%{?suse_version} > 1320
|
||
|
BuildRequires: pkgconfig(form)
|
||
|
BuildRequires: pkgconfig(ncurses)
|
||
|
%else
|
||
|
BuildRequires: ncurses-devel
|
||
|
%endif
|
||
|
|
||
|
%description
|
||
|
Provides a suite of utilities to manage and configure SCSI devices
|
||
|
supported by the ipr SCSI storage device driver.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{name}-%{tag}
|
||
|
|
||
|
%build
|
||
|
export CPPFLAGS="$(pkg-config ncurses form --cflags)"
|
||
|
export LIBS="$(pkg-config ncurses form --libs)"
|
||
|
source ./bootstrap.sh
|
||
|
autoreconf
|
||
|
%configure --sbindir=%{_sbindir} --libdir=%{_libdir} --disable-static
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
%make_install
|
||
|
ln -s service %{buildroot}%{_sbindir}/rciprdump
|
||
|
ln -s service %{buildroot}%{_sbindir}/rciprinit
|
||
|
ln -s service %{buildroot}%{_sbindir}/rciprupdate
|
||
|
|
||
|
%pre
|
||
|
%service_add_pre iprdump.service
|
||
|
%service_add_pre iprinit.service
|
||
|
%service_add_pre iprupdate.service
|
||
|
|
||
|
%post
|
||
|
%service_add_post iprdump.service
|
||
|
%service_add_post iprinit.service
|
||
|
%service_add_post iprupdate.service
|
||
|
|
||
|
%preun
|
||
|
%service_del_preun iprdump.service
|
||
|
%service_del_preun iprinit.service
|
||
|
%service_del_preun iprupdate.service
|
||
|
|
||
|
%postun
|
||
|
%service_del_postun iprdump.service
|
||
|
%service_del_postun iprinit.service
|
||
|
%service_del_postun iprupdate.service
|
||
|
|
||
|
%files
|
||
|
%license LICENSE
|
||
|
%doc README
|
||
|
%{_sbindir}/iprconfig
|
||
|
%{_sbindir}/iprdump
|
||
|
%{_sbindir}/iprupdate
|
||
|
%{_sbindir}/iprinit
|
||
|
%{_sbindir}/iprdbg
|
||
|
%{_sbindir}/iprsos
|
||
|
%{_mandir}/man8/*
|
||
|
%{_sysconfdir}/ha.d
|
||
|
%{_sysconfdir}/ha.d/resource.d
|
||
|
%{_sysconfdir}/ha.d/resource.d/iprha
|
||
|
%{_sysconfdir}/bash_completion.d/*
|
||
|
%{_unitdir}/*
|
||
|
%{_sbindir}/rciprdump
|
||
|
%{_sbindir}/rciprinit
|
||
|
%{_sbindir}/rciprupdate
|
||
|
%{_udevrulesdir}/*
|
||
|
|
||
|
%changelog
|