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
|
%define libname libwireshark
|
||||||
|
|
||||||
Name: wireshark
|
Name: wireshark
|
||||||
Version: 1.10.8
|
Version: 1.99.2
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A free network protocol analyzer
|
Summary: A free network protocol analyzer
|
||||||
Group: Network/Monitoring
|
Group: Network/Monitoring
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -76,29 +76,24 @@ This package contains static libraries and header files need for development.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
#%patch0 -p0
|
|
||||||
#%patch1 -p0
|
|
||||||
#%patch2 -p0
|
|
||||||
#sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.in
|
|
||||||
|
|
||||||
%build
|
%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
|
%if %with_lua
|
||||||
export LDFLAGS="-ldl"
|
export LDFLAGS="-ldl `pkg-config --libs lua`"
|
||||||
export CPPFLAGS="%{optflags} -I/usr/include/gtk"
|
export CPPFLAGS="%{optflags} -I/usr/include/gtk"
|
||||||
export CFLAGS="%{optflags} `pkg-config --cflags lua`"
|
export CFLAGS="%{optflags} `pkg-config --cflags lua`"
|
||||||
%endif
|
%endif
|
||||||
%configure \
|
#%configure \
|
||||||
--disable-usr-local \
|
# --disable-usr-local \
|
||||||
--enable-shared \
|
# --enable-shared \
|
||||||
--disable-static \
|
# --disable-static \
|
||||||
--enable-dftest \
|
# --enable-dftest \
|
||||||
--enable-randpkt \
|
# --enable-randpkt \
|
||||||
--with-ssl \
|
# --with-ssl \
|
||||||
--enable-wireshark
|
# --enable-wireshark
|
||||||
|
|
||||||
|
%cmake \
|
||||||
|
-DLUA_LIBRARY=%{_libdir}/liblua.so
|
||||||
|
|
||||||
#% if %with_lua
|
#% if %with_lua
|
||||||
# --with-lua=`pkg-config --cflags lua5.1`
|
# --with-lua=`pkg-config --cflags lua5.1`
|
||||||
@ -112,6 +107,9 @@ export CFLAGS="%{optflags} `pkg-config --cflags lua`"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
|
# Workaround
|
||||||
|
mkdir -p %{buildroot}/ui/gtk/ui
|
||||||
|
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
# install program icons
|
# install program icons
|
||||||
@ -124,6 +122,20 @@ done
|
|||||||
install -p -D %{name}.desktop \
|
install -p -D %{name}.desktop \
|
||||||
%{buildroot}%{_datadir}/applications/%{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
|
rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -135,6 +147,7 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/capinfos
|
%{_bindir}/capinfos
|
||||||
|
%{_bindir}/captype
|
||||||
%{_bindir}/dftest
|
%{_bindir}/dftest
|
||||||
%attr(4750,root,sysadmin) %{_bindir}/dumpcap
|
%attr(4750,root,sysadmin) %{_bindir}/dumpcap
|
||||||
%{_bindir}/editcap
|
%{_bindir}/editcap
|
||||||
@ -145,7 +158,9 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
|||||||
%{_bindir}/reordercap
|
%{_bindir}/reordercap
|
||||||
%{_bindir}/text2pcap
|
%{_bindir}/text2pcap
|
||||||
%{_bindir}/tshark
|
%{_bindir}/tshark
|
||||||
|
%{_bindir}/tfshark
|
||||||
%{_bindir}/wireshark
|
%{_bindir}/wireshark
|
||||||
|
%{_bindir}/wireshark-gtk
|
||||||
%{_libdir}/%{name}/plugins/%{version}/*.so
|
%{_libdir}/%{name}/plugins/%{version}/*.so
|
||||||
# the first two files are required by the help dialog
|
# the first two files are required by the help dialog
|
||||||
#%{_datadir}/%{name}/*.lua
|
#%{_datadir}/%{name}/*.lua
|
||||||
@ -160,11 +175,10 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
|||||||
%{_datadir}/%{name}/diameter/*
|
%{_datadir}/%{name}/diameter/*
|
||||||
%{_datadir}/%{name}/dtds
|
%{_datadir}/%{name}/dtds
|
||||||
%{_datadir}/%{name}/help
|
%{_datadir}/%{name}/help
|
||||||
%{_datadir}/%{name}/init.lua
|
|
||||||
%{_datadir}/%{name}/manuf
|
%{_datadir}/%{name}/manuf
|
||||||
%{_datadir}/%{name}/pdml2html.xsl
|
%{_datadir}/%{name}/pdml2html.xsl
|
||||||
%dir %{_datadir}/%{name}/profiles
|
#%dir %{_datadir}/%{name}/profiles
|
||||||
%{_datadir}/%{name}/profiles/*
|
#%{_datadir}/%{name}/profiles/*
|
||||||
%dir %{_datadir}/%{name}/radius
|
%dir %{_datadir}/%{name}/radius
|
||||||
%{_datadir}/%{name}/radius/*
|
%{_datadir}/%{name}/radius/*
|
||||||
%{_datadir}/%{name}/tpncp
|
%{_datadir}/%{name}/tpncp
|
||||||
@ -179,6 +193,20 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
|||||||
|
|
||||||
%files -n %{libname}
|
%files -n %{libname}
|
||||||
%defattr(-,root,root)
|
%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}/libwireshark.so.*
|
||||||
%{_libdir}/libwiretap.so.*
|
%{_libdir}/libwiretap.so.*
|
||||||
%{_libdir}/libwsutil.so.*
|
%{_libdir}/libwsutil.so.*
|
||||||
@ -186,16 +214,31 @@ rm -f %{buildroot}%{_libdir}/%{name}/plugins/%{version}/*.la
|
|||||||
|
|
||||||
%files -n %{libname}-devel
|
%files -n %{libname}-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libwireshark.la
|
#%{_libdir}/libwireshark.la
|
||||||
%{_libdir}/libwireshark.so
|
%{_libdir}/libwireshark.so
|
||||||
%{_libdir}/libwiretap.la
|
#%{_libdir}/libwiretap.la
|
||||||
%{_libdir}/libwiretap.so
|
%{_libdir}/libwiretap.so
|
||||||
%{_libdir}/libwsutil.la
|
#%{_libdir}/libwsutil.la
|
||||||
%{_libdir}/libwsutil.so
|
%{_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 NEWS README*
|
||||||
%doc doc/README.* doc/*.txt
|
#%doc doc/README.* doc/*.txt
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jun 13 2014 Automatic Build System <autodist@mambasoft.it> 1.10.8-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user