polkit-qt-vl.spec 4.4 KB

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