%define debug_package %{nil} Summary: Qt-based C++ library for OAuth authorization scheme Name: qoauth Group: Graphical desktop/KDE Version: 2.0.1 Release: 2.2 License: LGPLv3+ Url: http://github.com/ayoy/qoauth Source0: http://files.ayoy.net/qoauth/release/%{version}/src/%{name}-%{version}-src.tar.gz Patch1: qoauth-2.0.1-Qt5-port.patch %ifarch aarch64 Patch2: aarch64.patch %endif BuildRequires: doxygen BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(qca2-qt5) BuildRequires: qmake5 %description QOAuth is an attempt to support interaction with OAuth-powered network services in a Qt way, i.e. simply, clearly and efficiently. It gives the application developer no more than 4 methods, namely: * requestToken() to obtain an unauthorized Request Token, * accessToken() to exchange Request Token for the Access Token, * createParametersString() to construct a request according to OAuth authorization scheme, * inlineParemeters() - to construct a query string basing on given parameters (provided only for convenience). #----------------------------------------------------------------------------- %define major 2 %define libqoauth %mklibname qoauth 5 %{major} %package -n %{libqoauth} Summary: %{name} core library Group: System/Libraries Requires: %{_lib}qca2-plugin-openssl %description -n %{libqoauth} %{name} core library. %files -n %{libqoauth} %{_libdir}/libqoauth5.so.%{major}* #----------------------------------------------------------------------------- %define devname %mklibname -d qoauth %package -n %{devname} Summary: Devel stuff for %{name} Group: Development/KDE and Qt Requires: %{libqoauth} = %{version}-%{release} %rename %{name}-devel %description -n %{devname} This package contains header files needed if you wish to build applications based on %{name} . %files -n %{devname} %doc doc/html doc/examples %{_includedir}/qt5/QtOAuth %{_libdir}/libqoauth5.prl %{_libdir}/libqoauth5.so %{_libdir}/pkgconfig/qoauth-qt5.pc %{_libdir}/qt5/mkspecs/features/oauth.prf #----------------------------------------------------------------------------- %prep %setup -qn %{name}-%{version}-src %autopatch -p1 sed -i -e 's\/lib\/%{_lib}\g' src/pcfile.sh %build %qmake_qt5 %make %install make install INSTALL="install -p" INSTALL_ROOT=%{buildroot} doxygen Doxyfile # fix the time stamp for file in doc/html/*; do touch -r Doxyfile $file done %check export LD_LIBRARY_PATH=/usr/%{_lib}/qt5/:$LD_LIBRARY_PATH make check || :