gwenhywfar/gwenhywfar.spec
OBS User autobuild 1134e82584 Accepting request 19839 from GNOME:Factory
Copy from GNOME:Factory/gwenhywfar based on submit request 19839 from user sbrabec

OBS-URL: https://build.opensuse.org/request/show/19839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gwenhywfar?expand=0&rev=11
2009-09-04 00:24:41 +00:00

181 lines
5.3 KiB
RPMSpec

#
# spec file for package gwenhywfar (Version 3.8.3)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: gwenhywfar
BuildRequires: doxygen graphviz graphviz-gd libgcrypt-devel libopenssl-devel libxml2-devel pkg-config xorg-x11-fonts
BuildRequires: fdupes gnutls-devel
Version: 3.8.3
Release: 3
Url: http://gwenhywfar.sourceforge.net/
Group: System/Libraries
License: LGPL v2.1 or later
Summary: Multiplatform Helper Library for Other Libraries
Source: %{name}-%{version}.tar.bz2
Requires: libgwenhywfar47 = %{version} gwenhywfar47 = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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, handling and parsing of
configuration files, reading and writingof XML files, and interprocess
communication). It is used by OpenHBCI2,Libchipcard2, Simthetic,
AqBanking, and QBankManager.
Authors:
--------
Martin Preuss <martin@libchipcard.de>
Christian Stimming
%package -n gwenhywfar47
License: LGPL v2.1 or later
Group: System/Libraries
Summary: Multiplatform Helper Library for Other Libraries
Requires: %{name} >= %{version}
%description -n gwenhywfar47
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). It is used by OpenHBCI2, Libchipcard2, Simthetic,
AqBanking, and QBankManager.
Authors:
--------
Martin Preuss <martin@libchipcard.de>
Christian Stimming
%package -n libgwenhywfar47
License: LGPL v2.1 or later
Group: System/Libraries
Summary: Multiplatform Helper Library for Other Libraries
Requires: gwenhywfar47 >= %{version}
%description -n libgwenhywfar47
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). It is used by OpenHBCI2, Libchipcard2, Simthetic,
AqBanking, and QBankManager.
Authors:
--------
Martin Preuss <martin@libchipcard.de>
Christian Stimming
%package devel
License: LGPL v2.1 or later
Group: System/Libraries
Summary: Multi-Platform Helper Library for Other Libraries
Requires: %{name} = %{version} glibc-devel
%description devel
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 (e.g. for handling and parsing of
configuration files, reading/writing of XML files, interprocess
communication etc). It is used by: OpenHBCI2, Libchipcard2, Simthetic,
AqBanking, QBankManager.
Authors:
--------
Martin Preuss <martin@libchipcard.de>
Christian Stimming
%prep
%setup -q
%build
autoreconf -f -i
%configure\
--enable-release\
--enable-full-doc\
--with-docpath=%{_docdir}/%{name}/apidoc\
--with-openssl-libs=%{_libdir} \
--disable-static \
--with-pic
make %{?jobs:-j%jobs}
make srcdoc %{?jobs:-j%jobs}
%install
%makeinstall
%makeinstall install-srcdoc
# we don't want another 'gwenhywfar' dir below docpath
pushd $RPM_BUILD_ROOT%{_docdir}/%{name}/apidoc
%__mv %{name}/* ./
rm -rf %{name}
popd
%find_lang %{name}
%__rm $RPM_BUILD_ROOT%{_libdir}/gwenhywfar/plugins/*/*/*.*a $RPM_BUILD_ROOT%{_libdir}/*.*a
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
%__cp -a AUTHORS COPYING ChangeLog NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
pushd $RPM_BUILD_ROOT%{_docdir}/%{name}/apidoc
`find -maxdepth 1 -type f -empty -print0 | xargs -0 echo %__rm -f`
popd
%fdupes $RPM_BUILD_ROOT%{_docdir}/%{name}/apidoc
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libgwenhywfar47 -p /sbin/ldconfig
%postun -n libgwenhywfar47 -p /sbin/ldconfig
%files -f %{name}.lang
%defattr (-, root, root)
%{_bindir}/gct-tool
%doc %{_docdir}/%{name}
%{_datadir}/gwenhywfar
%exclude %{_docdir}/%{name}/apidoc
%files -n gwenhywfar47
%defattr (-, root, root)
%dir %{_libdir}/gwenhywfar
%dir %{_libdir}/gwenhywfar/plugins
%{_libdir}/gwenhywfar/plugins/47
%files -n libgwenhywfar47
%defattr (-, root, root)
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%{_bindir}/*-config
%{_bindir}/mklistdoc
%{_bindir}/typemaker
%{_bindir}/xmlmerge
%{_datadir}/aclocal/*.m4
%doc %{_docdir}/%{name}/apidoc
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/gwenhywfar.pc
%changelog