libgudev-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libgudev
  3. Version: 230
  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. Packager: Takemikaduchi
  23. %description
  24. This package contains the libraries for adding libudev support to applications
  25. that use glib.
  26. %description -l ja
  27. このパッケージには Glib を使用するアプリケーションに libudev サポートを
  28. 追加するためのライブラリが含まれております。
  29. %package devel
  30. Summary: Development files for %{name}
  31. Summary(ja): %{name} の開発環境
  32. Group: Development/Libraries
  33. Requires: %{name} = %{version}-%{release}
  34. Obsoletes: eudev-libgudev1-devel < 3.1.5
  35. Provides: eudev-libgudev1-devel = 3.1.5
  36. Obsoletes: libgudev1-devel < 230
  37. Provides: libgudev1-devel = %{version}-%{release}
  38. %description devel
  39. The %{name}-devel package contains libraries and header files
  40. for developing applications that use %{name}.
  41. # compat32
  42. %package -n compat32-%{name}
  43. Summary: UDev GObject bindings
  44. Summary(ja): UDev の GObject バインディング
  45. Group: System Environment/Libraries
  46. Requires: %{name} = %{version}-%{release}
  47. Obsoletes: compat32-eudev-libgudev1 < 3.1.5
  48. Provides: compat32-eudev-libgudev1 = 3.1.5
  49. Obsoletes: compat32-libgudev1 < 230
  50. Provides: compat32-libgudev1 = %{version}-%{release}
  51. %description -n compat32-%{name}
  52. This package contains the libraries for adding libudev support to applications
  53. that use glib.
  54. %description -n compat32-%{name} -l ja
  55. このパッケージには Glib を使用するアプリケーションに libudev サポートを
  56. 追加するためのライブラリが含まれております。
  57. %package -n compat32-%{name}-devel
  58. Summary: Development files for %{name}
  59. Summary(ja): %{name} の開発環境
  60. Group: Development/Libraries
  61. Requires: compat32-%{name} = %{version}-%{release}
  62. Obsoletes: compat32-eudev-libgudev1-devel < 3.1.5
  63. Provides: compat32-eudev-libgudev1-devel = 3.1.5
  64. Obsoletes: compat32-libgudev1-devel < 230
  65. Provides: compat32-libgudev1-devel = %{version}-%{release}
  66. %description -n compat32-%{name}-devel
  67. The %{name}-devel package contains libraries and header files
  68. for developing applications that use %{name}.
  69. %prep
  70. %setup -q
  71. %build
  72. %configure \
  73. --disable-static
  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. %doc COPYING README NEWS
  87. %{_libdir}/libgudev-1.0.so.*
  88. %{_libdir}/girepository-1.0/GUdev-1.0.typelib
  89. %files devel
  90. %defattr(-,root,root,-)
  91. %{_libdir}/libgudev-1.0.so
  92. %{_includedir}/gudev-1.0/gudev/*.h
  93. %{_datadir}/gir-1.0/GUdev-1.0.gir
  94. %{_libdir}/pkgconfig/gudev-1.0*
  95. %if %{build_compat32}
  96. %files -n compat32-%{name}
  97. %defattr(-,root,root,-)
  98. %{_libdir}/libgudev-1.0.so.*
  99. %files -n compat32-%{name}-devel
  100. %defattr(-,root,root,-)
  101. %{_libdir}/libgudev-1.0.so
  102. %endif
  103. %changelog
  104. * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 230-1
  105. - initial build