2007-01-15 23:17:46 +00:00
|
|
|
#
|
2011-10-04 08:40:51 +00:00
|
|
|
# spec file for package iprutils
|
2007-01-15 23:17:46 +00:00
|
|
|
#
|
2020-04-22 11:30:27 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-15 23:17:46 +00:00
|
|
|
#
|
2008-08-28 00:04:19 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2020-04-22 11:30:27 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:17:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2020-08-20 19:16:12 +00:00
|
|
|
%define vmajor 2
|
|
|
|
|
%define vminor 4
|
|
|
|
|
%define vpatch 19
|
|
|
|
|
%define tag rel-%{vmajor}-%{vminor}-%{vpatch}
|
2007-01-15 23:17:46 +00:00
|
|
|
Name: iprutils
|
2012-03-20 21:34:28 +00:00
|
|
|
# NOTE: package's changelog is hidden in % changelog section
|
|
|
|
|
# in file iprutils/spec/iprutils.spec
|
2020-08-20 19:16:12 +00:00
|
|
|
Version: %{vmajor}.%{vminor}.%{vpatch}
|
2012-05-16 22:34:41 +00:00
|
|
|
Release: 0
|
2012-05-16 22:32:33 +00:00
|
|
|
Summary: Utilities for the IBM Power Linux RAID Adapters
|
2012-05-16 22:34:41 +00:00
|
|
|
License: CPL-1.0
|
2007-01-15 23:17:46 +00:00
|
|
|
Group: Hardware/Other
|
2020-08-20 15:56:13 +00:00
|
|
|
URL: https://github.com/bjking1/iprutils/releases
|
2020-08-20 19:16:12 +00:00
|
|
|
Source: https://github.com/bjking1/iprutils/archive/%{tag}.tar.gz#/%{name}-%{version}.tar.gz
|
2016-04-12 08:34:47 +00:00
|
|
|
BuildRequires: libtool
|
2017-10-19 09:33:33 +00:00
|
|
|
BuildRequires: pkgconfig
|
2014-04-12 21:37:50 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2016-04-12 08:34:47 +00:00
|
|
|
BuildRequires: zlib-devel
|
2012-05-16 22:32:33 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2015-10-23 21:12:36 +00:00
|
|
|
ExclusiveArch: ppc ppc64 ppc64le
|
2014-07-03 14:55:44 +00:00
|
|
|
%systemd_requires
|
2017-10-19 09:33:33 +00:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
|
BuildRequires: pkgconfig(form)
|
|
|
|
|
BuildRequires: pkgconfig(ncurses)
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
%endif
|
2007-01-15 23:17:46 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Provides a suite of utilities to manage and configure SCSI devices
|
|
|
|
|
supported by the ipr SCSI storage device driver.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-08-20 19:16:12 +00:00
|
|
|
%setup -q -n %{name}-%{tag}
|
2007-01-15 23:17:46 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-02-07 07:59:52 +00:00
|
|
|
export CPPFLAGS="$(pkg-config ncurses form --cflags)"
|
|
|
|
|
export LIBS="$(pkg-config ncurses form --libs)"
|
2020-08-20 15:56:13 +00:00
|
|
|
source ./bootstrap.sh
|
2017-10-19 09:33:33 +00:00
|
|
|
autoreconf
|
2016-04-12 08:34:47 +00:00
|
|
|
%configure --sbindir=%{_sbindir} --libdir=%{_libdir} --disable-static
|
2017-10-19 09:33:33 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:17:46 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-10-19 09:33:33 +00:00
|
|
|
%make_install
|
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rciprdump
|
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rciprinit
|
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rciprupdate
|
2015-10-23 20:42:54 +00:00
|
|
|
|
2015-07-27 15:09:05 +00:00
|
|
|
%pre
|
2014-05-23 12:06:22 +00:00
|
|
|
%service_add_pre iprdump.service
|
|
|
|
|
%service_add_pre iprinit.service
|
|
|
|
|
%service_add_pre iprupdate.service
|
2007-01-15 23:17:46 +00:00
|
|
|
|
2015-07-27 15:09:05 +00:00
|
|
|
%post
|
2014-04-12 21:37:50 +00:00
|
|
|
%service_add_post iprdump.service
|
|
|
|
|
%service_add_post iprinit.service
|
|
|
|
|
%service_add_post iprupdate.service
|
2007-01-15 23:17:46 +00:00
|
|
|
|
2007-10-23 23:37:46 +00:00
|
|
|
%preun
|
2014-04-12 21:37:50 +00:00
|
|
|
%service_del_preun iprdump.service
|
|
|
|
|
%service_del_preun iprinit.service
|
|
|
|
|
%service_del_preun iprupdate.service
|
2007-10-23 23:37:46 +00:00
|
|
|
|
2007-01-15 23:17:46 +00:00
|
|
|
%postun
|
2014-04-12 21:37:50 +00:00
|
|
|
%service_del_postun iprdump.service
|
|
|
|
|
%service_del_postun iprinit.service
|
|
|
|
|
%service_del_postun iprupdate.service
|
2007-01-15 23:17:46 +00:00
|
|
|
|
|
|
|
|
%files
|
2018-11-07 07:46:03 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README
|
2015-07-27 15:09:05 +00:00
|
|
|
%{_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
|
2018-11-07 07:46:03 +00:00
|
|
|
%{_udevrulesdir}/*
|
2008-04-21 16:44:41 +00:00
|
|
|
|
2007-03-29 10:02:11 +00:00
|
|
|
%changelog
|