File mingw64-grantlee.spec of Package mingw64-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:           mingw64-%{_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:  mingw64-cross-cmake
BuildRequires:  doxygen
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-libqt4-devel >= 4.8.0
BuildRequires:  mingw64-libqt4-tools
BuildRequires:  mingw64-libqt4-tools-devel >= 4.8.0
BuildRequires:  mingw64-kde4-filesystem
BuildRequires:  lcov
BuildArch:      noarch
%_mingw64_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:       mingw64-libgrantlee_core0 = %{version}
Requires:       mingw64-libgrantlee_gui0 = %{version}

%description devel
This package contains include files and libraries needed for development with
grantlee.

%package -n mingw64-libgrantlee_core0
Summary:        Qt string template library
Group:          System/Libraries
# grantlee was last used in openSUSE 11.4 (grantlee-0.1.7)
Provides:       mingw64-grantlee = %{version}
Obsoletes:      mingw64-grantlee < %{version}

%description -n mingw64-libgrantlee_core0
Grantlee is a string template engine based on the Django template system and
written in Qt.

%package -n mingw64-libgrantlee_gui0
Summary:        Qt string template library
Group:          System/Libraries
# grantlee was last used in openSUSE 11.4 (grantlee-0.1.7)
Provides:       mingw64-grantlee = %{version}
Obsoletes:      mingw64-grantlee < %{version}

%description -n mingw64-libgrantlee_gui0
Grantlee is a string template engine based on the Django template system and
written in Qt.

%_mingw64_debug_package

%prep
%setup -q -n  %{_name}-%{version}

%build
%_mingw64_cmake_kde4 -d build -- -DBUILD_TESTS=OFF
%_mingw64_cmake_build

%install
%_mingw64_kde4_makeinstall -C build

%clean
rm -rf %{buildroot}

%files devel
%defattr(-,root,root,-)
%doc AUTHORS CHANGELOG COPYING.LIB GOALS README
%{_mingw64_includedir}/grantlee/
%{_mingw64_includedir}/grantlee_*.h
%{_mingw64_libdir}/libgrantlee_core.dll.a
%{_mingw64_libdir}/libgrantlee_gui.dll.a
%dir %{_mingw64_libdir}/cmake
%{_mingw64_libdir}/cmake/grantlee/

%files -n mingw64-libgrantlee_core0
%defattr(-,root,root,-)
%{_mingw64_bindir}/libgrantlee_core.dll
%dir %{_mingw64_libdir}/grantlee
%dir %{_mingw64_libdir}/grantlee/*
%{_mingw64_libdir}/grantlee/*/*.dll

%files -n mingw64-libgrantlee_gui0
%defattr(-,root,root,-)
%{_mingw64_bindir}/libgrantlee_gui.dll

%changelog
openSUSE Build Service is sponsored by