File kdebindings-smokegen.spec of Package kdebindings-smokegen
#
# spec file for package kdebindings-smokegen
#
# 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/
#
Name: kdebindings-smokegen
Version: 4.7.2
Release: 1
License: GPL v2.0
Summary: Smoke Generator for kdebindings
Url: https://projects.kde.org/projects/kde/kdebindings/smoke/smokegen
Group: Development/Libraries/KDE
Source0: smokegen-%{version}.tar.bz2
Patch0: correct_naming.patch
BuildRequires: cmake
BuildRequires: kde4-filesystem
BuildRequires: libQtWebKit-devel
BuildRequires: libqimageblitz-devel
BuildRequires: sqlite-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A general purpose C++ parser with a plugin infrastructure enabling
'generators' to be written, which can do various things with the C++ AST.
It is currently used for generating the various KDE SMOKE libraries.
%package -n libsmokegen-devel
License: GPL v2.0
Summary: Development files for kdebindings-smokegen
Group: Development/Libraries/KDE
Obsoletes: libsmoke-devel < %{version}
Provides: libsmoke-devel = %{version}
Requires: %{name} = %{version}
%description -n libsmokegen-devel
A general purpose C++ parser with a plugin infrastructure enabling
'generators' to be written, which can do various things with the C++ AST.
It is currently used for generating the various KDE SMOKE libraries.
This package provides development files and headers needed to compile
packages against kdebindings-smokegen
%prep
%setup -q -n smokegen-%{version}
%patch0 -p0
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/
cat <<EOF >%{buildroot}%{_sysconfdir}/ld.so.conf.d/smoke-gen.conf
%_kde4_libdir/smokegen
EOF
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%config %_kde4_sysconfdir/ld.so.conf.d/smoke-gen.conf
%{_kde4_bindir}/smokegen
%{_kde4_bindir}/smokeapi
%{_kde4_libdir}/*.so.*
%{_kde4_libdir}/smokegen/
%{_datadir}/smoke/
%{_datadir}/smokegen/
%files -n libsmokegen-devel
%defattr(-,root,root)
%{_kde4_libdir}/*.so
%{_includedir}/smoke.h
%{_includedir}/smokegen/
%changelog