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