polkit-qt-vl.spec 2.9 KB

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