-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed incompatibity with RH7 introduced by ntop@02030ac
- Loading branch information
Showing
1 changed file
with
4 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,10 @@ you will need to install %{name}-dev. | |
PATH=/usr/bin:/bin:/usr/sbin:/sbin | ||
|
||
%define includedir /usr/include/ndpi | ||
%{?el7:%define libdir /usr/lib} | ||
|
||
# Default and fallback | ||
%define libdir /usr/lib | ||
|
||
%{?el8:%define libdir /usr/lib64} | ||
%{?el9:%define libdir /usr/lib64} | ||
%define bindir /usr/bin | ||
|
@@ -83,16 +86,9 @@ rm -fr $RPM_BUILD_ROOT | |
%files | ||
%defattr(-, root, root) | ||
|
||
%if %{defined libdir} | ||
%{libdir}/libndpi.so | ||
%{libdir}/libndpi.so.@MAJOR_RELEASE@ | ||
%{libdir}/libndpi.so.@PACKAGE_VERSION@ | ||
%else | ||
# Fallback for rpmbuild on Ubuntu (CI) | ||
/usr/lib/libndpi.so | ||
/usr/lib/libndpi.so.@MAJOR_RELEASE@ | ||
/usr/lib/libndpi.so.@PACKAGE_VERSION@ | ||
%endif | ||
/usr/bin/ndpiReader | ||
/usr/share/ndpi/ndpiCustomCategory.txt | ||
/usr/share/ndpi/ndpiProtos.txt | ||
|
@@ -106,12 +102,7 @@ rm -fr $RPM_BUILD_ROOT | |
%defattr(-,root,root,-) | ||
|
||
%{includedir} | ||
%if %{defined libdir} | ||
%{libdir}/libndpi.a | ||
%else | ||
# Fallback for rpmbuild on Ubuntu (CI) | ||
/usr/lib/libndpi.a | ||
%endif | ||
|
||
%changelog | ||
* Mon Nov 19 2018 Alfredo Cardigliano <[email protected]> 2.5 | ||
|