File mingw32-planner.spec of Package mingw32-planner
#
# spec file for package mingw32-planner
#
# 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-planner
Version: 0.14.5
Release: 0
Summary: Project Management Application for GNOME
License: GPL-2.0-or-later
Group: Development/Libraries
Url: http://www.gnome.org/projects/planner/
Source0: ftp://ftp.gnome.org/pub/gnome/sources/planner/0.14/planner-%{version}.tar.bz2
Patch0: planner-0.14.5-windows.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gconf2-devel
BuildRequires: glib2-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 25
BuildRequires: mingw32-gconf2-devel
BuildRequires: mingw32-glib2-devel
BuildRequires: mingw32-gtk2-devel
BuildRequires: mingw32-libglade2-devel
BuildRequires: mingw32-libgnomecanvas-devel
BuildRequires: mingw32-libgnomeui-devel
BuildRequires: mingw32-libgsf-devel
BuildRequires: mingw32-libxml2-devel
BuildRequires: mingw32-libxslt-devel
BuildRequires: scrollkeeper
Requires: %{name}-lang
%_mingw32_package_header_debug
BuildArch: noarch
%description
Planner is a project management tool for the GNOME desktop, for
planning, scheduling and tracking projects.
%package devel
Summary: Project Management Application for GNOME (development files)
Group: Development/Libraries
%description devel
Planner is a project management tool for the GNOME desktop, for
planning, scheduling and tracking projects.
This package contains headers and import libraries for developing
plugins for planner.
%_mingw32_debug_package
%lang_package
%prep
%setup -q -n planner-%{version}
%patch -P 0 -p1 -b .windows
%build
libtoolize --force --copy --install && autoreconf -fi
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
--enable-shared --disable-static \
--disable-python \
--disable-update-mimedb --disable-schemas-install
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}
%install
%{_mingw32_make} DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_mingw32_localstatedir}
rm -rf %{buildroot}%{_mingw32_libdir}/planner/*/*.dll.a
%find_lang planner
%files
%defattr(-,root,root)
%{_mingw32_bindir}/planner.exe
%{_mingw32_bindir}/libplannerapp.dll
%{_mingw32_bindir}/libplanner-1-0.dll
%{_mingw32_libdir}/planner/file-modules/libmrp-xml.dll
%{_mingw32_libdir}/planner/file-modules/libmrp-xsl.dll
%{_mingw32_libdir}/planner/plugins/libhtml-plugin.dll
%{_mingw32_libdir}/planner/plugins/libmsp-plugin.dll
%{_mingw32_libdir}/planner/plugins/libxmlplanner-plugin.dll
%{_mingw32_libdir}/planner/storage-modules/libstorage-mrproject-1.dll
%{_mingw32_sysconfdir}/gconf/schemas/planner.schemas
%{_mingw32_datadir}/applications/planner.desktop
%{_mingw32_datadir}/gnome/help/planner
%{_mingw32_datadir}/planner
%{_mingw32_datadir}//pixmaps/gnome-planner.png
%{_mingw32_datadir}/icons/hicolor/48x48/mimetypes/gnome-mime-application-x-planner.png
%{_mingw32_datadir}/mime/packages/planner.xml
%{_mingw32_docdir}/planner
%{_mingw32_mandir}/man1/planner.1*
%files lang -f planner.lang
%defattr(-,root,root)
%if 0%{?suse_version} <= 1100
%{_mingw32_datadir}/omf/planner/planner-*.omf
%endif
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/planner-1.0
%{_mingw32_libdir}/libplannerapp.dll.a
%{_mingw32_libdir}/libplanner-1.dll.a
%{_mingw32_libdir}/pkgconfig/libplanner-1.pc
%changelog