File grantlee.spec of Package grantlee

#
# spec file for package grantlee
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           grantlee
Version:        0.1.9
Release:        2
License:        LGPLv2.1+
Summary:        Qt string template library
Url:            http://grantlee.org/
Group:          System/Libraries
Source0:        http://downloads.grantlee.org/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  kde4-filesystem
BuildRequires:  lcov
BuildRequires:  libqt4-devel

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

%package devel
License:        LGPLv2.1+
Summary:        Include Files and Libraries Mandatory for Development with Grantlee
Group:          Development/Libraries/C and C++
Requires:       libgrantlee_core0 = %{version}
Requires:       libgrantlee_gui0 = %{version}

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

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

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

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

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

%prep
%setup -q

%build
%cmake_kde4 -d build -- -DBUILD_TESTS=OFF
%make_jobs

%install
cd build
%kde4_makeinstall
cd ..

%clean
rm -rf %{buildroot}

%post -n libgrantlee_core0 -p /sbin/ldconfig

%postun -n libgrantlee_core0 -p /sbin/ldconfig

%post -n libgrantlee_gui0 -p /sbin/ldconfig

%postun -n libgrantlee_gui0 -p /sbin/ldconfig

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

%files -n libgrantlee_core0
%defattr(-,root,root,-)
%{_libdir}/libgrantlee_core.so.0*
%dir %{_libdir}/grantlee
%dir %{_libdir}/grantlee/0.1
%{_libdir}/grantlee/0.1/grantlee_*.so

%files -n libgrantlee_gui0
%defattr(-,root,root,-)
%{_libdir}/libgrantlee_gui.so.0*

%changelog
openSUSE Build Service is sponsored by