1 | Name: polkit-qt |
---|
2 | Summary: Qt bindings for PolicyKit |
---|
3 | Summary(ja): PolicyKit の Qt バインディング |
---|
4 | Version: 0.112.0 |
---|
5 | Release: 3%{?_dist_release} |
---|
6 | |
---|
7 | Group: System Environment/Libraries |
---|
8 | License: GPLv2+ |
---|
9 | URL: http://api.kde.org/kdesupport-api/kdesupport-apidocs/polkit-qt/html/ |
---|
10 | |
---|
11 | Source0: ftp://ftp.kde.org/pub/kde/stable/polkit-qt-1/polkit-qt-1-%{version}.tar.bz2 |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: automoc4 |
---|
15 | BuildRequires: cmake |
---|
16 | BuildRequires: glib2-devel |
---|
17 | BuildRequires: polkit-devel |
---|
18 | BuildRequires: qt4-devel |
---|
19 | BuildRequires: qt5-qtbase-devel |
---|
20 | |
---|
21 | %description |
---|
22 | Polkit-qt is a library that lets developers use the PolicyKit API through a nice |
---|
23 | Qt-styled API. It is mainly a wrapper around QAction and QAbstractButton that |
---|
24 | lets you integrate those two component easily with PolicyKit. |
---|
25 | |
---|
26 | %package devel |
---|
27 | Summary: Development files for %{name} |
---|
28 | Summary(ja): %{name} の開発用ファイル |
---|
29 | Group: Development/Libraries |
---|
30 | Requires: %{name} = %{version}-%{release} |
---|
31 | Requires: polkit-devel |
---|
32 | Requires: pkgconfig |
---|
33 | |
---|
34 | %description devel |
---|
35 | %{summary}. |
---|
36 | |
---|
37 | |
---|
38 | %package -n polkit-qt5 |
---|
39 | Summary: Qt5 bindings for PolicyKit |
---|
40 | Summary(ja): PolicyKit の Qt5 バインディング |
---|
41 | Group: System Environment/Libraries |
---|
42 | |
---|
43 | %description -n polkit-qt5 |
---|
44 | %{summary}. |
---|
45 | |
---|
46 | |
---|
47 | %package -n polkit-qt5-devel |
---|
48 | Summary: Development files for polkit-qt5 |
---|
49 | Summary(ja): polkit-qt5 の開発用ファイル |
---|
50 | Group: Development/Libraries |
---|
51 | Requires: polkit-qt5 = %{version}-%{release} |
---|
52 | Requires: polkit-devel |
---|
53 | Requires: pkgconfig |
---|
54 | |
---|
55 | %description -n polkit-qt5-devel |
---|
56 | %{summary}. |
---|
57 | |
---|
58 | |
---|
59 | #package examples |
---|
60 | #Summary: Example files for %{name} |
---|
61 | #Group: Development/Libraries |
---|
62 | #Requires: %{name} = %{version}-%{release} |
---|
63 | |
---|
64 | #description examples |
---|
65 | #%{summary}. |
---|
66 | |
---|
67 | |
---|
68 | %prep |
---|
69 | %setup -q -n polkit-qt-1-%{version} |
---|
70 | |
---|
71 | %build |
---|
72 | %ifarch x86_64 |
---|
73 | PATH="$PATH:`/usr/bin/pkg-config --variable=bindir Qt`" |
---|
74 | %endif |
---|
75 | mkdir -p build_qt4 |
---|
76 | pushd build_qt4 |
---|
77 | %cmake \ |
---|
78 | -DUSE_QT4=ON \ |
---|
79 | -DCMAKE_BUILD_TYPE=release \ |
---|
80 | -DBUILD_EXAMPLES=0 .. |
---|
81 | |
---|
82 | make %{?_smp_mflags} |
---|
83 | popd |
---|
84 | |
---|
85 | mkdir -p build_qt5 |
---|
86 | pushd build_qt5 |
---|
87 | %cmake \ |
---|
88 | -DUSE_QT5=ON \ |
---|
89 | -DCMAKE_BUILD_TYPE=release \ |
---|
90 | -DBUILD_EXAMPLES=0 .. |
---|
91 | |
---|
92 | make %{?_smp_mflags} |
---|
93 | popd |
---|
94 | |
---|
95 | |
---|
96 | %install |
---|
97 | rm -rf $RPM_BUILD_ROOT |
---|
98 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C build_qt4 |
---|
99 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C build_qt5 |
---|
100 | |
---|
101 | %clean |
---|
102 | rm -rf $RPM_BUILD_ROOT |
---|
103 | |
---|
104 | %post -p /sbin/ldconfig |
---|
105 | |
---|
106 | %postun -p /sbin/ldconfig |
---|
107 | |
---|
108 | |
---|
109 | %files |
---|
110 | %defattr(-,root,root,-) |
---|
111 | %license COPYING |
---|
112 | %doc AUTHORS README |
---|
113 | %{_libdir}/libpolkit-qt-*.so.* |
---|
114 | |
---|
115 | %files -n polkit-qt5 |
---|
116 | %defattr(-,root,root,-) |
---|
117 | %license COPYING |
---|
118 | %doc AUTHORS README |
---|
119 | %{_libdir}/libpolkit-qt5-*.so.* |
---|
120 | |
---|
121 | %files devel |
---|
122 | %defattr(-,root,root,-) |
---|
123 | %{_includedir}/polkit-qt-1/ |
---|
124 | %{_libdir}/libpolkit-qt-*.so |
---|
125 | %{_libdir}/pkgconfig/polkit-qt-*.pc |
---|
126 | %{_libdir}/cmake/PolkitQt-1 |
---|
127 | |
---|
128 | %files -n polkit-qt5-devel |
---|
129 | %defattr(-,root,root,-) |
---|
130 | %{_includedir}/polkit-qt5-1/ |
---|
131 | %{_libdir}/libpolkit-qt5-*.so |
---|
132 | %{_libdir}/pkgconfig/polkit-qt5-*.pc |
---|
133 | %{_libdir}/cmake/PolkitQt5-1 |
---|
134 | |
---|
135 | #%files examples |
---|
136 | #%defattr(-,root,root,-) |
---|
137 | #%{_sysconfdir}/dbus-1/system.d/org.qt.policykit.examples.conf |
---|
138 | #%{_bindir}/polkit-example-helper |
---|
139 | #%{_datadir}/PolicyKit/policy/org.qt.policykit.examples.policy |
---|
140 | #%{_datadir}/dbus-1/system-services/org.qt.policykit.examples.service |
---|
141 | |
---|
142 | |
---|
143 | %changelog |
---|
144 | * Sun Oct 27 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.112-0-3 |
---|
145 | - enabled Qt5. |
---|
146 | |
---|
147 | * Mon Jul 04 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.112.0-2 |
---|
148 | - rebuild with gcc-5.4.0 |
---|
149 | |
---|
150 | * Sun Nov 16 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.112.0-1 |
---|
151 | - update to 0.112.0 |
---|
152 | |
---|
153 | * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.103.0-1 |
---|
154 | - update to 0.103.0 |
---|
155 | |
---|
156 | * Mon Jan 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.99.0-1 |
---|
157 | - new upstream release |
---|
158 | |
---|
159 | * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 0.96.1-2 |
---|
160 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
161 | |
---|
162 | * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.96.1-1 |
---|
163 | - new upstream release |
---|
164 | |
---|
165 | * Thu Feb 11 2010 Shu KONNO <owa@bg.wakwak.com> - 0.95.1-2 |
---|
166 | - added qmake path to PATH (if x86_64) |
---|
167 | |
---|
168 | * Thu Feb 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.95.1-1 |
---|
169 | - new upstream release |
---|
170 | - added BR: polkit-devel instead of PolicyKit-devel |
---|
171 | |
---|
172 | * Tue Sep 01 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 0.9.2-4 |
---|
173 | - use %%cmake macro |
---|
174 | |
---|
175 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.2-3 |
---|
176 | - Initial build for Vine Linux |
---|
177 | |
---|
178 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2 |
---|
179 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
180 | |
---|
181 | * Wed Apr 22 2009 Rex Dieter <rdieter@fedoraproject.org> 0.9.2-1 |
---|
182 | - polkit-0.9.2 |
---|
183 | |
---|