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