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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
Name: libfeedback
Summary: Feedback library
Version: 0.1.3
Release: 0
Group: System/Libraries
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
Source1: libsvi.manifest
source2: libfeedback.manifest
source3: svi-data.manifest
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(mm-keysound)
BuildRequires: pkgconfig(haptic)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(libtzplatform-config)
%description
Feedback library for playing sound, vibration and led
%package -n libfeedback-devel
Summary: Feedback library for (devel)
Group: Development/Libraries
Requires: libfeedback = %{version}-%{release}
%description -n libfeedback-devel
Feedback library for playing sound, vibration and led (devel)
%package -n libsvi
Summary: SVI library
Group: Development/Libraries
Requires: libfeedback = %{version}-%{release}
%description -n libsvi
SVI library
%package -n libsvi-devel
Summary: SVI library for (devel)
Group: Development/Libraries
Requires: libsvi = %{version}-%{release}
%description -n libsvi-devel
SVI library (devel)
%package -n svi-data
Summary: svi resource package
Group: Development/Libraries
%description -n svi-data
svi resource package
%prep
%setup -q
%build
cp %{SOURCE1} .
cp %{SOURCE2} .
cp %{SOURCE3} .
%cmake .
make
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}%{_datadir}/license
cp LICENSE.APLv2 %{buildroot}%{_datadir}/license/%{name}
%post -p /sbin/ldconfig
%post -n libsvi -p /sbin/ldconfig
%postun -n libsvi -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun -n svi-data
rm -rf %{_datadir}/feedback/
rm -rf /opt/usr/share/feedback/
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/libfeedback.so.*
%{_datadir}/license/%{name}
%files -n libfeedback-devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_includedir}/feedback/*.h
%{_libdir}/libfeedback.so
%{_libdir}/pkgconfig/feedback.pc
%files -n libsvi
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/libsvi.so.*
%files -n libsvi-devel
%manifest %{name}.manifest
%defattr(-,root,root-)
%{_includedir}/svi/*.h
%{_libdir}/libsvi.so
%{_libdir}/pkgconfig/svi.pc
%files -n svi-data
%manifest %{name}.manifest
%defattr(644,root,root,-)
%{_datadir}/feedback/*
|