source: projects/specs/trunk/lib/libg/libgusb/libgusb-vl.spec @ 9791

Revision 9791, 4.5 KB checked in by Takemikaduchi, 8 years ago (diff)

GNOME 3.18.1, BlueZ 5.35, ICU 56.1, Mesa 11.0.4, PulseAudio 7.1, xserver 1.17.4, etc.

RevLine 
[9150]1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
[6890]3Name:           libgusb
[9791]4Version:        0.2.7
[9150]5Release:        1%{?_dist_release}
[6890]6Summary:        GObject wrapper for libusb1
7Summary(ja):    libusb1 用 GObject ラッパー
8
9Group:          System Environment/Libraries
10License:        LGPLv2+
11URL:            https://gitorious.org/gusb/
12Source0:        http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
[9150]13
[6890]14BuildRoot:      %{_tmppath}/%{name}-%{version}-root
[9150]15BuildRequires:  glib2-devel >= 2.32.0
[7633]16BuildRequires:  gobject-introspection-devel
[9150]17BuildRequires:  libusb1-devel >= 1.0.19
[6890]18
19Vendor:         Project Vine
20Distribution:   Vine Linux
21Packager:       Takemikaduchi
22
23
24%description
25GUsb is a GObject wrapper for libusb1 that makes it easy to do
26asynchronous control, bulk and interrupt transfers with proper
27cancellation and integration into a mainloop.
28This makes it easy to integrate low level USB transfers with your
29high-level application or system daemon.
30
31Not everything you can do in libusb1 is wrapped, although we'll accept
32feature requests (with patches) if it makes sense. There is some pretty
33low hanging fruit if you're interested.
34
35
36%package        devel
37Summary:        Development files for %{name}
38Summary(ja):    %{name} の開発ファイル
39Group:          Development/Libraries
40Requires:       %{name} = %{version}-%{release}
41Requires:       glib2-devel
42
43%description    devel
44The %{name}-devel package contains libraries and header files for
45developing applications that use %{name}.
46
47
48%package        doc
49Summary:        Documentation for %{name}
50Summary(ja):    %{name} 用のドキュメント
51Group:          Documentation
52Requires:       %{name} = %{version}-%{release}
53BuildArch:      noarch
54
55%description    doc
56This package contains documentation for %{name}.
57
58
[9150]59# compat32
60%package -n compat32-%{name}
61Summary: GObject wrapper for libusb1
62Summary(ja): libusb1 用 GObject ラッパー
63Group: System Environment/Libraries
64Requires: %{name} = %{version}-%{release}
65
66%description -n compat32-%{name}
67GUsb is a GObject wrapper for libusb1 that makes it easy to do
68asynchronous control, bulk and interrupt transfers with proper
69cancellation and integration into a mainloop.
70This makes it easy to integrate low level USB transfers with your
71high-level application or system daemon.
72
73Not everything you can do in libusb1 is wrapped, although we'll accept
74feature requests (with patches) if it makes sense. There is some pretty
75low hanging fruit if you're interested.
76
77%package -n compat32-%{name}-devel
78Summary: Development files for %{name}
79Summary(ja): %{name} の開発ファイル
80Group: Development/Libraries
81Requires: %{name}-devel = %{version}-%{release}
82Requires: compat32-%{name} = %{version}-%{release}
83Requires: compat32-glib2-devel
84Requires: compat32-libusb1-devel
85Requires: compat32-pkgconfig
86
87%description -n compat32-%{name}-devel
88The %{name}-devel package contains libraries and header files for
89developing applications that use %{name}.
90
91
[6890]92%prep
93%setup -q
94
95%build
[9150]96%configure --disable-static --disable-vala
[6890]97make %{?_smp_mflags}
98
99%check
100
101%install
102rm -rf $RPM_BUILD_ROOT
103make install DESTDIR=$RPM_BUILD_ROOT
104find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
105
106
107%clean
108rm -rf $RPM_BUILD_ROOT
109
110
111%post -p /sbin/ldconfig
112
113%postun -p /sbin/ldconfig
114
[9150]115%if %{build_compat32}
116%post -n compat32-%{name} -p /sbin/ldconfig
117%postun -n compat32-%{name} -p /sbin/ldconfig
118%endif
[6890]119
[9150]120
[6890]121%files
122%defattr(-,root,root,-)
123%doc AUTHORS ChangeLog COPYING MAINTAINERS NEWS README
124%{_libdir}/%{name}.so.*
[7633]125%{_libdir}/girepository-1.0/GUsb-1.0.typelib
[6890]126
127%files devel
128%defattr(-,root,root,-)
129%{_includedir}/gusb-1
130%{_libdir}/%{name}.so
131%{_libdir}/pkgconfig/gusb.pc
[7633]132%{_datadir}/gir-1.0/GUsb-1.0.gir
[6890]133
134%files doc
135%defattr(-,root,root,-)
136%{_datadir}/gtk-doc/html/gusb
137
[9150]138# compat32
139%if %{build_compat32}
140%files -n compat32-%{name}
141%defattr(-,root,root,-)
142%{_libdir}/%{name}.so.*
[6890]143
[9150]144%files -n compat32-%{name}-devel
145%defattr(-,root,root,-)
146%{_libdir}/%{name}.so
147%{_libdir}/pkgconfig/gusb.pc
148%endif
149
150
[6890]151%changelog
[9791]152* Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.7-1
153- new upstream release
154
[9150]155* Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.2.3-1
156- new upstream release
157- added compat32 subpackages
158
[8084]159* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.6-2
160- rebuild with VineSeed environment
161
[7633]162* Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.6-1
163- new upstream release
164- add BuildRequires: gobject-introspection-devel
165
[7294]166* Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.4-1
167- new upstream release
168
[6890]169* Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.3-1
170- initial build
Note: See TracBrowser for help on using the repository browser.