%global githash 726325d
%global gitdate 20100625
#global posttag .%{?gitdate}git%{?githash}
Name: qoauth
Version: 1.0.1
Release: 13%{?posttag}%{?dist}
Summary: Qt library OAuth authorization scheme
License: LGPLv2+
URL: http://github.com/ayoy/qoauth
Source0: http://files.ayoy.net/qoauth/release/%{version}/src/%{name}-%{version}-src.tar.bz2
%if 0%{?rhel}
# rhel7/ppc64 lacks some dependencies, including qca-ossl
ExcludeArch: ppc64
%endif
BuildRequires: doxygen
BuildRequires: pkgconfig(QtCore) pkgconfig(QtNetwork)
BuildRequires: pkgconfig(qca2)
BuildRequires: qca-ossl
Requires: qca-ossl%{?_isa}
%description
QOAuth is a Qt-based C++ implementation of an interface to services using
OAuth authorization scheme.
%package devel
Summary: Development files for the Qt OAuth support library
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries, header files and documentations
for developing applications that use QOAuth library.
%prep
%setup -q -n %{name}-%{version}-src
sed -i -e '/^ *docs \\$/d' \
-e "s!\(\$\${INSTALL_PREFIX}\)/lib.*!%{_libdir}!" src/src.pro
sed -i -e 's\/lib\/%{_lib}\g' src/pcfile.sh
%build
export PATH=%{_qt4_bindir}:$PATH
%{qmake_qt4} PREFIX="%{_prefix}"
make %{?_smp_mflags}
doxygen Doxyfile
# fix the time stamp
for file in doc/html/*; do
touch -r Doxyfile $file
done
%install
make install INSTALL="install -p" INSTALL_ROOT=%{buildroot}
%check
make check || :
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc README CHANGELOG LICENSE
%{_libdir}/libqoauth.so.1*
%files devel
%doc doc/html doc/examples
%{_libdir}/libqoauth.so
%{_libdir}/libqoauth.prl
%{_libdir}/pkgconfig/qoauth.pc
%{_qt4_prefix}/mkspecs/features/oauth.prf
%{_includedir}/QtOAuth/
%changelog
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.0.1-12
- Rebuilt for GCC 5 C++11 ABI change
* Mon Dec 01 2014 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-11
- rebuild(qca)
* Mon Dec 01 2014 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-10
- pkgconfig-style build deps, use %%qmake_qt4 macro, tighten %%files
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Mon Aug 04 2014 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-8
- .spec cleanup, epel7: ExcludeArch: ppc64
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sun Aug 08 2010 Chen Lei <supercyper@163.com> - 1.0.1-1
- Update to 1.0.1
* Fri Jun 25 2010 Chen Lei <supercyper@163.com> - 1.0.1-0.3.20100625git726325d
- New upstream version
* Tue Jun 22 2010 Chen Lei <supercyper@163.com> - 1.0.1-0.2.20100622git7f69e33
- New upstream version
- Add %%check section
* Tue May 25 2010 Chen Lei <supercyper@163.com> - 1.0.1-0.1.20100525gitec7e4d5
- initial rpm build