libgudev-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libgudev
  3. Version: 232
  4. Release: 1%{?_dist_release}
  5. Summary: UDev GObject bindings
  6. Summary(ja): UDev の GObject バインディング
  7. Group: System Environment/Libraries
  8. License: LGPLv2.1
  9. URL: http://git.gnome.org/browse/libgudev
  10. Source0: http://download.gnome.org/sources/%{name}/230/%{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: eudev-libudev-devel
  13. BuildRequires: glib2-devel >= 2.22.0
  14. BuildRequires: gobject-introspection-devel
  15. BuildRequires: gtk-doc
  16. Obsoletes: eudev-libgudev1 < 3.1.5
  17. Provides: eudev-libgudev1 = 3.1.5
  18. Obsoletes: libgudev1 < 230
  19. Provides: libgudev1 = %{version}-%{release}
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. This package contains the libraries for adding libudev support to applications
  24. that use glib.
  25. %description -l ja
  26. このパッケージには Glib を使用するアプリケーションに libudev サポートを
  27. 追加するためのライブラリが含まれております。
  28. %package devel
  29. Summary: Development files for %{name}
  30. Summary(ja): %{name} の開発環境
  31. Group: Development/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. Obsoletes: eudev-libgudev1-devel < 3.1.5
  34. Provides: eudev-libgudev1-devel = 3.1.5
  35. Obsoletes: libgudev1-devel < 230
  36. Provides: libgudev1-devel = %{version}-%{release}
  37. %description devel
  38. The %{name}-devel package contains libraries and header files
  39. for developing applications that use %{name}.
  40. # compat32
  41. %package -n compat32-%{name}
  42. Summary: UDev GObject bindings
  43. Summary(ja): UDev の GObject バインディング
  44. Group: System Environment/Libraries
  45. Requires: %{name} = %{version}-%{release}
  46. Obsoletes: compat32-eudev-libgudev1 < 3.1.5
  47. Provides: compat32-eudev-libgudev1 = 3.1.5
  48. Obsoletes: compat32-libgudev1 < 230
  49. Provides: compat32-libgudev1 = %{version}-%{release}
  50. %description -n compat32-%{name}
  51. This package contains the libraries for adding libudev support to applications
  52. that use glib.
  53. %description -n compat32-%{name} -l ja
  54. このパッケージには Glib を使用するアプリケーションに libudev サポートを
  55. 追加するためのライブラリが含まれております。
  56. %package -n compat32-%{name}-devel
  57. Summary: Development files for %{name}
  58. Summary(ja): %{name} の開発環境
  59. Group: Development/Libraries
  60. Requires: compat32-%{name} = %{version}-%{release}
  61. Obsoletes: compat32-eudev-libgudev1-devel < 3.1.5
  62. Provides: compat32-eudev-libgudev1-devel = 3.1.5
  63. Obsoletes: compat32-libgudev1-devel < 230
  64. Provides: compat32-libgudev1-devel = %{version}-%{release}
  65. %description -n compat32-%{name}-devel
  66. The %{name}-devel package contains libraries and header files
  67. for developing applications that use %{name}.
  68. %prep
  69. %setup -q
  70. %build
  71. %configure \
  72. --disable-static \
  73. --disable-umockdev
  74. make %{?_smp_mflags}
  75. %install
  76. make install DESTDIR=$RPM_BUILD_ROOT
  77. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  78. %post -p /sbin/ldconfig
  79. %postun -p /sbin/ldconfig
  80. %if %{build_compat32}
  81. %post -n compat32-%{name} -p /sbin/ldconfig
  82. %postun -n compat32-%{name} -p /sbin/ldconfig
  83. %endif
  84. %files
  85. %defattr(-,root,root,-)
  86. %license COPYING
  87. %doc README NEWS
  88. %{_libdir}/libgudev-1.0.so.*
  89. %{_libdir}/girepository-1.0/GUdev-1.0.typelib
  90. %files devel
  91. %defattr(-,root,root,-)
  92. %{_libdir}/libgudev-1.0.so
  93. %{_includedir}/gudev-1.0/gudev/*.h
  94. %{_datadir}/gir-1.0/GUdev-1.0.gir
  95. %{_libdir}/pkgconfig/gudev-1.0*
  96. %if %{build_compat32}
  97. %files -n compat32-%{name}
  98. %defattr(-,root,root,-)
  99. %{_libdir}/libgudev-1.0.so.*
  100. %files -n compat32-%{name}-devel
  101. %defattr(-,root,root,-)
  102. %{_libdir}/libgudev-1.0.so
  103. %endif
  104. %changelog
  105. * Sun Dec 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 232-1
  106. - new upstream release.
  107. * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 230-1
  108. - initial build