packaging fixes
This commit is contained in:
parent
39f4416dfd
commit
9912e2d7ac
@ -17,9 +17,8 @@ BuildRequires: automake
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: libsysfs-devel
|
||||
BuildRequires: sg3_utils-devel
|
||||
BuildRequires: make
|
||||
BuildRequires: make
|
||||
Requires(post): grep sed
|
||||
Requires(postun): grep sed
|
||||
|
||||
%description
|
||||
zFCP HBA API Library is an implementation of FC-HBA (see www.t11.org) for
|
||||
@ -31,8 +30,6 @@ License: CPL
|
||||
Summary: zFCP HBA API Library -- Documentation
|
||||
URL: http://www.ibm.com/developerworks/linux/linux390/zfcp-hbaapi.html
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: s390utils-libzfcphbaapi-docs = 2:1.20.0-4
|
||||
Obsoletes: s390utils-libzfcphbaapi-docs <= 2:1.20.0-3
|
||||
|
||||
%description docs
|
||||
Documentation for the zFCP HBA API Library.
|
||||
@ -46,13 +43,16 @@ Documentation for the zFCP HBA API Library.
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
make EXTRA_CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
# manually disable rpath
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
make EXTRA_CFLAGS="-fno-strict-aliasing"
|
||||
|
||||
|
||||
%install
|
||||
%makeinstall docdir=$RPM_BUILD_ROOT%{_docdir}/%{name}
|
||||
%makeinstall docdir=%{buildroot}%{_docdir}/%{name}
|
||||
# keep only html docs
|
||||
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/latex
|
||||
rm -rf %{buildroot}%{_docdir}/%{name}/latex
|
||||
|
||||
|
||||
%post
|
||||
|
||||
Loading…
Reference in New Issue
Block a user