source: projects/specs/trunk/lib/libg/libgudev/libgudev-vl.spec @ 12005

Revision 12005, 4.0 KB checked in by tomop, 5 years ago (diff)

Merge branch 'tomop'

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