File liburfkill-qt.spec of Package liburfkill-qt
#
# spec file for package liburfkill-qt
#
# Copyright (c) 2010 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
%define _tarname_version git-master
%bcond_without qt
Name: liburfkill-qt
Version: 0.4.0
Release: 0
License: GPL-2.0+
Summary: C++ Qt binding of URfkill library
Url: https://github.com/nilxam/liburfkill-qt
Group: System/Libraries
Source: %{name}-%{_tarname_version}.tar.gz
BuildRequires: cmake
BuildRequires: kde4-filesystem
BuildRequires: libqt4-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
liburfkill-qt is Qt binding of URfkill, it provides Qt interface to
control URfkill. liburfkill-qt follows URfkill version naming rule.
%if %{with qt}
%package -n liburfkill-qt0
Summary: Qt Wrapper for URfkill
Group: System/Libraries
%description -n liburfkill-qt0
Qt wrapper for URfkill.
%endif
%package devel
Summary: Development libraries of liburfkill-qt
Group: Development/Libraries/C and C++
Requires: liburfkill-qt0 = %{version}
%description devel
Development libraries of liburfkill-qt.
%prep
%setup -q -n %{name}-%{_tarname_version}
%build
%cmake_kde4 -d build
%make_jobs
%install
%kde4_makeinstall -C build
%if %{with qt}
%post -n liburfkill-qt0 -p /sbin/ldconfig
%postun -n liburfkill-qt0 -p /sbin/ldconfig
%files -n liburfkill-qt0
%defattr(-,root,root)
%doc README COPYING
%{_libdir}/liburfkill-qt.so.0*
%endif
%files devel
%defattr(-,root,root,-)
%doc README COPYING
%{_includedir}/liburfkill-qt/
%{_libdir}/liburfkill-qt.so
%{_libdir}/pkgconfig/urfkill-qt.pc
%changelog