[ffgtk/f14/master] Initial import into f14
Louis Lagendijk
llagendijk at fedoraproject.org
Fri Feb 11 21:43:59 UTC 2011
commit 806fae8c0fa01be9ff86f2508673481a7e1c6600
Author: Louis Lagendijk <louis at lagendijk.xs4all.nl>
Date: Fri Feb 11 22:43:29 2011 +0100
Initial import into f14
.gitignore | 1 +
ffgtk-README.Fedora | 21 ++++
ffgtk-fax.ppd | 96 +++++++++++++++++++
ffgtk-libexec.patch | 64 +++++++++++++
ffgtk-license.txt | 115 +++++++++++++++++++++++
ffgtk-no-Werror.patch | 162 ++++++++++++++++++++++++++++++++
ffgtk-use-old-spooler.patch | 48 ++++++++++
ffgtk.spec | 213 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
9 files changed, 721 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f0096a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ffgtk-0.7.8.tar.bz2
diff --git a/ffgtk-README.Fedora b/ffgtk-README.Fedora
new file mode 100644
index 0000000..dc802e2
--- /dev/null
+++ b/ffgtk-README.Fedora
@@ -0,0 +1,21 @@
+Fedora specific notes:
+======================
+
+You can create a new printer device with the following commands:
+/usr/sbin/lpadmin -p ffgtk-fax -v socket://localhost:9901 -m ffgtk-fax.ppd -E
+The ffgtk-plugin-capifax rpm however normally already does that for you.
+
+FRITZ!Box only:
+-----------------
+Quick reconnect & display external ip in tooltip needs active UPnP support!
+
+The following 2 items will normally be done by ffgtk when it
+configures the router, but this may fail:
+
+If you want to use the incoming notification you will have to enable
+your fritzbox with: #96*5*.
+
+If you want to use the capifax plugin you will have to enable capi-over-tcp
+within your fritzbox with: #96*3*
+
+
diff --git a/ffgtk-fax.ppd b/ffgtk-fax.ppd
new file mode 100644
index 0000000..1820619
--- /dev/null
+++ b/ffgtk-fax.ppd
@@ -0,0 +1,96 @@
+*PPD-Adobe: "4.3"
+*%%%% PPD file for ffgtk fax printer with CUPS.
+*%%%% Created by the CUPS PPD Compiler CUPS v1.4.4.
+*FormatVersion: "4.3"
+*FileVersion: "1.0"
+*LanguageVersion: English
+*LanguageEncoding: ISOLatin1
+*PCFileName: "ffgtk-fax.ppd"
+*Product: "(ffgtk fax printer)"
+*Manufacturer: "Traveler"
+*ModelName: "Traveler ffgtk fax printer"
+*ShortNickName: "Traveler ffgtk fax printer"
+*NickName: "Traveler ffgtk fax printer, 1.0"
+*PSVersion: "(3010) 0"
+*LanguageLevel: "3"
+*ColorDevice: False
+*DefaultColorSpace: Gray
+*FileSystem: False
+*Throughput: "1"
+*LandscapeOrientation: Minus90
+*TTRasterizer: Type42
+*% Driver-defined attributes...
+*cupsLanguages: "en"
+*OpenUI *PageSize/Media Size: PickOne
+*OrderDependency: 10 AnySetup *PageSize
+*DefaultPageSize: Letter
+*PageSize Letter/US Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
+*PageSize Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
+*PageSize A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
+*?PageSize: "
+ save
+ currentpagedevice /PageSize get aload pop
+ 2 copy gt {exch} if (Unknown)
+ 23 dict
+ dup [612 792] (Letter) put
+ dup [612 1008] (Legal) put
+ dup [595 842] (A4) put
+ {exch aload pop 4 index sub abs 5 le exch
+ 5 index sub abs 5 le and
+ {exch pop exit} {pop} ifelse
+ } bind forall = flush pop pop
+ restore"
+*End
+*CloseUI: *PageSize
+*OpenUI *PageRegion/Media Size: PickOne
+*OrderDependency: 10 AnySetup *PageRegion
+*DefaultPageRegion: Letter
+*PageRegion Letter/US Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice"
+*PageRegion Legal/US Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice"
+*PageRegion A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice"
+*CloseUI: *PageRegion
+*DefaultImageableArea: Letter
+*ImageableArea Letter/US Letter: "0 0 612 792"
+*ImageableArea Legal/US Legal: "0 0 612 1008"
+*ImageableArea A4/A4: "0 0 595 842"
+*DefaultPaperDimension: Letter
+*PaperDimension Letter/US Letter: "612 792"
+*PaperDimension Legal/US Legal: "612 1008"
+*PaperDimension A4/A4: "595 842"
+*DefaultFont: Courier
+*Font AvantGarde-Book: Standard "(1.05)" Standard ROM
+*Font AvantGarde-BookOblique: Standard "(1.05)" Standard ROM
+*Font AvantGarde-Demi: Standard "(1.05)" Standard ROM
+*Font AvantGarde-DemiOblique: Standard "(1.05)" Standard ROM
+*Font Bookman-Demi: Standard "(1.05)" Standard ROM
+*Font Bookman-DemiItalic: Standard "(1.05)" Standard ROM
+*Font Bookman-Light: Standard "(1.05)" Standard ROM
+*Font Bookman-LightItalic: Standard "(1.05)" Standard ROM
+*Font Courier: Standard "(1.05)" Standard ROM
+*Font Courier-Bold: Standard "(1.05)" Standard ROM
+*Font Courier-BoldOblique: Standard "(1.05)" Standard ROM
+*Font Courier-Oblique: Standard "(1.05)" Standard ROM
+*Font Helvetica: Standard "(1.05)" Standard ROM
+*Font Helvetica-Bold: Standard "(1.05)" Standard ROM
+*Font Helvetica-BoldOblique: Standard "(1.05)" Standard ROM
+*Font Helvetica-Narrow: Standard "(1.05)" Standard ROM
+*Font Helvetica-Narrow-Bold: Standard "(1.05)" Standard ROM
+*Font Helvetica-Narrow-BoldOblique: Standard "(1.05)" Standard ROM
+*Font Helvetica-Narrow-Oblique: Standard "(1.05)" Standard ROM
+*Font Helvetica-Oblique: Standard "(1.05)" Standard ROM
+*Font NewCenturySchlbk-Bold: Standard "(1.05)" Standard ROM
+*Font NewCenturySchlbk-BoldItalic: Standard "(1.05)" Standard ROM
+*Font NewCenturySchlbk-Italic: Standard "(1.05)" Standard ROM
+*Font NewCenturySchlbk-Roman: Standard "(1.05)" Standard ROM
+*Font Palatino-Bold: Standard "(1.05)" Standard ROM
+*Font Palatino-BoldItalic: Standard "(1.05)" Standard ROM
+*Font Palatino-Italic: Standard "(1.05)" Standard ROM
+*Font Palatino-Roman: Standard "(1.05)" Standard ROM
+*Font Symbol: Special "(001.005)" Special ROM
+*Font Times-Bold: Standard "(1.05)" Standard ROM
+*Font Times-BoldItalic: Standard "(1.05)" Standard ROM
+*Font Times-Italic: Standard "(1.05)" Standard ROM
+*Font Times-Roman: Standard "(1.05)" Standard ROM
+*Font ZapfChancery-MediumItalic: Standard "(1.05)" Standard ROM
+*Font ZapfDingbats: Special "(001.005)" Special ROM
+*% End of ffgtk-fax.ppd, 04157 bytes.
diff --git a/ffgtk-libexec.patch b/ffgtk-libexec.patch
new file mode 100644
index 0000000..6c3f28b
--- /dev/null
+++ b/ffgtk-libexec.patch
@@ -0,0 +1,64 @@
+diff -r -C 4 ffgtk-0.7.8/ffgtk/Makefile.am ffgtk-0.7.8.patched/ffgtk/Makefile.am
+*** ffgtk-0.7.8/ffgtk/Makefile.am 2010-11-17 23:54:14.000000000 +0100
+--- ffgtk-0.7.8.patched/ffgtk/Makefile.am 2010-11-27 23:32:43.000000000 +0100
+***************
+*** 2,10 ****
+
+ ffgtkdir = $(datadir)/pixmaps/
+ ffgtk_DATA = ../images/ffgtk.png
+
+! ffgtk_CFLAGS = $(EXTRA_CFLAGS) -DSHAREDIR=\"$(pkgdatadir)/\" -DLIBDIR=\"$(libdir)/ffgtk/\" -DHTMLDIR=\"$(htmldir)/\" -rdynamic -Wall -Werror -D_GNU_SOURCE -DLOCALE_DIR=\"$(datadir)/locale/\" -g
+ ffgtk_LDFLAGS = $(EXTRA_LIBS) -export-dynamic
+
+ ffgtk_SOURCES =\
+ about.c\
+--- 2,10 ----
+
+ ffgtkdir = $(datadir)/pixmaps/
+ ffgtk_DATA = ../images/ffgtk.png
+
+! ffgtk_CFLAGS = $(EXTRA_CFLAGS) -DSHAREDIR=\"$(pkgdatadir)/\" -DLIBDIR=\"$(libdir)/ffgtk/\" -DHTMLDIR=\"$(htmldir)/\" -DLIBEXECDIR=\"$(libexecdir)/ffgtk/\" -rdynamic -Wall -Werror -D_GNU_SOURCE -DLOCALE_DIR=\"$(datadir)/locale/\" -g
+ ffgtk_LDFLAGS = $(EXTRA_LIBS) -export-dynamic
+
+ ffgtk_SOURCES =\
+ about.c\
+diff -r -C 4 ffgtk-0.7.8/ffgtk/voicebox.c ffgtk-0.7.8.patched/ffgtk/voicebox.c
+*** ffgtk-0.7.8/ffgtk/voicebox.c 2010-11-17 23:54:14.000000000 +0100
+--- ffgtk-0.7.8.patched/ffgtk/voicebox.c 2010-11-27 23:17:04.000000000 +0100
+***************
+*** 24,32 ****
+ gtk_tree_model_get_value( psModel, &sSelectedIter, 6, &sFile );
+
+ Debug( KERN_DEBUG, "sFile: [%s]\n", g_value_get_string( &sFile ) );
+ if ( routerLoadVoiceFile( getActiveProfile(), g_value_get_string( &sFile ) ) == 0 ) {
+! g_spawn_command_line_async( "ffgtkvoxplay /tmp/voice", NULL );
+ }
+
+ g_value_unset( &sFile );
+ }
+--- 24,32 ----
+ gtk_tree_model_get_value( psModel, &sSelectedIter, 6, &sFile );
+
+ Debug( KERN_DEBUG, "sFile: [%s]\n", g_value_get_string( &sFile ) );
+ if ( routerLoadVoiceFile( getActiveProfile(), g_value_get_string( &sFile ) ) == 0 ) {
+! g_spawn_command_line_async( LIBEXECDIR "ffgtkvoxplay /tmp/voice", NULL );
+ }
+
+ g_value_unset( &sFile );
+ }
+diff -r -C 4 ffgtk-0.7.8/voxplay/Makefile.am ffgtk-0.7.8.patched/voxplay/Makefile.am
+*** ffgtk-0.7.8/voxplay/Makefile.am 2010-11-17 23:54:14.000000000 +0100
+--- ffgtk-0.7.8.patched/voxplay/Makefile.am 2010-11-27 23:11:28.000000000 +0100
+***************
+*** 1,5 ****
+! bin_PROGRAMS = ffgtkvoxplay
+
+ ffgtkvoxplay_CFLAGS = $(EXTRA_CFLAGS) -Wall -Werror
+ ffgtkvoxplay_LDFLAGS = $(EXTRA_LIBS)
+
+--- 1,5 ----
+! libexec_PROGRAMS = ffgtkvoxplay
+
+ ffgtkvoxplay_CFLAGS = $(EXTRA_CFLAGS) -Wall -Werror
+ ffgtkvoxplay_LDFLAGS = $(EXTRA_LIBS)
+
diff --git a/ffgtk-license.txt b/ffgtk-license.txt
new file mode 100644
index 0000000..d59ac53
--- /dev/null
+++ b/ffgtk-license.txt
@@ -0,0 +1,115 @@
+From jan.brummer at tabos.org Fri Nov 19 23:03:29 2010
+Return-Path: <jan.brummer at tabos.org>
+X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on nest.pheasant
+X-Spam-Level:
+X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW
+ autolearn=ham version=3.2.5
+Received: from bsmtp4.xs4all.nl (bsmtp4.xs4all.nl [194.109.127.151]) by
+ lagendijk.xs4all.nl (8.13.8/8.13.8) with ESMTP id oAJM3S8U030515 for
+ <louis at lagendijk.xs4all.nl>; Fri, 19 Nov 2010 23:03:29 +0100
+Received: from k-dns.de (k-dns.de [84.38.66.51]) by mxdrop132.xs4all.nl
+ (8.13.8/8.13.8) with ESMTP id oAJM3Ne1049470 for
+ <louis at lagendijk.xs4all.nl>; Fri, 19 Nov 2010 23:03:25 +0100 (CET)
+ (envelope-from jan.brummer at tabos.org)
+Received: from brsg-4dbbad19.pool.mediaways.net ([77.187.173.25]
+ helo=[192.168.178.23]) by k-dns.de with esmtpsa
+ (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from
+ <jan.brummer at tabos.org>) id 1PJZ2D-0002qR-8L for louis at lagendijk.xs4all.nl;
+ Fri, 19 Nov 2010 23:02:23 +0100
+Subject: Re: License
+From: Jan-Michael Brummer <jan.brummer at tabos.org>
+To: Louis Lagendijk <louis at lagendijk.xs4all.nl>
+In-Reply-To: <1290199998.3744.6.camel at travel.pheasant>
+References: <1290199998.3744.6.camel at travel.pheasant>
+Content-Type: text/plain; charset="UTF-8"
+Date: Fri, 19 Nov 2010 23:03:20 +0100
+Message-ID: <1290204200.2057.5.camel at buzz-notebook>
+Mime-Version: 1.0
+X-Mailer: Evolution 2.30.3
+X-XS4ALL-DNSBL-Checked: mxdrop132.xs4all.nl checked 84.38.66.51 against DNS
+ blacklists
+X-CNFS-Analysis: v=1.1 cv=oT86nhGDpQcJaleNmPlN+h7HFDbyJYDKYPdNVmnYPAs= c=1
+ sm=0 a=IkcTkHD0fZMA:10 a=lMvcFT2yJ+LbXhKbRVxdQQ==:17 a=20KFwNOVAAAA:8
+ a=hHZLoLvNY0jIvode8sIA:9 a=G3utZzUrpgf06DubGWEA:7
+ a=z3Npxa1h5Dal9j6b1cyBeUK3AqwA:4 a=QEXdDO2ut3YA:10 a=oZHp3D8HesUA:10
+ a=nyOMzLLnSe20Pchw:21 a=b2NqzfBVtvSkTgIN:21 a=lMvcFT2yJ+LbXhKbRVxdQQ==:117
+X-Virus-Scanned: by XS4ALL Virus Scanner
+X-XS4ALL-Spam-Score: 0.0 () none
+X-XS4ALL-Spam: NO
+X-Evolution-Source: imap://louis@nest.pheasant/
+Content-Transfer-Encoding: 8bit
+
+Hi,
+
+ffgtk is GPLv2 only, no GPLv3. I'll change the manpage.
+
+Jan
+
+Am Freitag, den 19.11.2010, 21:53 +0100 schrieb Louis Lagendijk:
+> hello Jan
+> I am getting some comments on the license situation for ffgtk (see
+> https://bugzilla.redhat.com/show_bug.cgi?id=592487 ):
+>
+>
+> I can't determine the GPL version in use. The source files don't seem
+> to
+> specify a version, but the manpage has the proper notice in comments at the
+> top:
+>
+> "
+> .\" This is free documentation; you can redistribute it and/or
+> .\" modify it under the terms of the GNU General Public License as
+> .\" published by the Free Software Foundation; either version 2 of
+> .\" the License, or (at your option) any later version.
+> "
+>
+> but of course that only applies to the documentation.
+>
+> Further down in the manpage:
+>
+> "
+> .SH LICENSE
+> This program is free software; you can redistribute it and/or modify
+> it under the terms of the GNU General Public License as published by
+> the Free Software Foundation; either version 2 of the License.
+> "
+>
+> which makes... no sense. I'll block FE-Legal; you should get upstream to
+> clarify.
+>
+> Can we make the license in the header of the sources more explicit by including the standard statement (taken from libcapifax):
+>
+> /*********************************************************************************
+> * libcapifax.h
+> *
+> * Copyright (c) 2008-2009 Marco Zissen <maz at v3v.de>
+> *
+> * This program is free software; you can redistribute it and/or modify
+> * it under the terms of the GNU General Public License as published by
+> * the Free Software Foundation; either version 2 of the License, or
+> * (at your option) any later version.
+> *
+> * This program is distributed in the hope that it will be useful,
+> * but WITHOUT ANY WARRANTY; without even the implied warranty of
+> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+> * GNU General Public License for more details.
+> *
+> * You should have received a copy of the GNU General Public License
+> * along with this program; if not, write to the Free Software
+> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+> *********************************************************************************/
+>
+> Is the license GPLv2 or GPLv2 or later?
+> The LICENSE in the manpage seems to be truncated:
+> .SH LICENSE
+> This program is free software; you can redistribute it and/or modify
+> it under the terms of the GNU General Public License as published by
+> the Free Software Foundation; either version 2 of the License ????????.
+> "
+>
+> Thanks in advance for your response
+> Louis
+>
+>
+
+
diff --git a/ffgtk-no-Werror.patch b/ffgtk-no-Werror.patch
new file mode 100644
index 0000000..ed59f7f
--- /dev/null
+++ b/ffgtk-no-Werror.patch
@@ -0,0 +1,162 @@
+diff -r -C4 ffgtk-0.7.8.org/ffgtk/Makefile.am ffgtk-0.7.8/ffgtk/Makefile.am
+*** ffgtk-0.7.8.org/ffgtk/Makefile.am 2011-02-10 22:35:59.495488476 +0100
+--- ffgtk-0.7.8/ffgtk/Makefile.am 2011-02-10 23:09:58.558613361 +0100
+***************
+*** 2,10 ****
+
+ ffgtkdir = $(datadir)/pixmaps/
+ ffgtk_DATA = ../images/ffgtk.png
+
+! ffgtk_CFLAGS = $(EXTRA_CFLAGS) -DSHAREDIR=\"$(pkgdatadir)/\" -DLIBDIR=\"$(libdir)/ffgtk/\" -DHTMLDIR=\"$(htmldir)/\" -DLIBEXECDIR=\"$(libexecdir)/\" -rdynamic -Wall -Werror -D_GNU_SOURCE -DLOCALE_DIR=\"$(datadir)/locale/\" -g -DUSE_OLD_SPOOLER
+ ffgtk_LDFLAGS = $(EXTRA_LIBS) -export-dynamic
+
+ ffgtk_SOURCES =\
+ about.c\
+--- 2,10 ----
+
+ ffgtkdir = $(datadir)/pixmaps/
+ ffgtk_DATA = ../images/ffgtk.png
+
+! ffgtk_CFLAGS = $(EXTRA_CFLAGS) -DSHAREDIR=\"$(pkgdatadir)/\" -DLIBDIR=\"$(libdir)/ffgtk/\" -DHTMLDIR=\"$(htmldir)/\" -DLIBEXECDIR=\"$(libexecdir)/\" -rdynamic -Wall -D_GNU_SOURCE -DLOCALE_DIR=\"$(datadir)/locale/\" -g -DUSE_OLD_SPOOLER
+ ffgtk_LDFLAGS = $(EXTRA_LIBS) -export-dynamic
+
+ ffgtk_SOURCES =\
+ about.c\
+diff -r -C4 ffgtk-0.7.8.org/plugins/Makefile.am ffgtk-0.7.8/plugins/Makefile.am
+*** ffgtk-0.7.8.org/plugins/Makefile.am 2011-02-10 22:35:59.479488472 +0100
+--- ffgtk-0.7.8/plugins/Makefile.am 2011-02-10 23:09:20.624556576 +0100
+***************
+*** 3,58 ****
+
+ if WITH_GNOME_KEYRING
+ plugin_LTLIBRARIES += lib_pwd_gnome.la
+ lib_pwd_gnome_la_SOURCES = pwd_gnome.c
+! lib_pwd_gnome_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk $(GNOME_KEYRING_CFLAGS)
+ lib_pwd_gnome_la_LDFLAGS=-shared $(GNOME_KEYRING_LIBS)
+ endif
+
+ if WITH_KWALLET4
+ plugin_LTLIBRARIES += lib_pwd_kde4.la
+ lib_pwd_kde4_la_SOURCES = pwd_kde4.cpp pwd_kdemain.cpp
+! lib_pwd_kde4_la_CXXFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk $(KWALLET4_CFLAGS)
+ lib_pwd_kde4_la_LDFLAGS=-shared $(KWALLET4_LIBS)
+ endif
+
+ if WITH_GSTREAMER
+ plugin_LTLIBRARIES += lib_audio_gstreamer.la
+ lib_audio_gstreamer_la_SOURCES = audio_gstreamer.c
+! lib_audio_gstreamer_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk $(GSTREAMER_CFLAGS)
+ lib_audio_gstreamer_la_LDFLAGS=-shared $(GSTREAMER_LIBS)
+ endif
+
+ plugin_LTLIBRARIES += lib_audio_ao.la
+ lib_audio_ao_la_SOURCES = audio_ao.c
+! lib_audio_ao_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk $(GSTREAMER_CFLAGS)
+ lib_audio_ao_la_LDFLAGS=-shared $(GSTREAMER_LIBS)
+
+ lib_ab_local_la_SOURCES = ab_local.c
+! lib_ab_local_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk
+ lib_ab_local_la_LDFLAGS=-shared
+
+ lib_ab_fritzfon_la_SOURCES = ab_fritzfon.c
+! lib_ab_fritzfon_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk
+ lib_ab_fritzfon_la_LDFLAGS=-shared
+
+ lib_ab_thunderbird_la_SOURCES = ab_thunderbird.c
+! lib_ab_thunderbird_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk
+ lib_ab_thunderbird_la_LDFLAGS=-shared
+
+ lib_ab_vcard_la_SOURCES = ab_vcard.c
+! lib_ab_vcard_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk -D_GNU_SOURCE
+ lib_ab_vcard_la_LDFLAGS=-shared
+
+ if WITH_EBOOK
+ plugin_LTLIBRARIES += lib_ab_ebook.la
+ lib_ab_ebook_la_SOURCES = ab_ebook.c
+! lib_ab_ebook_la_CFLAGS=$(EXTRA_CFLAGS) $(EBOOK_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk
+ lib_ab_ebook_la_LDFLAGS=-shared $(EBOOK_LIBS)
+ endif
+
+ if WITH_CAPIFAX
+ plugin_LTLIBRARIES += lib_fax_capifax.la
+ lib_fax_capifax_la_SOURCES = fax_capifax.c
+! lib_fax_capifax_la_CFLAGS=$(EXTRA_CFLAGS) $(CAPIFAX_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -Werror -O2 -I../ffgtk
+ lib_fax_capifax_la_LDFLAGS=-shared $(CAPIFAX_LIBS)
+ endif
+--- 3,58 ----
+
+ if WITH_GNOME_KEYRING
+ plugin_LTLIBRARIES += lib_pwd_gnome.la
+ lib_pwd_gnome_la_SOURCES = pwd_gnome.c
+! lib_pwd_gnome_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk $(GNOME_KEYRING_CFLAGS)
+ lib_pwd_gnome_la_LDFLAGS=-shared $(GNOME_KEYRING_LIBS)
+ endif
+
+ if WITH_KWALLET4
+ plugin_LTLIBRARIES += lib_pwd_kde4.la
+ lib_pwd_kde4_la_SOURCES = pwd_kde4.cpp pwd_kdemain.cpp
+! lib_pwd_kde4_la_CXXFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk $(KWALLET4_CFLAGS)
+ lib_pwd_kde4_la_LDFLAGS=-shared $(KWALLET4_LIBS)
+ endif
+
+ if WITH_GSTREAMER
+ plugin_LTLIBRARIES += lib_audio_gstreamer.la
+ lib_audio_gstreamer_la_SOURCES = audio_gstreamer.c
+! lib_audio_gstreamer_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk $(GSTREAMER_CFLAGS)
+ lib_audio_gstreamer_la_LDFLAGS=-shared $(GSTREAMER_LIBS)
+ endif
+
+ plugin_LTLIBRARIES += lib_audio_ao.la
+ lib_audio_ao_la_SOURCES = audio_ao.c
+! lib_audio_ao_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk $(GSTREAMER_CFLAGS)
+ lib_audio_ao_la_LDFLAGS=-shared $(GSTREAMER_LIBS)
+
+ lib_ab_local_la_SOURCES = ab_local.c
+! lib_ab_local_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk
+ lib_ab_local_la_LDFLAGS=-shared
+
+ lib_ab_fritzfon_la_SOURCES = ab_fritzfon.c
+! lib_ab_fritzfon_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk
+ lib_ab_fritzfon_la_LDFLAGS=-shared
+
+ lib_ab_thunderbird_la_SOURCES = ab_thunderbird.c
+! lib_ab_thunderbird_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk
+ lib_ab_thunderbird_la_LDFLAGS=-shared
+
+ lib_ab_vcard_la_SOURCES = ab_vcard.c
+! lib_ab_vcard_la_CFLAGS=$(EXTRA_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk -D_GNU_SOURCE
+ lib_ab_vcard_la_LDFLAGS=-shared
+
+ if WITH_EBOOK
+ plugin_LTLIBRARIES += lib_ab_ebook.la
+ lib_ab_ebook_la_SOURCES = ab_ebook.c
+! lib_ab_ebook_la_CFLAGS=$(EXTRA_CFLAGS) $(EBOOK_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk
+ lib_ab_ebook_la_LDFLAGS=-shared $(EBOOK_LIBS)
+ endif
+
+ if WITH_CAPIFAX
+ plugin_LTLIBRARIES += lib_fax_capifax.la
+ lib_fax_capifax_la_SOURCES = fax_capifax.c
+! lib_fax_capifax_la_CFLAGS=$(EXTRA_CFLAGS) $(CAPIFAX_CFLAGS) -DLIBDIR=\"$(libdir)/ffgtk/\" -Wall -O2 -I../ffgtk
+ lib_fax_capifax_la_LDFLAGS=-shared $(CAPIFAX_LIBS)
+ endif
+diff -r -C4 ffgtk-0.7.8.org/voxplay/Makefile.am ffgtk-0.7.8/voxplay/Makefile.am
+*** ffgtk-0.7.8.org/voxplay/Makefile.am 2011-02-10 22:35:59.469488470 +0100
+--- ffgtk-0.7.8/voxplay/Makefile.am 2011-02-10 23:08:52.912516176 +0100
+***************
+*** 1,7 ****
+ libexec_PROGRAMS = ffgtkvoxplay
+
+! ffgtkvoxplay_CFLAGS = $(EXTRA_CFLAGS) -Wall -Werror
+ ffgtkvoxplay_LDFLAGS = $(EXTRA_LIBS)
+
+ ffgtkvoxplay_SOURCES =\
+ voxplay.c
+--- 1,7 ----
+ libexec_PROGRAMS = ffgtkvoxplay
+
+! ffgtkvoxplay_CFLAGS = $(EXTRA_CFLAGS) -Wall
+ ffgtkvoxplay_LDFLAGS = $(EXTRA_LIBS)
+
+ ffgtkvoxplay_SOURCES =\
+ voxplay.c
diff --git a/ffgtk-use-old-spooler.patch b/ffgtk-use-old-spooler.patch
new file mode 100644
index 0000000..ec83369
--- /dev/null
+++ b/ffgtk-use-old-spooler.patch
@@ -0,0 +1,48 @@
+diff -r -C 4 ffgtk-0.7.8/ffgtk/main.c ffgtk-0.7.8.patched/ffgtk/main.c
+*** ffgtk-0.7.8/ffgtk/main.c 2010-11-17 23:54:14.000000000 +0100
+--- ffgtk-0.7.8.patched/ffgtk/main.c 2010-12-22 23:34:02.000000000 +0100
+***************
+*** 211,219 ****
+ DiversityLoad();
+ /* Start call-monitor port thread */
+ InitMonitor();
+
+! #ifdef __MACOSX__
+ /* Start old cups printer waitqueue */
+ PrintServerInit();
+ #else
+ /* Initialize new fax spool watcher */
+--- 211,219 ----
+ DiversityLoad();
+ /* Start call-monitor port thread */
+ InitMonitor();
+
+! #if defined(__MACOSX__) || defined(USE_OLD_SPOOLER)
+ /* Start old cups printer waitqueue */
+ PrintServerInit();
+ #else
+ /* Initialize new fax spool watcher */
+diff -r -C 4 ffgtk-0.7.8/ffgtk/Makefile.am ffgtk-0.7.8.patched/ffgtk/Makefile.am
+*** ffgtk-0.7.8/ffgtk/Makefile.am 2010-11-17 23:54:14.000000000 +0100
+--- ffgtk-0.7.8.patched/ffgtk/Makefile.am 2010-12-23 00:09:23.000000000 +0100
+***************
+*** 2,10 ****
+
+ ffgtkdir = $(datadir)/pixmaps/
+ ffgtk_DATA = ../images/ffgtk.png
+
+! ffgtk_CFLAGS = $(EXTRA_CFLAGS) -DSHAREDIR=\"$(pkgdatadir)/\" -DLIBDIR=\"$(libdir)/ffgtk/\" -DHTMLDIR=\"$(htmldir)/\" -DLIBEXECDIR=\"$(libexecdir)/ffgtk/\" -rdynamic -Wall -Werror -D_GNU_SOURCE -DLOCALE_DIR=\"$(datadir)/locale/\" -g
+ ffgtk_LDFLAGS = $(EXTRA_LIBS) -export-dynamic
+
+ ffgtk_SOURCES =\
+ about.c\
+--- 2,10 ----
+
+ ffgtkdir = $(datadir)/pixmaps/
+ ffgtk_DATA = ../images/ffgtk.png
+
+! ffgtk_CFLAGS = $(EXTRA_CFLAGS) -DSHAREDIR=\"$(pkgdatadir)/\" -DLIBDIR=\"$(libdir)/ffgtk/\" -DHTMLDIR=\"$(htmldir)/\" -DLIBEXECDIR=\"$(libexecdir)/\" -rdynamic -Wall -Werror -D_GNU_SOURCE -DLOCALE_DIR=\"$(datadir)/locale/\" -g -DUSE_OLD_SPOOLER
+ ffgtk_LDFLAGS = $(EXTRA_LIBS) -export-dynamic
+
+ ffgtk_SOURCES =\
+ about.c\
diff --git a/ffgtk.spec b/ffgtk.spec
new file mode 100644
index 0000000..9ea33e6
--- /dev/null
+++ b/ffgtk.spec
@@ -0,0 +1,213 @@
+Name: ffgtk
+Version: 0.7.8
+Release: 4%{?dist}
+Summary: A solution for controlling Fritz!Box or compatible routers
+Group: Applications/Communications
+License: GPLv2
+URL: http://www.tabos.org/ffgtk/
+Source0: http://www.tabos.org/ffgtk/download/%{name}-%{version}.tar.bz2
+Source1: ffgtk-fax.ppd
+Source2: ffgtk-README.Fedora
+source3: ffgtk-license.txt
+Patch0: ffgtk-libexec.patch
+Patch1: ffgtk-use-old-spooler.patch
+Patch2: ffgtk-no-Werror.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: gettext autoconf automake libtool intltool desktop-file-utils
+BuildRequires: gtk2-devel gstreamer-devel gstreamer-plugins-base-devel
+BuildRequires: libcurl-devel dbus-devel dbus-glib-devel libcapifax-devel
+Buildrequires: isdn4k-utils-devel spandsp-devel evolution-data-server-devel
+Buildrequires: gnome-keyring-devel speex-devel libsndfile-devel libao-devel
+Provides: bundled(md5-deutsch)
+
+%description
+Fritz Fun (ffgtk) is a clean solution for controlling the FRITZ!Box or
+compatible router with Linux. It offers a rich feature list, including caller
+monitor and fax support. It offers integration with the KDE, evolution and
+Thurderbird address books.
+Some plug-ins are packaged separately.
+
+%package plugin-evolution
+Summary: Evolution address book plugin for ffgtk
+Requires: %{name} = %{version}-%{release}
+
+%description plugin-evolution
+This package contains the evolution address book plugin for ffgtk.
+
+%package plugin-capifax
+Summary: Fax plugin for ffgtk
+Requires: %{name} = %{version}-%{release}
+Requires: cups ghostscript
+Requires(post): /usr/sbin/lpadmin
+Requires(postun):/usr/sbin/lpadmin
+
+%description plugin-capifax
+This package contains the fax plugin for ffgtk.
+
+%package plugin-gstreamer
+Summary: Gstreamer plugin for ffgtk
+Requires: %{name} = %{version}-%{release}
+
+%description plugin-gstreamer
+This package contains the gstreamer plugin for ffgtk.
+
+%prep
+%setup -q
+%patch0 -p1 -b .libexec
+%patch1 -p1 -b .spooler
+%patch2 -p1 -b .noWerror
+install -m644 %{SOURCE2} ./README.Fedora
+install -m644 %{SOURCE3} ./license-mail.txt
+
+%build
+./autogen.sh
+%configure --htmldir=%{_datarootdir}/ffgtk/html
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot} INSTALL="install -p"
+
+# Install ppd file for cups
+
+mkdir -p %{buildroot}%{_datadir}/cups/model/
+install -m644 %{SOURCE1} %{buildroot}%{_datadir}/cups/model/
+
+# ffgtk-cups is of no use as we use the old spooler
+
+rm %{buildroot}/%{_datarootdir}/ffgtk/ffgtk-cups
+
+%find_lang %{name}
+desktop-file-validate %{buildroot}/%{_datadir}/applications/ffgtk.desktop
+
+# remove non desirable development libraries
+
+find %{buildroot} -name '*.so' -exec rm -f {} ';'
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+
+%post plugin-capifax
+
+# On first install : create the printer if cupsd is running
+if [ "$1" -eq "1" -a -f "%{_var}/run/cupsd.pid" ]
+then
+ if [ -d /proc/$(cat %{_var}/run/cupsd.pid) ]
+ then
+ /usr/sbin/lpadmin -p ffgtk-fax -v socket://localhost:9901 -m ffgtk-fax.ppd -E || :
+ fi
+fi
+
+
+%postun plugin-capifax
+# on removal, remove the printer if cupsd is running
+if [ "$1" -eq "0" -a -f "%{_var}/run/cupsd.pid" ]
+then
+ if [ -d /proc/$(cat %{_var}/run/cupsd.pid) ]
+ then
+ # Delete the printer
+ /usr/sbin/lpadmin -x ffgtk-fax || :
+ fi
+fi
+
+
+%clean
+rm -rf %{buildroot}
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%dir %{_datarootdir}/ffgtk
+%dir %{_datarootdir}/ffgtk/html
+%dir %{_datarootdir}/ffgtk/html/graphics
+%dir %{_datarootdir}/ffgtk/areacodes_germany.csv
+%dir %{_libdir}/ffgtk
+%dir %{_libdir}/ffgtk/plugins
+%{_bindir}/ffgtk
+%{_libexecdir}/ffgtkvoxplay
+%{_libdir}/ffgtk/plugins/lib_ab_fritzfon.so.0
+%{_libdir}/ffgtk/plugins/lib_ab_fritzfon.so.0.0.0
+%{_libdir}/ffgtk/plugins/lib_ab_local.so.0
+%{_libdir}/ffgtk/plugins/lib_ab_local.so.0.0.0
+%{_libdir}/ffgtk/plugins/lib_ab_thunderbird.so.0
+%{_libdir}/ffgtk/plugins/lib_ab_thunderbird.so.0.0.0
+%{_libdir}/ffgtk/plugins/lib_ab_vcard.so.0
+%{_libdir}/ffgtk/plugins/lib_ab_vcard.so.0.0.0
+%{_libdir}/ffgtk/plugins/lib_pwd_gnome.so.0
+%{_libdir}/ffgtk/plugins/lib_pwd_gnome.so.0.0.0
+%{_libdir}/ffgtk/plugins/lib_audio_ao.so.0
+%{_libdir}/ffgtk/plugins/lib_audio_ao.so.0.0.0
+%{_datarootdir}/applications/ffgtk.desktop
+%{_datarootdir}/ffgtk/actions.ui
+%{_datarootdir}/ffgtk/addaddress.ui
+%{_datarootdir}/ffgtk/assistant.ui
+%{_datarootdir}/ffgtk/sendsms.ui
+%{_datarootdir}/ffgtk/book.ui
+%{_datarootdir}/ffgtk/call_in.wav
+%{_datarootdir}/ffgtk/call_out.wav
+%{_datarootdir}/ffgtk/callin.png
+%{_datarootdir}/ffgtk/callinfailed.png
+%{_datarootdir}/ffgtk/callmonitor.ui
+%{_datarootdir}/ffgtk/callout.png
+%{_datarootdir}/ffgtk/dialing.ui
+%{_datarootdir}/ffgtk/dialwindow.ui
+%{_datarootdir}/ffgtk/ffgtk.png
+%{_datarootdir}/ffgtk/kind.ui
+%{_datarootdir}/ffgtk/lookup.xml
+%{_datarootdir}/ffgtk/popup.ui
+%{_datarootdir}/ffgtk/preferences.ui
+%{_datarootdir}/ffgtk/profiles.ui
+%{_datarootdir}/ffgtk/sendfax.ui
+%{_datarootdir}/ffgtk/voicebox.ui
+%{_datarootdir}/ffgtk/html/*.html
+%{_datarootdir}/ffgtk/html/graphics/*
+%{_datarootdir}/pixmaps/ffgtk.png
+%{_mandir}/man1/ffgtk.1.gz
+%doc README AUTHORS ChangeLog COPYING README.Fedora license-mail.txt
+
+%files plugin-evolution
+%defattr(-,root,root,-)
+%{_libdir}/ffgtk/plugins/lib_ab_ebook.so.0
+%{_libdir}/ffgtk/plugins/lib_ab_ebook.so.0.0.0
+
+%files plugin-capifax
+%defattr(-,root,root,-)
+%{_libdir}/ffgtk/plugins/lib_fax_capifax.so.0
+%{_libdir}/ffgtk/plugins/lib_fax_capifax.so.0.0.0
+%{_datadir}/cups/model/ffgtk-fax.ppd
+
+%files plugin-gstreamer
+%defattr(-,root,root,-)
+%{_libdir}/ffgtk/plugins/lib_audio_gstreamer.so.0
+%{_libdir}/ffgtk/plugins/lib_audio_gstreamer.so.0.0.0
+
+%changelog
+* Thu Feb 10 2011 Louis Lagendijk <louis.lagendijk at gmail.com> 0.7.8-4
+- Remove -Werror from Makefile,am for now as it breaks compilation under RwaHide
+ as -Wunused-but-set-parameter seems to be standard now
+* Fri Jan 28 2011 Louis Lagendijk <louis.lagendijk at gmail.com> 0.7.8-3
+- Added scriptlet dependencies
+- Removed duplicate documentation from plugin packages
+- Added Provides for bundled MD5 implementation
+- Check if cups is running before trying to remove the printer
+* Fri Dec 24 2010 Louis Lagendijk <louis.lagendijk at gmail.com> 0.7.8-2
+- Re-instated old print-spooler
+- Added a ppd for the fax printer
+- Automatically create/delete the required printer in cups
+- Added REAME.Fedora
+* Sat Nov 27 2010 Louis Lagendijk <louis.lagendijk at gmail.com> 0.7.8-1
+- New upstream release
+* Thu Jul 29 2010 Louis Lagendijk <louis.lagendijk at gmail.com> 0.7.7-1
+- New upstream release 0.7.7
+- new plugins
+- removed Fedora 13 patches: upstreamed
+* Sat May 25 2010 Louis Lagendijk <louis.lagendijk at gmail.com> 0.7.6-2
+- fixed DSO linking on Fedora 13
+- Fixed crash on Fedora 13
+- Added includes required for Fedora 13
+* Thu May 20 2010 Louis Lagendijk <louis.lagendijk at gmail.com> 0.7.6-1
+- Update to version 0.7.6
+* Thu May 20 2010 Louis Lagendijk <louis.lagendijk at gmail.com> 0.7.5-2
+- Minor edits to specfile to correct layout
+* Mon Apr 19 2010 Louis Lagendijk <louis.lagendijk at gmail.com> 0.7.5-1
+- Initial version
+
diff --git a/sources b/sources
index e69de29..b5659a9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e23de494510a96f515fdfe7e20292c59 ffgtk-0.7.8.tar.bz2
More information about the scm-commits
mailing list