kqoauth/kqoauth.spec

83 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.98-1mamba
- package created using the webbuild interface