File mingw32-psiconv.spec of Package mingw32-psiconv
#
# spec file for package mingw32-psiconv
#
# Copyright (c) 2014 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/
#
Name: mingw32-psiconv
Version: 0.9.9
Release: 0
Summary: EPOC32 PSION 5(MX) File Format Data Conversion Utilities
License: GPL-2.0-or-later
Group: Hardware/Psion
Url: http://software.frodo.looijaard.name/psiconv/
Source0: http://software.frodo.looijaard.name/psiconv/files/psiconv-%{version}.tar.gz
Patch0: psiconv-0.9.8-windows.patch
Patch1: psiconv-0.9.9-gcc10-fix.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 23
%_mingw32_package_header_debug
BuildArch: noarch
%description
This package is meant to make the Psion 5 series of PDAs, as well as
other small computers running EPOC 32, more usable to non-Windows
users.
The package consists of several parts: * Documentation about Psion 5
data formats;
* A library which can be linked against application that have to
read and write Psion 5 files;
* An example command-line program which reads Psion files and writes
more commonly used formats.
%package -n mingw32-libpsiconv
Summary: EPOC32 PSION 5(MX) File Format Data Conversion Library
Group: Development/Libraries/C and C++
%description -n mingw32-libpsiconv
This package is meant to make the Psion 5 series of PDAs, as well as
other small computers running EPOC 32, more usable to non-Windows
users.
The package consists of several parts: * Documentation about Psion 5
data formats;
* A library which can be linked against application that have to
read and write Psion 5 files;
* An example command-line program which reads Psion files and writes
more commonly used formats.
%package devel
Summary: EPOC32 PSION 5(MX) File Format Data Conversion Library
Group: Development/Libraries/C and C++
%description devel
This package is meant to make the Psion 5 series of PDAs, as well as
other small computers running EPOC 32, more usable to non-Windows
users.
The package consists of several parts: * Documentation about Psion 5
data formats;
* A library which can be linked against application that have to
read and write Psion 5 files;
* An example command-line program which reads Psion files and writes
more commonly used formats.
%_mingw32_debug_package
%prep
%autosetup -p1 -n psiconv-%{version}
%build
# The autotools used to generate the tarball have quite a difficulty
# with windows, so regenerate with recent autotools.
NOCONFIGURE=indeed AUTOMAKE=automake gnome-autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH" %{_mingw32_configure} \
--enable-shared --disable-static \
--disable-xhtml-docs
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%defattr(-,root,root)
%{_mingw32_bindir}/psiconv.exe
%{_mingw32_mandir}/man1/psiconv.1*
%{_mingw32_mandir}/man5/psiconv.conf.5*
%files -n mingw32-libpsiconv
%defattr(-,root,root)
%{_mingw32_bindir}/libpsiconv-6.dll
%{_mingw32_sysconfdir}/psiconv/psiconv.conf
%{_mingw32_sysconfdir}/psiconv/psiconv.conf.eg
%files devel
%defattr(-,root,root)
%{_mingw32_bindir}/psiconv-config
%{_mingw32_libdir}/libpsiconv.dll.a
%{_mingw32_mandir}/man1/psiconv-config.1*
%{_mingw32_includedir}/psiconv/*.h
%{_mingw32_datadir}/psiconv/psion/*.psi
%changelog