Name: qauth Version: 0.1.1 Release: 2%{?dist} License: LGPLv2+ and GPLv2+ Summary: Qt user authentication library Url: https://github.com/MartinBriza/QAuth Source0: https://github.com/MartinBriza/QAuth/archive/%{version}.tar.gz BuildRequires: cmake BuildRequires: systemd-devel BuildRequires: pam-devel BuildRequires: qt4-devel BuildRequires: pkgconfig Requires: %{name}-helper = %{version}-%{release} Requires: xorg-x11-xinit %{?systemd_requires} %description QAuth is a Qt4/Qt5 user authentication library. Both the C++ and QML APIs are exposed. Currently, it supports the PAM and regular crypt authentication methods. %package devel Summary: Development files for QAuth Requires: %{name} = %{version}-%{release} %description devel This package contains the files necessary to develop applications using QAuth. %package helper Summary: Helper authentication binary for QAuth. Requires: %{name} = %{version}-%{release} %description helper This package contains a helper binary handling the authentication itself in QAuth. %prep %setup -q -n QAuth-%{version} %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %files %doc README.md LICENSE.GPL2 LICENSE.LGPL2 %{_libdir}/libqauth.so* %{_sysconfdir}/pam.d/qauth-autologin %{_sysconfdir}/pam.d/qauth-check %{_sysconfdir}/pam.d/qauth-login %files devel %{_includedir}/QAuth/* %{_libdir}/pkgconfig/qauth.pc %files helper %{_libexecdir}/qauthhelper %changelog * Tue May 13 2014 Martin Briza - 0.1.1-2 - Filled the gaps in the spec * Tue May 13 2014 Martin Briza - 0.1.1-1 - New upstream release * Mon Apr 28 2014 Martin Briza - 0.1.0-1 - Initial build