From 1d7b3e883d05488481ca725d276f669559f22fff842970fa8cbcc6603f8940bc Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 20 Dec 2024 08:16:05 +0000 Subject: [PATCH] NOTE: This is untested! - Replace wxWidgets-3_0-devel for wxWidgets-devel BuildRequires: Package builds just fine with the newer 3.2 version. OBS-URL: https://build.opensuse.org/package/show/network:telephony/sffview?expand=0&rev=18 --- .gitattributes | 23 +++++++ .gitignore | 1 + sffview-0.5.diff | 22 +++++++ sffview-0.5.tar.xz | 3 + sffview.1 | 43 +++++++++++++ sffview.changes | 156 +++++++++++++++++++++++++++++++++++++++++++++ sffview.spec | 66 +++++++++++++++++++ 7 files changed, 314 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 sffview-0.5.diff create mode 100644 sffview-0.5.tar.xz create mode 100644 sffview.1 create mode 100644 sffview.changes create mode 100644 sffview.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/sffview-0.5.diff b/sffview-0.5.diff new file mode 100644 index 0000000..1609b5b --- /dev/null +++ b/sffview-0.5.diff @@ -0,0 +1,22 @@ +Index: sffview-0.5/Makefile +=================================================================== +--- sffview-0.5.orig/Makefile ++++ sffview-0.5/Makefile +@@ -18,14 +18,14 @@ CC = g++ + PROGRAM = sffview + OBJECTS = $(PROGRAM).o common.o codes.o decoder.o sfffile.o sffapp.o sffdoc.o + +-WXCONFIG_CPP = `wx-config --cflags` ++WXCONFIG_CPP = `wx-config --unicode=yes --cflags` + +-WXCONFIG_LD = `wx-config --libs` ++WXCONFIG_LD = `wx-config --unicode=yes --libs` + + .SUFFIXES: .o .cpp + + .cpp.o : +- $(CC) -g -Os -c $(WXCONFIG_CPP) -o $@ $< ++ $(CC) -g $(RPM_OPT_FLAGS) -fno-strict-aliasing -c $(WXCONFIG_CPP) -o $@ $< + + all: $(PROGRAM) + diff --git a/sffview-0.5.tar.xz b/sffview-0.5.tar.xz new file mode 100644 index 0000000..b8f95c8 --- /dev/null +++ b/sffview-0.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6e579de5a96be532635abaf54ba516ca51dd8e12206bf365e1864c69f952198 +size 57300 diff --git a/sffview.1 b/sffview.1 new file mode 100644 index 0000000..1aca717 --- /dev/null +++ b/sffview.1 @@ -0,0 +1,43 @@ +.\" This manpage has been automatically generated by docbook2man +.\" from a DocBook document. This tool can be found at: +.\" +.\" Please send any bug reports, improvements, comments, patches, +.\" etc. to Steve Cheng . +.TH "SFFVIEW" "1" "27 Januar 2017" "" "" + +.SH NAME +sffview \- X11 viewer for structured fax files (SFF) +.SH SYNOPSIS + +\fBsffview\fR + +.SH "DESCRIPTION" +.PP +This manual page documents briefly the +\fBsffview\fR command. +.PP +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBsffview\fR is a tool to view +"structured fax files" in X11. +"Structured fax file" (SFF) is the file format that ISDN +cards with CAPI interface expect and create. +.SH "OPTIONS" +.PP +NONE +.SH "BUGS" +.PP +Only German localisation +.SH "SEE ALSO" +.PP +sfftobmp (1). +.SH "AUTHOR" +.PP +This manual page was written by Achim Bohnet for +the Debian system (but may be used by others). Permission is +granted to copy, distribute and/or modify this document under +the terms of the GNU Free Documentation +License, Version 1.1 or any later version published by the Free +Software Foundation; with no Invariant Sections, no Front-Cover +Texts and no Back-Cover Texts. diff --git a/sffview.changes b/sffview.changes new file mode 100644 index 0000000..c966bda --- /dev/null +++ b/sffview.changes @@ -0,0 +1,156 @@ +------------------------------------------------------------------- +Thu Nov 21 11:46:03 UTC 2024 - Bjørn Lie + +- Replace wxWidgets-3_0-devel for wxWidgets-devel BuildRequires: + Package builds just fine with the newer 3.2 version. + +------------------------------------------------------------------- +Tue May 17 08:21:13 UTC 2022 - Jan Engelhardt + +- Drop unused BuildRequire on SDL-devel. +- Modernize specfile. Trim filler wording from description. + +------------------------------------------------------------------- +Thu Feb 2 12:46:30 UTC 2017 - adam.majer@suse.de + +- use individual libboost-*-devel packages instead of boost-devel + +------------------------------------------------------------------- +Fri Jan 27 18:31:50 UTC 2017 - keil@b1-systems.de + +- use wxWidgets-3_0 +- import man page from debian project +- delete sffview-gcc43.diff since it is included in the new version +- delete not longer applying sffview-0.4.diff patch +- add sffview-0.5.diff patch to use RPM_OPT_FLAGS and unicode + +------------------------------------------------------------------- +Fri Jan 27 15:53:03 UTC 2017 - keil@b1-systems.de + +- Update to version 0.5 + +------------------------------------------------------------------- +Fri Aug 12 20:47:27 UTC 2016 - jengelh@inai.de + +- Remove archaic specfile contraptions. + Fix rpmlint "spurious-executable-permissions" warning. + +------------------------------------------------------------------- +Fri Jan 21 13:52:17 CET 2011 - sbrabec@suse.cz + +- Fixed build for older distributions. + +------------------------------------------------------------------- +Wed Dec 29 15:04:12 CET 2010 - sbrabec@suse.cz + +- Compile with wxWidgets (STL variant). + +------------------------------------------------------------------- +Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de + +- make patch0 usage consistent + +------------------------------------------------------------------- +Thu Feb 26 19:02:42 CET 2009 - crrodriguez@suse.de + +- extend GCC 4.3 patch to cover GC 4.4 too + +------------------------------------------------------------------- +Thu Oct 11 14:37:11 CEST 2007 - kkeil@suse.de + +- fixes for GCC 4.3 + +------------------------------------------------------------------- +Tue Mar 6 00:58:44 CET 2007 - kkeil@suse.de + +- fix string type issue for gcc42 + +------------------------------------------------------------------- +Mon Oct 30 18:05:43 CET 2006 - kkeil@suse.de + +- update to 0.4 + * include all our fixes + * print support + +------------------------------------------------------------------- +Mon Oct 16 09:05:59 CEST 2006 - kkeil@suse.de + +- compile with RPM_OPT_FLAGS +- compile with unicode support (Thanks Andreas Hanke, #212502) + +------------------------------------------------------------------- +Fri Jan 27 11:41:27 CET 2006 - kkeil@suse.de + +- add gcc-c++ to BuildRequires + +------------------------------------------------------------------- +Wed Jan 25 21:41:34 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Wed Nov 2 22:15:16 CET 2005 - dmueller@suse.de + +- don't build as root + +------------------------------------------------------------------- +Fri Apr 15 14:50:40 CEST 2005 - mcihar@suse.de + +- add SDL-devel-packages because of wxGTK + +------------------------------------------------------------------- +Sat Apr 9 23:33:16 CEST 2005 - kkeil@suse.de + +- GCC4 fixes + +------------------------------------------------------------------- +Wed Mar 30 17:35:03 CEST 2005 - kkeil@suse.de + +- a dword is always 32 bit, also on 64 bit OS (#75254) + +------------------------------------------------------------------- +Mon Nov 22 17:32:49 CET 2004 - ro@suse.de + +- fix build with new wxGTK + +------------------------------------------------------------------- +Wed Sep 15 12:50:29 CEST 2004 - kkeil@suse.de + +- move to version 0.3 (#44574) + +------------------------------------------------------------------- +Fri Aug 20 14:42:33 CEST 2004 - ro@suse.de + +- added wxGTK-compat to neededforbuild + +------------------------------------------------------------------- +Wed Apr 21 17:37:19 CEST 2004 - kkeil@suse.de + +- fix package for new wxGTK with UNICODE enabled + +------------------------------------------------------------------- +Wed Jan 14 01:44:35 CET 2004 - ro@suse.de + +- use gtk2 + +------------------------------------------------------------------- +Thu Jun 12 19:45:17 CEST 2003 - kkeil@suse.de + +- fix filelist + +------------------------------------------------------------------- +Sun Feb 23 13:05:05 CET 2003 - ghillie@suse.de + +- use g++ instead of gcc + +------------------------------------------------------------------- +Mon Jan 20 15:30:11 CET 2003 - ghillie@suse.de + +- removed arch=i486 from Makefile (see gcc-3.2 patch) +- added glib and gtk to neededforbuild + +------------------------------------------------------------------- +Mon Dec 16 17:54:00 MET 2002 - gernot@hillier.de + +- first package +------------------------------------------------------------------- diff --git a/sffview.spec b/sffview.spec new file mode 100644 index 0000000..c95d0e3 --- /dev/null +++ b/sffview.spec @@ -0,0 +1,66 @@ +# +# spec file for package sffview +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: sffview +%if 0%{?suse_version} > 1325 +BuildRequires: libboost_headers-devel +%else +BuildRequires: boost-devel +%endif +BuildRequires: gcc-c++ +BuildRequires: libtiff-devel +BuildRequires: update-desktop-files +BuildRequires: wxWidgets-devel +BuildRequires: xorg-x11 +Version: 0.5 +Release: 0 +Summary: Viewer for Structured Fax Files (.sff) used by ISDN applications +License: MIT +Group: Hardware/ISDN +Source: %{name}-%{version}.tar.xz +Source2: %{name}.1 +URL: http://sfftools.sourceforge.net/ +Patch0: %{name}-%{version}.diff + +%description +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 +wxWidgets toolkit. + +%prep +%autosetup -p1 + +%build +%make_build + +%install +install -d "%buildroot/%_bindir" +install sffview "%buildroot/%_bindir/" +install -d "%buildroot/%_defaultdocdir/sffview" +install -pm0644 doc/readme doc/copying testfax.sff "%buildroot/%_defaultdocdir/sffview/" +install -d "%{buildroot}/%{_mandir}/man1" +install -pm0644 %{S:2} "%{buildroot}/%{_mandir}/man1/" + +%files +/usr/bin/sffview +%doc %{_defaultdocdir}/sffview +%doc %{_mandir}/man1/sffview.1.gz + +%changelog