install headers [release 1.99.2-2mamba;Tue Apr 14 2015]
This commit is contained in:
parent
bafbc693ce
commit
798e455d41
@ -2,8 +2,8 @@
|
||||
%define libname libwireshark
|
||||
|
||||
Name: wireshark
|
||||
Version: 1.10.8
|
||||
Release: 1mamba
|
||||
Version: 1.99.2
|
||||
Release: 2mamba
|
||||
Summary: A free network protocol analyzer
|
||||
Group: Network/Monitoring
|
||||
Vendor: openmamba
|
||||
@ -76,29 +76,24 @@ This package contains static libraries and header files need for development.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#%patch0 -p0
|
||||
#%patch1 -p0
|
||||
#%patch2 -p0
|
||||
#sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.in
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
# FIXME: LDFLAGS must be set to avoid several link errors while
|
||||
# checking for luaL_openlib in -llualib:
|
||||
# undefined reference to `dlerror', `dlclose', `dlopen', `dlsym'
|
||||
%if %with_lua
|
||||
export LDFLAGS="-ldl"
|
||||
export LDFLAGS="-ldl `pkg-config --libs lua`"
|
||||
export CPPFLAGS="%{optflags} -I/usr/include/gtk"
|
||||
export CFLAGS="%{optflags} `pkg-config --cflags lua`"
|
||||
%endif
|
||||
%configure \
|
||||
--disable-usr-local \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--enable-dftest \
|
||||
--enable-randpkt \
|
||||
--with-ssl \
|
||||
--enable-wireshark
|
||||
#%configure \
|
||||
# --disable-usr-local \
|
||||
# --enable-shared \
|
||||
# --disable-static \
|
||||
# --enable-dftest \
|
||||
# --enable-randpkt \
|
||||
# --with-ssl \
|
||||
# --enable-wireshark
|
||||
|
||||
%cmake \
|
||||
-DLUA_LIBRARY=%{_libdir}/liblua.so
|
||||
|
||||
#% if %with_lua
|
||||
# --with-lua=`pkg-config --cflags lua5.1`
|
||||
@ -112,6 +107,9 @@ export CFLAGS="%{optflags} `pkg-config --cflags lua`"
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
# Workaround
|
||||
mkdir -p %{buildroot}/ui/gtk/ui
|
||||
|
||||
%makeinstall
|
||||
|
||||
# install program icons
|
||||
@ -124,6 +122,20 @@ done
|
||||
install -p -D %{name}.desktop \
|
||||
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
|
||||
#install headers
|
||||
install -d %{buildroot}%{_includedir}/wireshark/epan/crypt/
|
||||
install -d %{buildroot}%{_includedir}/wireshark/epan/dfilter/
|
||||
install -d %{buildroot}%{_includedir}/wireshark/epan/dissectors/
|
||||
install -d %{buildroot}%{_includedir}/wireshark/epan/ftypes/
|
||||
install -d %{buildroot}%{_includedir}/wireshark/wiretap/
|
||||
cp color.h config.h register.h %{buildroot}%{_includedir}/wireshark/
|
||||
cp epan/*.h %{buildroot}%{_includedir}/wireshark/epan/
|
||||
cp epan/crypt/*.h %{buildroot}%{_includedir}/wireshark/epan/crypt/
|
||||
cp epan/dfilter/*.h %{buildroot}%{_includedir}/wireshark/epan/dfilter/
|
||||
cp epan/dissectors/*.h %{buildroot}%{_includedir}/wireshark/epan/dissectors/
|
||||
cp epan/ftypes/*.h %{buildroot}%{_includedir}/wireshark/epan/ftypes/
|
||||
cp wiretap/*.h %{buildroot}%{_includedir}/wireshark/wiretap/
|
||||
|
||||
rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
||||
|
||||
%clean
|
||||
@ -135,6 +147,7 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/capinfos
|
||||
%{_bindir}/captype
|
||||
%{_bindir}/dftest
|
||||
%attr(4750,root,sysadmin) %{_bindir}/dumpcap
|
||||
%{_bindir}/editcap
|
||||
@ -145,7 +158,9 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
||||
%{_bindir}/reordercap
|
||||
%{_bindir}/text2pcap
|
||||
%{_bindir}/tshark
|
||||
%{_bindir}/tfshark
|
||||
%{_bindir}/wireshark
|
||||
%{_bindir}/wireshark-gtk
|
||||
%{_libdir}/%{name}/plugins/%{version}/*.so
|
||||
# the first two files are required by the help dialog
|
||||
#%{_datadir}/%{name}/*.lua
|
||||
@ -160,11 +175,10 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
||||
%{_datadir}/%{name}/diameter/*
|
||||
%{_datadir}/%{name}/dtds
|
||||
%{_datadir}/%{name}/help
|
||||
%{_datadir}/%{name}/init.lua
|
||||
%{_datadir}/%{name}/manuf
|
||||
%{_datadir}/%{name}/pdml2html.xsl
|
||||
%dir %{_datadir}/%{name}/profiles
|
||||
%{_datadir}/%{name}/profiles/*
|
||||
#%dir %{_datadir}/%{name}/profiles
|
||||
#%{_datadir}/%{name}/profiles/*
|
||||
%dir %{_datadir}/%{name}/radius
|
||||
%{_datadir}/%{name}/radius/*
|
||||
%{_datadir}/%{name}/tpncp
|
||||
@ -179,6 +193,20 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
||||
|
||||
%files -n %{libname}
|
||||
%defattr(-,root,root)
|
||||
%dir %{_includedir}/wireshark
|
||||
%{_includedir}/wireshark/*.h
|
||||
%dir %{_includedir}/wireshark/epan
|
||||
%{_includedir}/wireshark/epan/*.h
|
||||
%dir %{_includedir}/wireshark/epan/crypt
|
||||
%{_includedir}/wireshark/epan/crypt/*.h
|
||||
%dir %{_includedir}/wireshark/epan/dfilter
|
||||
%{_includedir}/wireshark/epan/dfilter/*.h
|
||||
%dir %{_includedir}/wireshark/epan/dissectors
|
||||
%{_includedir}/wireshark/epan/dissectors/*h
|
||||
%dir %{_includedir}/wireshark/epan/ftypes
|
||||
%{_includedir}/wireshark/epan/ftypes/*.h
|
||||
%dir %{_includedir}/wireshark/wiretap
|
||||
%{_includedir}/wireshark/wiretap/*.h
|
||||
%{_libdir}/libwireshark.so.*
|
||||
%{_libdir}/libwiretap.so.*
|
||||
%{_libdir}/libwsutil.so.*
|
||||
@ -186,16 +214,31 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
||||
|
||||
%files -n %{libname}-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libwireshark.la
|
||||
#%{_libdir}/libwireshark.la
|
||||
%{_libdir}/libwireshark.so
|
||||
%{_libdir}/libwiretap.la
|
||||
#%{_libdir}/libwiretap.la
|
||||
%{_libdir}/libwiretap.so
|
||||
%{_libdir}/libwsutil.la
|
||||
#%{_libdir}/libwsutil.la
|
||||
%{_libdir}/libwsutil.so
|
||||
%{_libdir}/pkgconfig/wireshark.pc
|
||||
%{_libdir}/wireshark/FindGLIB2.cmake
|
||||
%{_libdir}/wireshark/FindWSWinLibs.cmake
|
||||
%{_libdir}/wireshark/FindWireshark.cmake
|
||||
%{_libdir}/wireshark/LocatePythonModule.cmake
|
||||
%{_libdir}/wireshark/UseAsn2Wrs.cmake
|
||||
%{_libdir}/wireshark/UseMakeDissectorReg.cmake
|
||||
%{_libdir}/wireshark/WiresharkConfig.cmake
|
||||
%{_libdir}/wireshark/WiresharkConfigVersion.cmake
|
||||
%doc NEWS README*
|
||||
%doc doc/README.* doc/*.txt
|
||||
#%doc doc/README.* doc/*.txt
|
||||
|
||||
%changelog
|
||||
* Tue Apr 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.99.2-2mamba
|
||||
- install headers
|
||||
|
||||
* Tue Mar 03 2015 Automatic Build System <autodist@mambasoft.it> 1.99.2-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Fri Jun 13 2014 Automatic Build System <autodist@mambasoft.it> 1.10.8-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user