File mingw64-ghostscript.spec of Package mingw64-ghostscript
#
# spec file for package mingw64-ghostscript
#
# 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: mingw64-ghostscript
Version: 8.71
Release: 0
Summary: The Ghostscript interpreter for PostScript and PDF
License: GPL-3.0-or-later
Group: Productivity/Graphics
Url: http://www.ghostscript.com/
Source0: ghostscript-%{version}.tar.bz2
Patch0: ghostscript-8.71-windows.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-gettext-tools
BuildRequires: mingw64-libtiff-devel
BuildRequires: mingw64-win_iconv-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
Ghostscript, a postscript interpreter.
%package -n mingw64-libgs8
Summary: Ghostscript runtime library
Group: System/Libraries
Obsoletes: mingw64-libgs
Provides: mingw64-libgs
%description -n mingw64-libgs8
Ghostscript, a postscript interpreter.
This package provides the Ghostscript runtime library.
%package -n mingw64-libgs-devel
Summary: Ghostscript library development files
Group: Development/Libraries/C and C++
%description -n mingw64-libgs-devel
Ghostscript, a postscript interpreter.
This package provides the Ghostscript library development files.
%_mingw64_debug_package
%prep
%setup -q -n ghostscript-%{version}
%patch -P 0 -p1 -b .windows
%build
libtoolize --force --copy --install
autoconf -f -i
%{_mingw64_configure} \
--without-jasper \
--with-system-libtiff \
--without-x \
--disable-cups \
--disable-contrib
%{_mingw64_make} %{?_smp_mflags} so || %{_mingw64_make} so
%install
%{_mingw64_make} DESTDIR=%{buildroot} soinstall
mv %{buildroot}%{_mingw64_libdir}/libgs-8.dll %{buildroot}%{_mingw64_bindir}
rm -rf %{buildroot}%{_mingw64_libdir}
mkdir -p %{buildroot}%{_mingw64_libdir}
install sobin/libgs.dll.a %{buildroot}%{_mingw64_libdir}/
%files
%defattr(-,root,root)
%{_mingw64_bindir}
%exclude %{_mingw64_bindir}/libgs-8.dll
%{_mingw64_datadir}/ghostscript
%{_mingw64_datadir}/man
%files -n mingw64-libgs8
%defattr(-,root,root)
%{_mingw64_bindir}/libgs-8.dll
%files -n mingw64-libgs-devel
%defattr(-,root,root)
%{_mingw64_includedir}/ghostscript
%{_mingw64_libdir}/libgs.dll.a
%defattr(-,root,root)
%changelog