1 | %global githash 726325d |
---|
2 | %global gitdate 20100625 |
---|
3 | #global posttag .%{?gitdate}git%{?githash} |
---|
4 | |
---|
5 | %define qt4_ver 4.7.2 |
---|
6 | %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver}) |
---|
7 | %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_ver}) |
---|
8 | |
---|
9 | Name: qoauth |
---|
10 | Summary: Qt-based C++ library for OAuth authorization scheme |
---|
11 | Version: 1.0.1 |
---|
12 | Release: 3%{?_dist_release} |
---|
13 | |
---|
14 | Group: System Environment/Libraries |
---|
15 | License: LGPLv2+ |
---|
16 | URL: http://github.com/ayoy/qoauth |
---|
17 | |
---|
18 | Source0: http://files.ayoy.net/qoauth/release/%{version}/src/%{name}-%{version}-src.tar.bz2 |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
21 | BuildRequires: qt4-devel qca2-devel doxygen |
---|
22 | BuildRequires: qca-ossl |
---|
23 | Requires: qca-ossl |
---|
24 | |
---|
25 | %description |
---|
26 | QOAuth is a Qt-based C++ implementation of an interface to services using |
---|
27 | OAuth authorization scheme. |
---|
28 | |
---|
29 | %package devel |
---|
30 | Summary: Development files for the Qt OAuth support library |
---|
31 | Group: Development/Libraries |
---|
32 | Requires: %{name} = %{version}-%{release} |
---|
33 | Requires: qt4-devel = %{_qt4_version} |
---|
34 | Requires: qca2-devel |
---|
35 | |
---|
36 | %description devel |
---|
37 | The %{name}-devel package contains libraries, header files and documentations |
---|
38 | for developing applications that use QOAuth library. |
---|
39 | |
---|
40 | %prep |
---|
41 | %setup -q -n %{name}-%{version}-src |
---|
42 | sed -i -e '/^ *docs \\$/d' \ |
---|
43 | -e "s!\(\$\${INSTALL_PREFIX}\)/lib.*!%{_libdir}!" src/src.pro |
---|
44 | sed -i -e 's\/lib\/%{_lib}\g' src/pcfile.sh |
---|
45 | |
---|
46 | %build |
---|
47 | export PATH=%{_qt4_prefix}/bin:$PATH |
---|
48 | %{_qt4_prefix}/bin/qmake PREFIX="%{_prefix}" |
---|
49 | make %{?_smp_mflags} |
---|
50 | |
---|
51 | |
---|
52 | %install |
---|
53 | make install INSTALL="install -p" INSTALL_ROOT=%{buildroot} |
---|
54 | doxygen Doxyfile |
---|
55 | |
---|
56 | # fix the time stamp |
---|
57 | for file in doc/html/*; do |
---|
58 | touch -r Doxyfile $file |
---|
59 | done |
---|
60 | |
---|
61 | %check |
---|
62 | make check || : |
---|
63 | |
---|
64 | %clean |
---|
65 | rm -rf %{buildroot} |
---|
66 | |
---|
67 | %post -p /sbin/ldconfig |
---|
68 | |
---|
69 | %postun -p /sbin/ldconfig |
---|
70 | |
---|
71 | %files |
---|
72 | %defattr(-,root,root,-) |
---|
73 | %doc README CHANGELOG LICENSE |
---|
74 | %{_libdir}/*.so.* |
---|
75 | |
---|
76 | %files devel |
---|
77 | %defattr(-,root,root,-) |
---|
78 | %doc doc/html doc/examples |
---|
79 | %{_libdir}/*.so |
---|
80 | %{_libdir}/*.prl |
---|
81 | %{_libdir}/pkgconfig/*.pc |
---|
82 | %{_qt4_prefix}/mkspecs/features/*.prf |
---|
83 | %{_includedir}/* |
---|
84 | |
---|
85 | %changelog |
---|
86 | * Tue Mar 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-2 |
---|
87 | - rebuilt with qt4-4.7.2 |
---|
88 | |
---|
89 | * Thu Jan 13 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-2 |
---|
90 | - Initial build for Vine Linux |
---|
91 | |
---|
92 | * Sun Aug 08 2010 Chen Lei <supercyper@163.com> - 1.0.1-1 |
---|
93 | - Update to 1.0.1 |
---|
94 | |
---|
95 | * Fri Jun 25 2010 Chen Lei <supercyper@163.com> - 1.0.1-0.3.20100625git726325d |
---|
96 | - New upstream version |
---|
97 | |
---|
98 | * Tue Jun 22 2010 Chen Lei <supercyper@163.com> - 1.0.1-0.2.20100622git7f69e33 |
---|
99 | - New upstream version |
---|
100 | - Add %%check section |
---|
101 | |
---|
102 | * Tue May 25 2010 Chen Lei <supercyper@163.com> - 1.0.1-0.1.20100525gitec7e4d5 |
---|
103 | - initial rpm build |
---|