This is our old Q&A Site. Please post any new questions and answers at


I am trying to build a rpm for my modified wireshark source code version 1.8.0rc2. is there any steps on website where I can loop up inorder to generate rpm package?

Regards, Kerol

asked 16 Aug '12, 14:56

kerolkarper's gravatar image

accept rate: 0%

Currently I'm aware of The Developers Guide as the only source of information on it. Another source is the Fedora Core build files. I guess CentOS has something similar, I just never looked it up.

permanent link

answered 17 Aug '12, 02:25

Jaap's gravatar image

Jaap ♦
accept rate: 14%

Well, first you need to get a wireshark.spec file. When I went through this exercise recently I think I started with the CentOS 6 spec file (which you can get out of their SRPM--source rpm) and modified it until it could build a usable RPM with Wireshark (at the time) 1.8.0.

The actual building of the RPM is done by:

  1. Put Wireshark source code (and maybe some other stuff) in ~/rpmbuild/SOURCES
  2. Put wireshark.spec in ~/rpmbuild/SPECS
  3. cd ~/rpmbuild/SPECS
  4. rpmbuild -ba wireshark.spec

Yes, it's on my list to update Wireshark's .spec file (in packaging/rpm/SPECS/) so it's easier to use or more up to date or something.

(I'd give you my .spec file but it's got a lot of my private stuff in there which would probably cause more confusion than help. If I do get it cleaned up, I'll put it in Wireshark's repository.)

BTW, I'd suggest not using 1.8.0rc2: that's a Release Candidate. The current version is 1.8.2.

permanent link

answered 17 Aug '12, 07:12

JeffMorriss's gravatar image

JeffMorriss ♦
accept rate: 27%

Thanks mate. I am doing for homework purpose so whichever release it is , doesnt matter that much to me. Here is what I have done for Cent OS 6.2

I found the spec file in wireshark-root-dir/packaging/rpm/SPECS/wireshark.spec

modified it and

installed libqt4-dev libtool openssl-devel

then from wireshark-root-dir ran


make rpm-package

and it will build new rpm based on spec file. :)

(17 Aug '12, 11:38) kerolkarper
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 16 Aug '12, 14:56

question was seen: 3,029 times

last updated: 20 Aug '12, 01:31

p​o​w​e​r​e​d by O​S​Q​A