2007-01-16 00:16:18 +01:00
#
2011-01-14 16:46:36 +01:00
# spec file for package gwenhywfar
2007-01-16 00:16:18 +01:00
#
2011-01-14 16:46:36 +01:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-16 00:16:18 +01:00
#
2009-06-19 00:26:23 +02:00
# 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.
2007-01-16 00:16:18 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2008-02-15 01:23:00 +01:00
2007-01-16 00:16:18 +01:00
Name : gwenhywfar
2011-10-02 10:12:32 +02:00
Version : 4.3.0
2011-01-17 18:23:47 +01:00
Release : 1
2011-08-12 16:44:42 +02:00
License : GPL-2.0+; LGPL-2.1+
2009-08-17 15:04:28 +02:00
Summary : Multiplatform Helper Library for Other Libraries
2011-08-12 16:44:42 +02:00
Url : http://www.aqbanking.de/
Group : System/Libraries
Source : %{name} -%{version} .tar.gz
2011-10-02 10:12:32 +02:00
#Source: http://www2.aquamaniac.de/sites/download/download.php?package=01&release=64&file=01&dummy=gwenhywfar-4.3.0.tar.gz
# PATCH-FIX-UPSTREAM gwenhywfar-gnutls-3.0.3.patch vuntz@opensuse.org -- Drop deprecated and unneeded call to gnutls_transport_set_lowat. Sent upstream by mail on 2011-09-28
Patch0 : gwenhywfar-gnutls-3.0.3.patch
2009-12-26 12:14:05 +01:00
BuildRequires : doxygen
BuildRequires : fdupes
BuildRequires : gnutls-devel
2010-12-10 17:09:50 +01:00
BuildRequires : gtk2-devel
2009-12-26 12:14:05 +01:00
BuildRequires : libgcrypt-devel
BuildRequires : libopenssl-devel
2010-12-10 17:09:50 +01:00
BuildRequires : libqt4-devel
2009-12-26 12:14:05 +01:00
# For doc graphs
BuildRequires : graphviz
BuildRequires : graphviz-gd
BuildRequires : xorg-x11-fonts
2007-01-16 00:16:18 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
Gwenhywfar is a base library used to provide OS abstraction functions
2007-11-09 22:26:11 +01:00
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes some
often needed functions (for example, handling and parsing of
configuration files, reading and writingof XML files, and interprocess
2009-12-26 12:14:05 +01:00
communication).
2007-01-16 00:16:18 +01:00
2009-12-26 12:14:05 +01:00
%package tools
2011-08-12 16:44:42 +02:00
License : GPL-2.0+; LGPL-2.1+
2009-12-26 12:14:05 +01:00
Group : System/Libraries
Summary : Multiplatform Helper Library for Other Libraries - Tools
2010-12-10 17:09:50 +01:00
Requires : libgwenhywfar60 = %{version}
2007-01-16 00:16:18 +01:00
2009-12-26 12:14:05 +01:00
%description tools
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
2009-08-17 15:04:28 +02:00
2010-12-10 17:09:50 +01:00
%package -n libgwenhywfar60-plugins
2011-08-12 16:44:42 +02:00
License : LGPL-2.1+
2009-08-17 15:04:28 +02:00
Group : System/Libraries
2009-12-26 12:14:05 +01:00
Summary : Multiplatform Helper Library for Other Libraries - Plugins
2009-12-08 11:40:12 +01:00
Requires : %{name} = %{version}
2009-08-17 15:04:28 +02:00
2010-12-10 17:09:50 +01:00
%description -n libgwenhywfar60-plugins
2009-08-17 15:04:28 +02:00
Gwenhywfar is a base library used to provide OS abstraction functions
2009-12-26 12:14:05 +01:00
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
2009-08-17 15:04:28 +02:00
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
2009-12-26 12:14:05 +01:00
communication).
2007-07-27 15:09:00 +02:00
2010-12-10 17:09:50 +01:00
%package -n libgwenhywfar60
2011-08-12 16:44:42 +02:00
License : LGPL-2.1+
2007-07-27 15:09:00 +02:00
Group : System/Libraries
2009-08-17 15:04:28 +02:00
Summary : Multiplatform Helper Library for Other Libraries
2009-12-26 12:14:05 +01:00
Requires : %{name} -lang = %{version}
# Needed to make lang package installable
Provides : %{name} = %{version}
2010-12-10 17:09:50 +01:00
Recommends: libgwenhywfar60-plugins = %{version}
2007-07-27 15:09:00 +02:00
2010-12-10 17:09:50 +01:00
%description -n libgwenhywfar60
2007-07-27 15:09:00 +02:00
Gwenhywfar is a base library used to provide OS abstraction functions
2009-12-26 12:14:05 +01:00
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
2007-07-27 15:09:00 +02:00
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
2009-12-26 12:14:05 +01:00
communication).
2007-01-16 00:16:18 +01:00
2010-12-10 17:09:50 +01:00
%package -n libgwengui-gtk2-0
2011-08-12 16:44:42 +02:00
License : LGPL-2.1+
2010-12-10 17:09:50 +01:00
Group : System/Libraries
Summary : Multiplatform Helper Library for Other Libraries -- GTK+ UI Backend
%description -n libgwengui-gtk2-0
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
This package provides the GTK+ implementation of the generic UI toolkit.
%package -n libgwengui-qt4-0
2011-08-12 16:44:42 +02:00
License : LGPL-2.1+
2010-12-10 17:09:50 +01:00
Group : System/Libraries
Summary : Multiplatform Helper Library for Other Libraries -- Qt UI Backend
%description -n libgwengui-qt4-0
Gwenhywfar is a base library used to provide OS abstraction functions
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
some often needed functions (for example, for handling and parsing of
configuration files, reading and writing of XML files, and interprocess
communication).
This package provides the Qt implementation of the generic UI toolkit.
2007-01-16 00:16:18 +01:00
%package devel
2011-08-12 16:44:42 +02:00
License : LGPL-2.1+
2009-12-26 12:14:05 +01:00
Group : Development/Libraries/C and C++
2009-08-17 15:04:28 +02:00
Summary : Multi-Platform Helper Library for Other Libraries
2010-12-10 17:09:50 +01:00
Requires : libgwengui-gtk2-0 = %{version}
Requires : libgwengui-qt4-0 = %{version}
Requires : libgwenhywfar60 = %{version}
2009-12-26 12:14:05 +01:00
Requires : glibc-devel
2007-01-16 00:16:18 +01:00
%description devel
Gwenhywfar is a base library used to provide OS abstraction functions
2009-12-26 12:14:05 +01:00
for Linux, FreeBSD, OpenBSD, NetBSD, and Windows. It also includes
2007-01-16 00:16:18 +01:00
some often needed functions (e.g. for handling and parsing of
configuration files, reading/writing of XML files, interprocess
2009-12-26 12:14:05 +01:00
communication etc).
2007-01-16 00:16:18 +01:00
2009-12-26 12:14:05 +01:00
%lang_package
2007-01-16 00:16:18 +01:00
%prep
2007-07-27 15:09:00 +02:00
%setup -q
2011-10-02 10:12:32 +02:00
%patch0 -p1
2007-01-16 00:16:18 +01:00
%build
2007-07-27 15:09:00 +02:00
%configure \
--enable-release\
--enable-full-doc\
2009-12-26 12:14:05 +01:00
--with-docpath=%{_datadir} /%{name} /apidoc\
2007-11-09 22:26:11 +01:00
--with-openssl-libs=%{_libdir} \
2010-12-10 17:09:50 +01:00
--with-qt4-libs=%{_libdir} \
2007-11-09 22:26:11 +01:00
--disable-static \
--with-pic
2010-12-10 17:09:50 +01:00
%__make %{?smp_mflags}
%__make srcdoc %{?smp_mflags}
2007-01-16 00:16:18 +01:00
%install
2007-07-27 15:09:00 +02:00
%makeinstall
%makeinstall install-srcdoc
2011-08-12 16:44:42 +02:00
pushd %{buildroot} %{_datadir} /%{name} /apidoc
2009-12-26 12:14:05 +01:00
# we don't want another 'gwenhywfar' dir below docpath
2009-07-04 10:41:36 +02:00
%__mv %{name} /* ./
rm -rf %{name}
2009-12-26 12:14:05 +01:00
# remove empty files
2009-07-04 10:41:36 +02:00
`find -maxdepth 1 -type f -empty -print0 | xargs -0 echo %__rm -f`
popd
2009-12-26 12:14:05 +01:00
find %{buildroot} -type f -name " * . l a " -delete -print
%find_lang %{name}
2011-08-12 16:44:42 +02:00
%fdupes %{buildroot} %{_datadir} /%{name} /apidoc
2007-01-16 00:16:18 +01:00
%clean
2010-12-10 17:09:50 +01:00
rm -rf %{buildroot}
%post -n libgwenhywfar60 -p /sbin/ldconfig
2007-01-16 00:16:18 +01:00
2010-12-10 17:09:50 +01:00
%postun -n libgwenhywfar60 -p /sbin/ldconfig
2007-07-27 15:09:00 +02:00
2010-12-10 17:09:50 +01:00
%post -n libgwengui-gtk2-0 -p /sbin/ldconfig
%postun -n libgwengui-gtk2-0 -p /sbin/ldconfig
%post -n libgwengui-qt4-0 -p /sbin/ldconfig
%postun -n libgwengui-qt4-0 -p /sbin/ldconfig
2007-07-27 15:09:00 +02:00
2009-12-26 12:14:05 +01:00
%files tools
2007-01-16 00:16:18 +01:00
%defattr (-, root, root)
2007-07-27 15:09:00 +02:00
%{_bindir} /gct-tool
2011-08-12 16:44:42 +02:00
%{_bindir} /gsa
2009-12-26 12:14:05 +01:00
%{_bindir} /mklistdoc
%{_bindir} /typemaker
%{_bindir} /typemaker2
%{_bindir} /xmlmerge
%{_datadir} /gwenhywfar/typemaker2/
2007-07-27 15:09:00 +02:00
2010-12-10 17:09:50 +01:00
%files -n libgwenhywfar60-plugins
2009-08-17 15:04:28 +02:00
%defattr (-, root, root)
2010-12-10 17:09:50 +01:00
%{_libdir} /gwenhywfar/plugins/60/*
2009-08-17 15:04:28 +02:00
2010-12-10 17:09:50 +01:00
%files -n libgwenhywfar60
2007-07-27 15:09:00 +02:00
%defattr (-, root, root)
2009-12-26 12:14:05 +01:00
%doc AUTHORS COPYING ChangeLog NEWS README TODO
2010-12-10 17:09:50 +01:00
%{_libdir} /libgwenhywfar.so.*
2009-12-26 12:14:05 +01:00
%dir %{_datadir} /gwenhywfar/
%{_datadir} /gwenhywfar/ca-bundle.crt
2010-12-10 17:09:50 +01:00
%{_datadir} /gwenhywfar/dialogs/
2009-12-26 12:14:05 +01:00
%dir %{_libdir} /gwenhywfar
%dir %{_libdir} /gwenhywfar/plugins
2010-12-10 17:09:50 +01:00
%dir %{_libdir} /gwenhywfar/plugins/60
%files -n libgwengui-gtk2-0
%defattr (-, root, root)
%{_libdir} /libgwengui-gtk2.so.*
%files -n libgwengui-qt4-0
%defattr (-, root, root)
%{_libdir} /libgwengui-qt4.so.*
2007-01-16 00:16:18 +01:00
%files devel
%defattr (-, root, root)
2010-12-10 17:09:50 +01:00
%{_bindir} /gwenhywfar-config
%{_datadir} /aclocal/gwenhywfar.m4
%doc %{_datadir} /gwenhywfar/apidoc/
%{_includedir} /gwenhywfar4/
2007-07-27 15:09:00 +02:00
%{_libdir} /*.so
%{_libdir} /pkgconfig/gwenhywfar.pc
2010-12-10 17:09:50 +01:00
%{_libdir} /pkgconfig/gwengui-gtk2.pc
%{_libdir} /pkgconfig/gwengui-qt4.pc
2008-01-24 18:26:48 +01:00
2009-12-26 12:14:05 +01:00
%files lang -f %{name}.lang
2007-07-27 15:09:00 +02:00
%changelog