1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: UDev GObject bindings |
---|
4 | Summary(ja): UDev の GObject バインディング |
---|
5 | Name: libgudev |
---|
6 | Version: 233 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | Vendor: Project Vine |
---|
9 | Distribution: Vine Linux |
---|
10 | |
---|
11 | License: LGPLv2.1 |
---|
12 | URL: https://gitlab.gnome.org/GNOME/libgudev |
---|
13 | Source0: https://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.xz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
16 | |
---|
17 | BuildRequires: eudev-libudev-devel |
---|
18 | BuildRequires: glib2-devel >= 2.22.0 |
---|
19 | BuildRequires: gobject-introspection-devel |
---|
20 | BuildRequires: gtk-doc |
---|
21 | |
---|
22 | Obsoletes: eudev-libgudev1 < 3.1.5 |
---|
23 | Provides: eudev-libgudev1 = 3.1.5 |
---|
24 | Obsoletes: libgudev1 < 230 |
---|
25 | Provides: libgudev1 = %{version}-%{release} |
---|
26 | |
---|
27 | %description |
---|
28 | This package contains the libraries for adding libudev support to applications |
---|
29 | that use glib. |
---|
30 | |
---|
31 | %description -l ja |
---|
32 | このパッケージには Glib を使用するアプリケーションに libudev サポートを |
---|
33 | 追加するためのライブラリが含まれております。 |
---|
34 | |
---|
35 | |
---|
36 | %package devel |
---|
37 | Summary: Development files for %{name} |
---|
38 | Summary(ja): %{name} の開発環境 |
---|
39 | Group: Development/Libraries |
---|
40 | Requires: %{name} = %{version}-%{release} |
---|
41 | Obsoletes: eudev-libgudev1-devel < 3.1.5 |
---|
42 | Provides: eudev-libgudev1-devel = 3.1.5 |
---|
43 | Obsoletes: libgudev1-devel < 230 |
---|
44 | Provides: libgudev1-devel = %{version}-%{release} |
---|
45 | |
---|
46 | %description devel |
---|
47 | The %{name}-devel package contains libraries and header files |
---|
48 | for developing applications that use %{name}. |
---|
49 | |
---|
50 | |
---|
51 | # compat32 |
---|
52 | %package -n compat32-%{name} |
---|
53 | Summary: UDev GObject bindings |
---|
54 | Summary(ja): UDev の GObject バインディング |
---|
55 | Group: System Environment/Libraries |
---|
56 | Requires: %{name} = %{version}-%{release} |
---|
57 | Obsoletes: compat32-eudev-libgudev1 < 3.1.5 |
---|
58 | Provides: compat32-eudev-libgudev1 = 3.1.5 |
---|
59 | Obsoletes: compat32-libgudev1 < 230 |
---|
60 | Provides: compat32-libgudev1 = %{version}-%{release} |
---|
61 | |
---|
62 | %description -n compat32-%{name} |
---|
63 | This package contains the libraries for adding libudev support to applications |
---|
64 | that use glib. |
---|
65 | |
---|
66 | %description -n compat32-%{name} -l ja |
---|
67 | このパッケージには Glib を使用するアプリケーションに libudev サポートを |
---|
68 | 追加するためのライブラリが含まれております。 |
---|
69 | |
---|
70 | |
---|
71 | %package -n compat32-%{name}-devel |
---|
72 | Summary: Development files for %{name} |
---|
73 | Summary(ja): %{name} の開発環境 |
---|
74 | Group: Development/Libraries |
---|
75 | Requires: compat32-%{name} = %{version}-%{release} |
---|
76 | Obsoletes: compat32-eudev-libgudev1-devel < 3.1.5 |
---|
77 | Provides: compat32-eudev-libgudev1-devel = 3.1.5 |
---|
78 | Obsoletes: compat32-libgudev1-devel < 230 |
---|
79 | Provides: compat32-libgudev1-devel = %{version}-%{release} |
---|
80 | |
---|
81 | %description -n compat32-%{name}-devel |
---|
82 | The %{name}-devel package contains libraries and header files |
---|
83 | for developing applications that use %{name}. |
---|
84 | |
---|
85 | |
---|
86 | %prep |
---|
87 | %setup -q |
---|
88 | |
---|
89 | |
---|
90 | %build |
---|
91 | %configure \ |
---|
92 | --disable-static \ |
---|
93 | --disable-umockdev |
---|
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 | %license COPYING |
---|
115 | %doc README NEWS |
---|
116 | %{_libdir}/libgudev-1.0.so.* |
---|
117 | %{_libdir}/girepository-1.0/GUdev-1.0.typelib |
---|
118 | |
---|
119 | %files devel |
---|
120 | %defattr(-,root,root,-) |
---|
121 | %{_libdir}/libgudev-1.0.so |
---|
122 | %{_includedir}/gudev-1.0/gudev/*.h |
---|
123 | %{_datadir}/gir-1.0/GUdev-1.0.gir |
---|
124 | %{_libdir}/pkgconfig/gudev-1.0* |
---|
125 | |
---|
126 | %if %{build_compat32} |
---|
127 | %files -n compat32-%{name} |
---|
128 | %defattr(-,root,root,-) |
---|
129 | %{_libdir}/libgudev-1.0.so.* |
---|
130 | |
---|
131 | %files -n compat32-%{name}-devel |
---|
132 | %defattr(-,root,root,-) |
---|
133 | %{_libdir}/libgudev-1.0.so |
---|
134 | %endif |
---|
135 | |
---|
136 | |
---|
137 | %changelog |
---|
138 | * Sun Aug 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 233-1 |
---|
139 | - new upstream release. |
---|
140 | |
---|
141 | * Sun Dec 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 232-1 |
---|
142 | - new upstream release. |
---|
143 | |
---|
144 | * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 230-1 |
---|
145 | - initial build |
---|
146 | |
---|