[521] | 1 | %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") |
---|
| 2 | |
---|
| 3 | Summary: Network traffic analyzer |
---|
| 4 | Summary(ja): ネットワークトラフィック解析プログラム |
---|
| 5 | Name: wireshark |
---|
[964] | 6 | Version: 1.2.8 |
---|
[926] | 7 | Release: 1%{_dist_release} |
---|
[521] | 8 | License: GPLv2 |
---|
| 9 | Group: Applications/System |
---|
| 10 | Source0: http://www.wireshark.org/download/src/%{name}-%{version}.tar.bz2 |
---|
| 11 | Source1: wireshark.pam |
---|
| 12 | Source2: wireshark.console |
---|
| 13 | Source3: wireshark.desktop |
---|
| 14 | Patch1: wireshark-0.99.7-pie.patch |
---|
| 15 | Patch3: wireshark-nfsv4-opts.patch |
---|
| 16 | Patch4: wireshark-0.99.7-path.patch |
---|
| 17 | URL: http://www.wireshark.org/ |
---|
| 18 | |
---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | BuildRequires: libcap-devel |
---|
| 21 | BuildRequires: net-snmp-devel >= 5.0 |
---|
| 22 | BuildRequires: net-snmp-utils >= 5.0 |
---|
| 23 | BuildRequires: zlib-devel, bzip2-devel |
---|
| 24 | BuildRequires: openssl-devel |
---|
| 25 | BuildRequires: glib2-devel, gtk2-devel |
---|
| 26 | BuildRequires: libelf-devel |
---|
| 27 | BuildRequires: python, pcre-devel |
---|
| 28 | BuildRequires: gnutls-devel |
---|
| 29 | BuildRequires: desktop-file-utils, automake, libtool |
---|
| 30 | BuildRequires: bison, flex |
---|
| 31 | %if %{?_dist_release} != "vl4" |
---|
| 32 | BuildRequires: krb5-devel |
---|
| 33 | BuildRequires: libpcap-devel |
---|
| 34 | BuildRequires: lua-devel |
---|
| 35 | %else |
---|
| 36 | BuildRequires: libpcap |
---|
| 37 | %endif |
---|
| 38 | Requires: usermode >= 1.37 |
---|
| 39 | Requires(post): desktop-file-utils |
---|
| 40 | Requires(postun): desktop-file-utils |
---|
| 41 | |
---|
| 42 | Obsoletes: ethereal |
---|
| 43 | Obsoletes: ethereal-base ethereal-gnome ethereal-gtk+ |
---|
| 44 | Obsoletes: ethereal-kde ethereal-usermode |
---|
| 45 | Provides: ethereal ethereal-gnome |
---|
| 46 | |
---|
| 47 | Vendor: Project Vine |
---|
| 48 | Distribution: Vine Linux |
---|
| 49 | Packager: inagaki |
---|
| 50 | |
---|
| 51 | %description |
---|
| 52 | Wireshark is a network traffic analyzer for Unix-ish operating systems. |
---|
| 53 | |
---|
| 54 | This package lays base for libpcap, a packet capture and filtering |
---|
| 55 | library, contains command-line utilities, contains plugins and |
---|
| 56 | documentation for wireshark. A graphical user interface is also |
---|
| 57 | included with this package. |
---|
| 58 | |
---|
| 59 | %description -l ja |
---|
| 60 | Wireshark は,UNIX 系 OS 用のネットワークトラフィック解析プログラムです. |
---|
| 61 | |
---|
| 62 | このパッケージは,パケットキャプチャ/フィルタリングライブラリである |
---|
| 63 | libpcap を使ったコマンドラインツールと,プラグイン,ドキュメント等が |
---|
| 64 | 収められています.GUI もこのパッケージに収められています. |
---|
| 65 | |
---|
| 66 | %prep |
---|
| 67 | %setup -q -n %{name}-%{version} |
---|
| 68 | #patch1 -p1 -b .pie |
---|
| 69 | %patch3 -p1 |
---|
| 70 | %patch4 -p1 |
---|
| 71 | |
---|
| 72 | %build |
---|
| 73 | %ifarch s390 s390x |
---|
| 74 | export PIECFLAGS="-fPIE" |
---|
| 75 | %else |
---|
| 76 | export PIECFLAGS="-fpie" |
---|
| 77 | %endif |
---|
| 78 | # FC5+ automatic -fstack-protector-all switch |
---|
| 79 | export RPM_OPT_FLAGS=${RPM_OPT_FLAGS//-fstack-protector/-fstack-protector-all} |
---|
| 80 | export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS -I%{_includedir}/pcap -I%{_includedir}/pcre" |
---|
| 81 | export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS" |
---|
| 82 | export LDFLAGS="$LDFLAGS -lm -lcrypto" |
---|
| 83 | export PATH="$PATH:/usr/kerberos/bin" |
---|
| 84 | ./autogen.sh |
---|
| 85 | # --disable-warning-as-erros needs for compiling with glib 2.14.0 |
---|
| 86 | %configure \ |
---|
| 87 | --bindir=%{_sbindir} \ |
---|
| 88 | --enable-ipv6 \ |
---|
| 89 | --with-gnu-ld \ |
---|
| 90 | --disable-static \ |
---|
| 91 | --disable-usr-local \ |
---|
| 92 | --enable-wireshark \ |
---|
| 93 | --with-pic \ |
---|
| 94 | --with-ssl \ |
---|
| 95 | --with-pcap \ |
---|
| 96 | --with-pcre \ |
---|
| 97 | %if %{?_dist_release} != "vl4" |
---|
| 98 | --with-krb5 \ |
---|
| 99 | %else |
---|
| 100 | --without-krb5 \ |
---|
| 101 | %endif |
---|
| 102 | --with-plugins=%{_libdir}/%{name}/plugins/%{version} \ |
---|
| 103 | --disable-warnings-as-errors |
---|
| 104 | time make %{?_smp_mflags} |
---|
| 105 | |
---|
| 106 | %install |
---|
| 107 | rm -rf $RPM_BUILD_ROOT |
---|
| 108 | |
---|
| 109 | # The evil plugins hack |
---|
| 110 | perl -pi -e 's|-L../../epan|-L../../epan/.libs|' plugins/*/*.la |
---|
| 111 | |
---|
| 112 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 113 | |
---|
| 114 | #symlink tshark to tethereal |
---|
| 115 | ln -s tshark $RPM_BUILD_ROOT%{_sbindir}/tethereal |
---|
| 116 | |
---|
| 117 | #empty?! |
---|
| 118 | rm -f $RPM_BUILD_ROOT%{_sbindir}/idl2wrs |
---|
| 119 | |
---|
| 120 | # install support files for usermode, gnome and kde |
---|
| 121 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d |
---|
| 122 | install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/wireshark |
---|
| 123 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps |
---|
| 124 | install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps/wireshark |
---|
| 125 | mkdir -p $RPM_BUILD_ROOT/%{_bindir} |
---|
| 126 | ln -s consolehelper $RPM_BUILD_ROOT/%{_bindir}/wireshark |
---|
| 127 | |
---|
| 128 | # install man |
---|
| 129 | mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 |
---|
| 130 | install -m 644 *.1 $RPM_BUILD_ROOT/%{_mandir}/man1 |
---|
| 131 | |
---|
| 132 | # Install python stuff. |
---|
| 133 | mkdir -p $RPM_BUILD_ROOT%{python_sitelib} |
---|
| 134 | install -m 644 tools/wireshark_be.py tools/wireshark_gen.py $RPM_BUILD_ROOT%{python_sitelib} |
---|
| 135 | |
---|
| 136 | desktop-file-install --vendor= \ |
---|
| 137 | --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ |
---|
| 138 | %{SOURCE3} |
---|
| 139 | |
---|
| 140 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps |
---|
| 141 | install -m 644 image/wsicon48.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/wireshark.png |
---|
| 142 | |
---|
| 143 | |
---|
| 144 | # Remove .la files |
---|
| 145 | rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/plugins/%{version}/*.la |
---|
| 146 | |
---|
| 147 | # Remove .la files in libdir |
---|
| 148 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la |
---|
| 149 | |
---|
| 150 | %clean |
---|
| 151 | rm -rf $RPM_BUILD_ROOT |
---|
| 152 | |
---|
| 153 | %post |
---|
| 154 | /sbin/ldconfig |
---|
| 155 | update-desktop-database -q |
---|
| 156 | |
---|
| 157 | %postun |
---|
| 158 | /sbin/ldconfig |
---|
| 159 | update-desktop-database -q |
---|
| 160 | |
---|
| 161 | %files |
---|
| 162 | %defattr(-,root,root) |
---|
| 163 | %doc AUTHORS COPYING ChangeLog INSTALL NEWS README* |
---|
| 164 | %{_sbindir}/editcap |
---|
| 165 | #%{_sbindir}/idl2wrs |
---|
| 166 | %{_sbindir}/tshark |
---|
| 167 | %{_sbindir}/mergecap |
---|
| 168 | %{_sbindir}/text2pcap |
---|
| 169 | %{_sbindir}/dftest |
---|
| 170 | %{_sbindir}/capinfos |
---|
| 171 | %{_sbindir}/randpkt |
---|
| 172 | %{_sbindir}/dumpcap |
---|
| 173 | %{_sbindir}/tethereal |
---|
| 174 | %{_sbindir}/rawshark |
---|
| 175 | %{python_sitelib}/* |
---|
| 176 | %{_libdir}/lib* |
---|
| 177 | %{_mandir}/man1/editcap.* |
---|
| 178 | %{_mandir}/man1/tshark.* |
---|
| 179 | %{_mandir}/man1/idl2wrs.* |
---|
| 180 | %{_mandir}/man1/mergecap.* |
---|
| 181 | %{_mandir}/man1/text2pcap.* |
---|
| 182 | %{_mandir}/man1/capinfos.* |
---|
| 183 | %{_mandir}/man1/dumpcap.* |
---|
| 184 | %{_mandir}/man4/wireshark-filter.* |
---|
| 185 | %{_libdir}/wireshark |
---|
| 186 | %config(noreplace) %{_sysconfdir}/pam.d/wireshark |
---|
| 187 | %config(noreplace) %{_sysconfdir}/security/console.apps/wireshark |
---|
| 188 | %{_datadir}/wireshark |
---|
| 189 | |
---|
| 190 | %{_datadir}/applications/*.desktop |
---|
| 191 | %{_datadir}/pixmaps/wireshark.png |
---|
| 192 | %{_bindir}/wireshark |
---|
| 193 | %{_sbindir}/wireshark |
---|
| 194 | %{_mandir}/man1/wireshark.* |
---|
| 195 | %{_mandir}/man1/rawshark.* |
---|
| 196 | |
---|
| 197 | |
---|
| 198 | %changelog |
---|
[964] | 199 | * Sat May 08 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.8-1 |
---|
| 200 | - new upstream release |
---|
| 201 | (including security fix for CVE-2010-1455) |
---|
| 202 | |
---|
[926] | 203 | * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.7-1 |
---|
| 204 | - new upstream release |
---|
| 205 | |
---|
[521] | 206 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.5-3 |
---|
| 207 | - rebuilt with python-2.6.4 |
---|
| 208 | |
---|
| 209 | * Sun Dec 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-2 |
---|
| 210 | - added --enable-wireshark instead of --enable-gtk2 |
---|
| 211 | - added BR: bison, flex |
---|
| 212 | |
---|
| 213 | * Sat Dec 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.5-1 |
---|
| 214 | - new upstream release with security fixes (SNA/SMB/IPMI issues) |
---|
| 215 | |
---|
| 216 | * Fri Oct 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-1 |
---|
| 217 | - new upstream release |
---|
| 218 | (includeing security fix for CVE-2009-3549,3550 and 3551) |
---|
| 219 | |
---|
| 220 | * Wed Sep 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.2-2 |
---|
| 221 | - add BR: lua-devel (Vine 5.0 and later) |
---|
| 222 | |
---|
| 223 | * Sat Sep 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.2-1 |
---|
| 224 | - new upstream release |
---|
| 225 | |
---|
| 226 | * Tue Jul 21 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-1 |
---|
| 227 | - new upstream release |
---|
| 228 | |
---|
| 229 | * Mon Jul 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-1 |
---|
| 230 | - new upstream release |
---|
| 231 | |
---|
| 232 | * Sat May 23 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.8-1 |
---|
| 233 | - new upstream release |
---|
| 234 | |
---|
| 235 | * Fri Apr 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.7-1 |
---|
| 236 | - new upstream release |
---|
| 237 | |
---|
| 238 | * Sun Feb 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.6-1 |
---|
| 239 | - new upstream release |
---|
| 240 | - used more macros |
---|
| 241 | |
---|
| 242 | * Sat Jan 24 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-1 |
---|
| 243 | - new upstream release |
---|
| 244 | |
---|
| 245 | * Sun Nov 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.4-2vl5 |
---|
| 246 | - rebuilt |
---|
| 247 | |
---|
| 248 | * Mon Oct 27 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.4-1 |
---|
| 249 | - new upstream release with security fix |
---|
| 250 | - add BuildRequires krb5-devel |
---|
| 251 | - SPEC in UTF-8 |
---|
| 252 | |
---|
| 253 | * Fri Sep 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.3-1 |
---|
| 254 | - new upstream release with security update |
---|
| 255 | |
---|
| 256 | * Wed Apr 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.0.0-1 |
---|
| 257 | - new upstream release with security update |
---|
| 258 | - add Vendor/Distribution tag |
---|
| 259 | - add BuildRequires: libcap-devel |
---|
| 260 | - new versioning policy |
---|
| 261 | |
---|
| 262 | * Tue Jan 8 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.99.7-0vl2 |
---|
| 263 | - modified Source3 because of desktop-file-install error, like this: |
---|
| 264 | /var/tmp/wireshark-0.99.7-root/usr/share/applications/wireshark.desktop: |
---|
| 265 | error: value "wireshark.png" for key "Icon" in group "Desktop Entry" is |
---|
| 266 | an icon name with an extension, but there should be no extension as |
---|
| 267 | described in the Icon Theme Specification if the value is not an |
---|
| 268 | absolute path |
---|
| 269 | this warning/error occurs with desktop-file-utils >= 0.14 |
---|
| 270 | |
---|
| 271 | * Wed Jan 2 2008 Satoshi MACHINO <machino@vinelinux.org> 0.99.7-0vl1 |
---|
| 272 | - new upstream release |
---|
| 273 | - imported patch4 from fc9 |
---|
| 274 | |
---|
| 275 | * Sun Sep 2 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.6-0vl2 |
---|
| 276 | - rebuilt with libpcap-0.9.7 |
---|
| 277 | - added --disable-warning-as-errors to %%configure for glib-2.14.0 |
---|
| 278 | |
---|
| 279 | * Sat Jul 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.6-0vl1 |
---|
| 280 | - new upstream release |
---|
| 281 | - rebuilt with libpcap-0.9.6 |
---|
| 282 | - added --with-pcap, --with-pcre |
---|
| 283 | |
---|
| 284 | * Fri Jun 1 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.5-0vl2 |
---|
| 285 | - rebuilt with new toolchain and environment |
---|
| 286 | |
---|
| 287 | * Thu Feb 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.5-0vl1 |
---|
| 288 | - new upstream release |
---|
| 289 | |
---|
| 290 | * Mon Nov 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.4-0vl1 |
---|
| 291 | - new upstream release |
---|
| 292 | |
---|
| 293 | * Wed Oct 4 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99.3-0vl1 |
---|
| 294 | - initial built for Vine Linux based on Fedora |
---|
| 295 | - Obsoletes: ethereal, Provides: ethereal |
---|
| 296 | |
---|
| 297 | * Fri Aug 25 2006 Radek Vokal <rvokal@redhat.com> 0.99.3-fc5.1 |
---|
| 298 | - upgrade to 0.99.3-1 |
---|
| 299 | - CVE-2006-4330 Wireshark security issues (CVE-2006-4333 CVE-2006-4332 CVE-2006-4331) |
---|
| 300 | |
---|
| 301 | * Wed Jul 26 2006 Radek Vokal <rvokal@redhat.com> 0.99.2-fc5.2 |
---|
| 302 | - fix BuildRequires |
---|
| 303 | |
---|
| 304 | * Tue Jul 25 2006 Radek Vokal <rvokal@redhat.com> 0.99.2-fc5.1 |
---|
| 305 | - build for FC5 |
---|
| 306 | |
---|
| 307 | * Tue Jul 18 2006 Radek Vok叩l <rvokal@redhat.com> 0.99.2-1 |
---|
| 308 | - upgrade to 0.99.2 |
---|
| 309 | |
---|
| 310 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.99.2-0.pre1.1 |
---|
| 311 | - rebuild |
---|
| 312 | |
---|
| 313 | * Tue Jul 11 2006 Radek Vok叩l <rvokal@redhat.com> 0.99.2-0.pre1 |
---|
| 314 | - upgrade to 0.99.2pre1, fixes (#198242) |
---|
| 315 | |
---|
| 316 | * Tue Jun 13 2006 Radek Vokal <rvokal@redhat.com> 0.99.1-0.pre1 |
---|
| 317 | - spec file changes |
---|
| 318 | |
---|
| 319 | * Fri Jun 9 2006 Radek Vokal <rvokal@redhat.com> 0.99.1pre1-1 |
---|
| 320 | - initial build for Fedora Core |
---|