diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe629e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dissy-8.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 83c8051..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Unsupported upstream, depends on old webkit version that will disappear in F27 diff --git a/dissy-8-about.patch b/dissy-8-about.patch new file mode 100644 index 0000000..cb3ae3a --- /dev/null +++ b/dissy-8-about.patch @@ -0,0 +1,17 @@ +Fix about box close (thanks to Parag AN) +http://code.google.com/p/dissy/issues/detail?id=2 + +Lubomir Rintel + +--- dissy-8/scripts/dissy.about 2009-02-06 11:35:00.000000000 +0100 ++++ dissy-8/scripts/dissy 2009-02-06 11:35:51.000000000 +0100 +@@ -189,7 +189,8 @@ + about.set_version("v%s" % (PROGRAM_VERSION) ) + about.set_copyright("(C) Simon Kagstrom, 2006-2009") + about.set_website(PROGRAM_URL) +- about.show() ++ about.run() ++ about.hide() + + def redisplayFunction(self): + try: diff --git a/dissy.desktop b/dissy.desktop new file mode 100644 index 0000000..96d2815 --- /dev/null +++ b/dissy.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Dissy Disassembler +Comment=Graphical frontend to the objdump disassembler +GenericName=Dissy Disassembler +Exec=dissy %f +Icon=dissy +Categories=Development;Debugger; +Terminal=false diff --git a/dissy.spec b/dissy.spec new file mode 100644 index 0000000..46c0ba1 --- /dev/null +++ b/dissy.spec @@ -0,0 +1,101 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: dissy +Version: 8 +Release: 9%{?dist} +Summary: Graphical frontend to the objdump disassembler + +Group: Development/Tools +License: GPLv2 +URL: http://code.google.com/p/dissy/ +Source0: http://dissy.googlecode.com/files/%{name}-%{version}.tar.gz +Source1: dissy.desktop +Patch0: dissy-8-about.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: desktop-file-utils +BuildRequires: python-devel +Requires: binutils +Requires: pygtk2 +Requires: pygobject2 + +%description +Dissy is a graphical frontend to the objdump disassembler, it can be used +for debugging and browsing compiler-generated code. + + +%prep +%setup -q +%patch0 -p1 -b .about + + +%build +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT +rm -r $RPM_BUILD_ROOT%{_docdir} + +# Icon file. Upstream doesn't use any +install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps +install -p -m 0644 \ + $RPM_BUILD_ROOT%{_datadir}/dissy/gfx/red_arrow_left.png \ + $RPM_BUILD_ROOT%{_datadir}/pixmaps/dissy.png + +# Desktop menu entry +install -d $RPM_BUILD_ROOT%{_datadir}/applications +desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ + --vendor '' %{SOURCE1} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_bindir}/dissy +%{_datadir}/dissy +%{_datadir}/applications/dissy.desktop +%{_datadir}/pixmaps/dissy.png +%{_mandir}/man1/dissy.1* +%{python_sitelib}/dissy +%if 0%{?fedora} > 8 +%{python_sitelib}/*.egg-info +%endif +%if 0%{?rhel} > 5 +%{python_sitelib}/*.egg-info +%endif +%doc COPYING README + + +%changelog +* Wed Jul 18 2012 Fedora Release Engineering - 8-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 8-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 8-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jul 21 2010 David Malcolm - 8-6 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Fri Jul 09 2010 Lubomir Rintel - 8-5 +- Package egg info in RHEL 6 + +* Fri Jul 24 2009 Fedora Release Engineering - 8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 06 2008 Lubomir Rintel - 8-2 +- Fix about dialog close + +* Mon Feb 02 2008 Lubomir Rintel - 8-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..f7b13fa --- /dev/null +++ b/sources @@ -0,0 +1 @@ +2e48d6fec7c02c0e62a568a7e56ea374 dissy-8.tar.gz