libupower09-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Summary: Libraries for Power Management Service
  2. Summary(ja): 電源管理サービス用ライブラリ
  3. Name: libupower09
  4. Version: 0.9.23
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: System Environment/Libraries
  8. URL: http://upower.freedesktop.org/
  9. Source0: http://upower.freedesktop.org/releases/upower-%{version}.tar.xz
  10. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  11. BuildRequires: sqlite3-devel
  12. BuildRequires: libtool
  13. BuildRequires: intltool
  14. BuildRequires: gettext
  15. BuildRequires: libgudev1-devel
  16. BuildRequires: libusb1-devel
  17. BuildRequires: glib2-devel >= 2.6.0
  18. BuildRequires: dbus-devel >= 1.2
  19. BuildRequires: dbus-glib-devel >= 0.82
  20. BuildRequires: polkit-devel >= 0.92
  21. BuildRequires: gobject-introspection-devel
  22. BuildRequires: libimobiledevice-devel
  23. BuildRequires: gtk-doc
  24. BuildRequires: vim-tiny
  25. BuildRequires: autoconf
  26. Requires: polkit >= 0.92
  27. Requires: udev
  28. Requires: pm-utils >= 1.4.1
  29. Requires: gobject-introspection
  30. # Old project name
  31. Obsoletes: DeviceKit-power < 1:0.9.0-2
  32. Provides: DeviceKit-power
  33. Vendor: Project Vine
  34. Distribution: Vine Linux
  35. Packager: daisuke, Takemikaduchi
  36. %description
  37. %{summary}
  38. %package devel
  39. Summary: Headers and libraries for %{name}
  40. Summary(ja): %{name} の開発ファイル
  41. Group: Development/Libraries
  42. Requires: %{name} = %{version}-%{release}
  43. Requires: gtk-doc
  44. Obsoletes: DeviceKit-power-devel < 1:0.9.0-2
  45. Provides: DeviceKit-power-devel
  46. Conflicts: upower-devel >= 0.99.0
  47. %description devel
  48. Headers and libraries for %{name}.
  49. %prep
  50. %setup -q -n upower-%{version}
  51. %build
  52. %configure \
  53. --enable-gtk-doc \
  54. --disable-static \
  55. --disable-systemd \
  56. --enable-introspection=yes
  57. make V=1 %{?_smp_mflags}
  58. %install
  59. rm -rf $RPM_BUILD_ROOT
  60. make install DESTDIR=$RPM_BUILD_ROOT
  61. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  62. rm -f $RPM_BUILD_ROOT%{_libdir}/girepository-1.0/*.typelib
  63. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/*.conf
  64. rm -f $RPM_BUILD_ROOT%{_sysconfdir}/UPower/UPower.conf
  65. rm -f $RPM_BUILD_ROOT/lib/udev/rules.d/*.rules
  66. rm -f $RPM_BUILD_ROOT%{_bindir}/*
  67. rm -f $RPM_BUILD_ROOT%{_libexecdir}/*
  68. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*
  69. rm -f $RPM_BUILD_ROOT%{_mandir}/man7/*
  70. rm -f $RPM_BUILD_ROOT%{_mandir}/man8/*
  71. rm -f $RPM_BUILD_ROOT%{_datadir}/dbus-1/system-services/*.service
  72. rm -f $RPM_BUILD_ROOT%{_datadir}/dbus-1/interfaces/*.xml
  73. rm -f $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/*
  74. rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
  75. rm -f $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/UPower/*
  76. rm -f $RPM_BUILD_ROOT%{_datadir}/gir-1.0/*.gir
  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. %doc NEWS COPYING AUTHORS HACKING README
  84. %{_libdir}/libupower-glib.so.*
  85. %files devel
  86. %defattr(-,root,root,-)
  87. %{_libdir}/libupower-glib.so
  88. %{_libdir}/pkgconfig/*.pc
  89. %dir %{_includedir}/libupower-glib
  90. %{_includedir}/libupower-glib/up-*.h
  91. %{_includedir}/libupower-glib/upower.h
  92. %changelog
  93. * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.23-1
  94. - initial build