From aac6cb47673b8d58af8cd1b010e06170d6f26832 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 02:42:35 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.98-1mamba;Wed Mar 09 2016] --- README.md | 2 ++ kqoauth.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 kqoauth.spec diff --git a/README.md b/README.md index eb0104e..0c10493 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # kqoauth +kQOAuth is a library written in C++ for Qt that implements the OAuth 1.0 authentication specification RFC 5849. + diff --git a/kqoauth.spec b/kqoauth.spec new file mode 100644 index 0000000..abaa649 --- /dev/null +++ b/kqoauth.spec @@ -0,0 +1,82 @@ +Name: kqoauth +Version: 0.98 +Release: 1mamba +Summary: A library written in C++ for Qt that implements the OAuth 1.0 authentication specification RFC 5849 +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/kypeli/kQOAuth +## GITSOURCE https://github.com/kypeli/kQOAuth.git 0.98 +Source: https://github.com/kypeli/kQOAuth.git/%{version}/kQOAuth-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libGL-devel +BuildRequires: libgcc +BuildRequires: libqt4-devel +BuildRequires: libqt5-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +kQOAuth is a library written in C++ for Qt that implements the OAuth 1.0 authentication specification RFC 5849. + +%package -n lib%{name} +Group: System/Libraries +Summary: A library written in C++ for Qt that implements the OAuth 1.0 authentication specification RFC 5849 + +%description -n lib%{name} +kQOAuth is a library written in C++ for Qt that implements the OAuth 1.0 authentication specification RFC 5849. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q -n kQOAuth-%{version} +%ifarch x86_64 +sed -i "s|\(target.path = \).*|\1%{_libdir}|" src/src.pro +%endif + +%build +qmake-qt5 BACKEND_LIBDIR=%{_lib} +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall INSTALL_ROOT=%{buildroot} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libkqoauth.so.* +%doc COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/QtKOAuth +%{_includedir}/QtKOAuth/* +%{_libdir}/libkqoauth.prl +%{_libdir}/libkqoauth.so +%{_libdir}/qt5/mkspecs/features/kqoauth.prf +%{_libdir}/pkgconfig/kqoauth.pc +%doc README README.md + +%changelog +* Wed Mar 09 2016 Silvan Calarco 0.98-1mamba +- package created using the webbuild interface