/
libusb-moded-qt5.spec
54 lines (41 loc) · 1.19 KB
/
libusb-moded-qt5.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Name: libusb-moded-qt5
Summary: A library of Qt5 bindings for usb_moded
Version: 1.6
Release: 1
Group: System/Libraries
License: BSD
URL: https://github.com/nemomobile/libusb-moded-qt5
Source0: %{name}-%{version}.tar.bz2
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: usb-moded >= 0.85.4
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(usb_moded)
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
%description
This package contains Qt bindings for usb_moded
%package devel
Summary: Development files for usb_moded Qt bindings
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the development header files for usb_moded Qt bindings.
%prep
%setup -q -n %{name}-%{version}
%build
%qtc_qmake5 "VERSION=%{version}"
%qtc_make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%qmake5_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/%{name}.so*
%files devel
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/usb-moded-qt5.pc
%{_includedir}/usb-moded-qt5/*.h