polkit-qt-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. Name: polkit-qt
  2. Summary: Qt bindings for PolicyKit
  3. Summary(ja): PolicyKit の Qt バインディング
  4. Version: 0.112.0
  5. Release: 2%{?_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. %description
  17. Polkit-qt is a library that lets developers use the PolicyKit API through a nice
  18. Qt-styled API. It is mainly a wrapper around QAction and QAbstractButton that
  19. lets you integrate those two component easily with PolicyKit.
  20. %package devel
  21. Summary: Development files for %{name}
  22. Summary(ja): %{name} の開発用ファイル
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. Requires: polkit-devel
  26. Requires: pkgconfig
  27. %description devel
  28. %{summary}.
  29. #package examples
  30. #Summary: Example files for %{name}
  31. #Group: Development/Libraries
  32. #Requires: %{name} = %{version}-%{release}
  33. #description examples
  34. #%{summary}.
  35. %prep
  36. %setup -q -n polkit-qt-1-%{version}
  37. %build
  38. %ifarch x86_64
  39. PATH="$PATH:`/usr/bin/pkg-config --variable=bindir Qt`"
  40. %endif
  41. mkdir -p %{_target_platform}
  42. pushd %{_target_platform}
  43. %cmake \
  44. -DCMAKE_BUILD_TYPE=release \
  45. -DBUILD_EXAMPLES=0 ..
  46. popd
  47. make %{?_smp_mflags} -C %{_target_platform}
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %post -p /sbin/ldconfig
  54. %postun -p /sbin/ldconfig
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc AUTHORS COPYING README
  58. %{_libdir}/libpolkit-qt*.so.*
  59. %files devel
  60. %defattr(-,root,root,-)
  61. %{_includedir}/polkit-qt-1/
  62. %{_libdir}/libpolkit-qt*.so
  63. %{_libdir}/pkgconfig/polkit-qt*.pc
  64. %{_libdir}/cmake/*
  65. #%files examples
  66. #%defattr(-,root,root,-)
  67. #%{_sysconfdir}/dbus-1/system.d/org.qt.policykit.examples.conf
  68. #%{_bindir}/polkit-example-helper
  69. #%{_datadir}/PolicyKit/policy/org.qt.policykit.examples.policy
  70. #%{_datadir}/dbus-1/system-services/org.qt.policykit.examples.service
  71. %changelog
  72. * Mon Jul 04 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.112.0-2
  73. - rebuild with gcc-5.4.0
  74. * Sun Nov 16 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.112.0-1
  75. - update to 0.112.0
  76. * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.103.0-1
  77. - update to 0.103.0
  78. * Mon Jan 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.99.0-1
  79. - new upstream release
  80. * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 0.96.1-2
  81. - rebuilt with rpm-4.8.1 for pkg-config
  82. * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.96.1-1
  83. - new upstream release
  84. * Thu Feb 11 2010 Shu KONNO <owa@bg.wakwak.com> - 0.95.1-2
  85. - added qmake path to PATH (if x86_64)
  86. * Thu Feb 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.95.1-1
  87. - new upstream release
  88. - added BR: polkit-devel instead of PolicyKit-devel
  89. * Tue Sep 01 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 0.9.2-4
  90. - use %%cmake macro
  91. * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.2-3
  92. - Initial build for Vine Linux
  93. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  95. * Wed Apr 22 2009 Rex Dieter <rdieter@fedoraproject.org> 0.9.2-1
  96. - polkit-0.9.2