[521] | 1 | Name: polkit-qt |
---|
| 2 | Summary: Qt bindings for PolicyKit |
---|
| 3 | Summary(ja): PolicyKit の Qt バインディング |
---|
[9105] | 4 | Version: 0.112.0 |
---|
[12299] | 5 | Release: 3%{?_dist_release} |
---|
[521] | 6 | |
---|
| 7 | Group: System Environment/Libraries |
---|
| 8 | License: GPLv2+ |
---|
| 9 | URL: http://api.kde.org/kdesupport-api/kdesupport-apidocs/polkit-qt/html/ |
---|
[1594] | 10 | |
---|
[521] | 11 | Source0: ftp://ftp.kde.org/pub/kde/stable/polkit-qt-1/polkit-qt-1-%{version}.tar.bz2 |
---|
[1594] | 12 | |
---|
[521] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | BuildRequires: automoc4 |
---|
| 15 | BuildRequires: cmake |
---|
[2774] | 16 | BuildRequires: glib2-devel |
---|
| 17 | BuildRequires: polkit-devel |
---|
[521] | 18 | BuildRequires: qt4-devel |
---|
[12299] | 19 | BuildRequires: qt5-qtbase-devel |
---|
[521] | 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} |
---|
[2774] | 28 | Summary(ja): %{name} の開発用ファイル |
---|
[521] | 29 | Group: Development/Libraries |
---|
| 30 | Requires: %{name} = %{version}-%{release} |
---|
[1594] | 31 | Requires: polkit-devel |
---|
[521] | 32 | Requires: pkgconfig |
---|
| 33 | |
---|
| 34 | %description devel |
---|
| 35 | %{summary}. |
---|
| 36 | |
---|
[12299] | 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 | |
---|
[521] | 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 |
---|
[12299] | 75 | mkdir -p build_qt4 |
---|
| 76 | pushd build_qt4 |
---|
[521] | 77 | %cmake \ |
---|
[12299] | 78 | -DUSE_QT4=ON \ |
---|
[521] | 79 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 80 | -DBUILD_EXAMPLES=0 .. |
---|
[12299] | 81 | |
---|
| 82 | make %{?_smp_mflags} |
---|
[521] | 83 | popd |
---|
| 84 | |
---|
[12299] | 85 | mkdir -p build_qt5 |
---|
| 86 | pushd build_qt5 |
---|
| 87 | %cmake \ |
---|
| 88 | -DUSE_QT5=ON \ |
---|
| 89 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 90 | -DBUILD_EXAMPLES=0 .. |
---|
[521] | 91 | |
---|
[12299] | 92 | make %{?_smp_mflags} |
---|
| 93 | popd |
---|
| 94 | |
---|
| 95 | |
---|
[521] | 96 | %install |
---|
[1594] | 97 | rm -rf $RPM_BUILD_ROOT |
---|
[12299] | 98 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C build_qt4 |
---|
| 99 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C build_qt5 |
---|
[521] | 100 | |
---|
| 101 | %clean |
---|
[1594] | 102 | rm -rf $RPM_BUILD_ROOT |
---|
[521] | 103 | |
---|
| 104 | %post -p /sbin/ldconfig |
---|
| 105 | |
---|
| 106 | %postun -p /sbin/ldconfig |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | %files |
---|
| 110 | %defattr(-,root,root,-) |
---|
[12299] | 111 | %license COPYING |
---|
| 112 | %doc AUTHORS README |
---|
| 113 | %{_libdir}/libpolkit-qt-*.so.* |
---|
[521] | 114 | |
---|
[12299] | 115 | %files -n polkit-qt5 |
---|
| 116 | %defattr(-,root,root,-) |
---|
| 117 | %license COPYING |
---|
| 118 | %doc AUTHORS README |
---|
| 119 | %{_libdir}/libpolkit-qt5-*.so.* |
---|
| 120 | |
---|
[521] | 121 | %files devel |
---|
| 122 | %defattr(-,root,root,-) |
---|
| 123 | %{_includedir}/polkit-qt-1/ |
---|
[12299] | 124 | %{_libdir}/libpolkit-qt-*.so |
---|
| 125 | %{_libdir}/pkgconfig/polkit-qt-*.pc |
---|
| 126 | %{_libdir}/cmake/PolkitQt-1 |
---|
[521] | 127 | |
---|
[12299] | 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 | |
---|
[521] | 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 |
---|
[12299] | 144 | * Sun Oct 27 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.112-0-3 |
---|
| 145 | - enabled Qt5. |
---|
| 146 | |
---|
[10547] | 147 | * Mon Jul 04 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.112.0-2 |
---|
| 148 | - rebuild with gcc-5.4.0 |
---|
| 149 | |
---|
[9105] | 150 | * Sun Nov 16 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.112.0-1 |
---|
| 151 | - update to 0.112.0 |
---|
| 152 | |
---|
[7728] | 153 | * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.103.0-1 |
---|
| 154 | - update to 0.103.0 |
---|
| 155 | |
---|
[2774] | 156 | * Mon Jan 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.99.0-1 |
---|
| 157 | - new upstream release |
---|
| 158 | |
---|
[1935] | 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 | |
---|
[1594] | 162 | * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.96.1-1 |
---|
| 163 | - new upstream release |
---|
| 164 | |
---|
[521] | 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 | |
---|