Author: oden Date: Sun Feb 4 19:46:55 2007 New Revision: 116161 Added: packages/cooker/sffview/current/SOURCES/sffview-16x16.png (contents, props changed) packages/cooker/sffview/current/SOURCES/sffview-32x32.png (contents, props changed) packages/cooker/sffview/current/SOURCES/sffview-48x48.png (contents, props changed) packages/cooker/sffview/current/SOURCES/sffview-cflags.diff Modified: packages/cooker/sffview/current/SPECS/sffview.spec
Log: - make it compile on x86_64 - fix xdg menu Added: packages/cooker/sffview/current/SOURCES/sffview-16x16.png ============================================================================== Binary file. No diff available. Added: packages/cooker/sffview/current/SOURCES/sffview-32x32.png ============================================================================== Binary file. No diff available. Added: packages/cooker/sffview/current/SOURCES/sffview-48x48.png ============================================================================== Binary file. No diff available. Added: packages/cooker/sffview/current/SOURCES/sffview-cflags.diff ============================================================================== --- (empty file) +++ packages/cooker/sffview/current/SOURCES/sffview-cflags.diff Sun Feb 4 19:46:55 2007 @@ -0,0 +1,16 @@ +--- Makefile 2005-05-20 23:27:00.000000000 +0200 ++++ Makefile.oden 2007-02-04 16:20:49.000000000 +0100 +@@ -50,10 +50,12 @@ + # -lm -lpthread -ldl + # implementation + ++CFLAGS = -g -Os ++ + .SUFFIXES: .o .cpp + + .cpp.o : +- $(CC) -g -march=i686 -Os -c $(WXCONFIG_CPP) -o $@ $< ++ $(CC) $(CFLAGS) -c $(WXCONFIG_CPP) -o $@ $< + + all: $(PROGRAM) + Modified: packages/cooker/sffview/current/SPECS/sffview.spec ============================================================================== --- packages/cooker/sffview/current/SPECS/sffview.spec (original) +++ packages/cooker/sffview/current/SPECS/sffview.spec Sun Feb 4 19:46:55 2007 @@ -1,4 +1,4 @@ -Summary: Viewer for SFF files +Summary: A program to view structured fax files (sff) Name: sffview Version: 0.4 Release: %mkrel 1 @@ -6,17 +6,23 @@ Group: Communications URL: http://sfftools.sourceforge.net/sffview.html Source0: sffview_0_4_src.zip +Source1: sffview-16x16.png +Source2: sffview-32x32.png +Source3: sffview-48x48.png +Patch0: sffview-cflags.diff +Requires(post): desktop-file-utils +Requires(postun): desktop-file-utils BuildRequires: wxGTK2.6-devel BuildRoot: %{_tmppath}/%{name}-%{version} %description -The CAPI interface for programming ISDN hardware expects and gives you faxes -in the "Structured Fax File" (SFF) format. +The CAPI interface for programming ISDN hardware expects and gives you faxes in +the "Structured Fax File" (SFF) format. SffView is a viewer for SFF-files. SffView is written in C++ using the wxWindows/wxGTK toolkit and is therefore available for Linux and Windows -(wxWindows is a platform independent toolkit and wxGTK is a unix -implementation based on GTK+, see wxWindows homepage). +(wxWindows is a platform independent toolkit and wxGTK is a unix implementation +based on GTK+, see wxWindows homepage). Authors: -------- @@ -25,25 +31,75 @@ %prep %setup -q -n %{name} +%patch0 -p0 + +cp %{SOURCE1} %{SOURCE2} %{SOURCE3} . %build %make \ WXCONFIG_CPP="\`wx-config-ansi --cflags\`" \ - WXCONFIG_LD="\`wx-config-ansi --libs\`" - CFLAGS="%{optflags}" + WXCONFIG_LD="\`wx-config-ansi --libs\`" \ + CFLAGS="%{optflags} -Wall" %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_bindir} - install -m0755 %{name} %{buildroot}%{_bindir} +# menu +install -d %{buildroot}%{_menudir} +cat > %{buildroot}%{_menudir}/%{name} <<EOF +?package(%{name}): \ +command="%{name}" \ +title="SffView" \ +longtitle="%{summary}" \ +needs="x11" \ +icon="%{name}.png" \ +section="Multimedia/Graphics" \ +xdg="true" +EOF + +# icon +install -d %{buildroot}%{_liconsdir} +install -d %{buildroot}%{_miconsdir} +install -d %{buildroot}%{_iconsdir} + +install -m0644 sffview-48x48.png %{buildroot}%{_liconsdir}/%{name}.png +install -m0644 sffview-32x32.png %{buildroot}%{_iconsdir}/%{name}.png +install -m0644 sffview-16x16.png %{buildroot}%{_miconsdir}/%{name}.png + +# XDG menu +install -d %{buildroot}%{_datadir}/applications +cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF +[Desktop Entry] +Name=SffView +Comment=%{summary} +Exec=%{name} +Icon=%{name} +Terminal=false +Type=Application +Categories=Graphics;X-MandrivaLinux-Multimedia-Graphics; +EOF + +%post +%update_menus +%update_desktop_database + +%postun +%clean_menus +%clean_desktop_database + %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) -%doc doc/* +%doc doc/* testfax.sff %{_bindir}/%{name} +%{_menudir}/%{name} +%{_iconsdir}/%{name}.png +%{_miconsdir}/%{name}.png +%{_liconsdir}/%{name}.png +%{_datadir}/applications/*.desktop
