Use LDFLAGS from redhat-rpm-config
This commit is contained in:
parent
132ca49cd2
commit
b151420288
@ -1,6 +1,6 @@
|
|||||||
Name: pciutils
|
Name: pciutils
|
||||||
Version: 3.5.6
|
Version: 3.5.6
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
|
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
|
||||||
Source1: multilibconfigh
|
Source1: multilibconfigh
|
||||||
|
|
||||||
@ -55,12 +55,12 @@ devices connected to the PCI bus.
|
|||||||
%patch2 -p1 -b .dird
|
%patch2 -p1 -b .dird
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make SHARED="no" ZLIB="no" LIBKMOD=yes STRIP="" OPT="$RPM_OPT_FLAGS" PREFIX="/usr" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
|
make SHARED="no" ZLIB="no" LIBKMOD=yes STRIP="" OPT="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" PREFIX="/usr" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
|
||||||
mv lib/libpci.a lib/libpci.a.toinstall
|
mv lib/libpci.a lib/libpci.a.toinstall
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
make SHARED="yes" ZLIB="no" LIBKMOD=yes STRIP="" OPT="$RPM_OPT_FLAGS" PREFIX="/usr" LIBDIR="/%{_lib}" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
|
make SHARED="yes" ZLIB="no" LIBKMOD=yes STRIP="" OPT="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" PREFIX="/usr" LIBDIR="/%{_lib}" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" %{?_smp_mflags}
|
||||||
|
|
||||||
#fix lib vs. lib64 in libpci.pc (static Makefile is used)
|
#fix lib vs. lib64 in libpci.pc (static Makefile is used)
|
||||||
sed -i "s|^libdir=.*$|libdir=/%{_lib}|" lib/libpci.pc
|
sed -i "s|^libdir=.*$|libdir=/%{_lib}|" lib/libpci.pc
|
||||||
@ -115,6 +115,9 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
|||||||
%{_includedir}/pci
|
%{_includedir}/pci
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 24 2018 Florian Weimer <fweimer@redhat.com> - 3.5.6-3
|
||||||
|
- Use LDFLAGS from redhat-rpm-config
|
||||||
|
|
||||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.6-2
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.6-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user