File mingw32-grantlee.spec of Package mingw32-grantlee
#
# spec file for package grantlee
#
# Copyright (c) 2013 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/
#
%define _name grantlee
Name: mingw32-%{_name}
Version: 0.4.0
Release: 0
Summary: Qt string template library
License: LGPL-2.1-or-later
Group: System/Libraries
Url: http://grantlee.org/
Source0: http://downloads.grantlee.org/%{_name}-%{version}.tar.gz
BuildRequires: mingw32-cross-cmake
BuildRequires: doxygen
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-libqt4-devel >= 4.8.0
BuildRequires: mingw32-libqt4-tools
BuildRequires: mingw32-libqt4-tools-devel >= 4.8.0
BuildRequires: mingw32-kde4-filesystem
BuildRequires: lcov
BuildArch: noarch
%_mingw32_package_header_debug
%description
Grantlee is a string template engine based on the Django template system and
written in Qt.
%package devel
Summary: Include Files and Libraries Mandatory for Development with Grantlee
Group: Development/Libraries/C and C++
Requires: mingw32-libgrantlee_core0 = %{version}
Requires: mingw32-libgrantlee_gui0 = %{version}
%description devel
This package contains include files and libraries needed for development with
grantlee.
%package -n mingw32-libgrantlee_core0
Summary: Qt string template library
Group: System/Libraries
# grantlee was last used in openSUSE 11.4 (grantlee-0.1.7)
Provides: mingw32-grantlee = %{version}
Obsoletes: mingw32-grantlee < %{version}
%description -n mingw32-libgrantlee_core0
Grantlee is a string template engine based on the Django template system and
written in Qt.
%package -n mingw32-libgrantlee_gui0
Summary: Qt string template library
Group: System/Libraries
# grantlee was last used in openSUSE 11.4 (grantlee-0.1.7)
Provides: mingw32-grantlee = %{version}
Obsoletes: mingw32-grantlee < %{version}
%description -n mingw32-libgrantlee_gui0
Grantlee is a string template engine based on the Django template system and
written in Qt.
%_mingw32_debug_package
%prep
%setup -q -n %{_name}-%{version}
%build
%_mingw32_cmake_kde4 -d build -- -DBUILD_TESTS=OFF
%_mingw32_cmake_build
%install
%_mingw32_kde4_makeinstall -C build
%clean
rm -rf %{buildroot}
%files devel
%defattr(-,root,root,-)
%doc AUTHORS CHANGELOG COPYING.LIB GOALS README
%{_mingw32_includedir}/grantlee/
%{_mingw32_includedir}/grantlee_*.h
%{_mingw32_libdir}/libgrantlee_core.dll.a
%{_mingw32_libdir}/libgrantlee_gui.dll.a
%dir %{_mingw32_libdir}/cmake
%{_mingw32_libdir}/cmake/grantlee/
%files -n mingw32-libgrantlee_core0
%defattr(-,root,root,-)
%{_mingw32_bindir}/libgrantlee_core.dll
%dir %{_mingw32_libdir}/grantlee
%dir %{_mingw32_libdir}/grantlee/*
%{_mingw32_libdir}/grantlee/*/*.dll
%files -n mingw32-libgrantlee_gui0
%defattr(-,root,root,-)
%{_mingw32_bindir}/libgrantlee_gui.dll
%changelog