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.

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Name:           libgusb
4Version:        0.2.7
5Release:        1%{?_dist_release}
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
13
14BuildRoot:      %{_tmppath}/%{name}-%{version}-root
15BuildRequires:  glib2-devel >= 2.32.0
16BuildRequires:  gobject-introspection-devel
17BuildRequires:  libusb1-devel >= 1.0.19
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
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
92%prep
93%setup -q
94
95%build
96%configure --disable-static --disable-vala
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
115%if %{build_compat32}
116%post -n compat32-%{name} -p /sbin/ldconfig
117%postun -n compat32-%{name} -p /sbin/ldconfig
118%endif
119
120
121%files
122%defattr(-,root,root,-)
123%doc AUTHORS ChangeLog COPYING MAINTAINERS NEWS README
124%{_libdir}/%{name}.so.*
125%{_libdir}/girepository-1.0/GUsb-1.0.typelib
126
127%files devel
128%defattr(-,root,root,-)
129%{_includedir}/gusb-1
130%{_libdir}/%{name}.so
131%{_libdir}/pkgconfig/gusb.pc
132%{_datadir}/gir-1.0/GUsb-1.0.gir
133
134%files doc
135%defattr(-,root,root,-)
136%{_datadir}/gtk-doc/html/gusb
137
138# compat32
139%if %{build_compat32}
140%files -n compat32-%{name}
141%defattr(-,root,root,-)
142%{_libdir}/%{name}.so.*
143
144%files -n compat32-%{name}-devel
145%defattr(-,root,root,-)
146%{_libdir}/%{name}.so
147%{_libdir}/pkgconfig/gusb.pc
148%endif
149
150
151%changelog
152* Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.7-1
153- new upstream release
154
155* Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.2.3-1
156- new upstream release
157- added compat32 subpackages
158
159* Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.6-2
160- rebuild with VineSeed environment
161
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
166* Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.4-1
167- new upstream release
168
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.