blob: f2a84932150c6417181e171046e09c5cb772e66f (
plain)
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
|
%define _optdir /opt
%define _appdir %{_optdir}/apps
Name: libscl-common
Summary: A library for developing software keyboards
Version: 0.0.1
Release: 1
Group: System Environment/Libraries
License: Apache License, Version 2.0
Source0: libscl-common-%{version}.tar.gz
BuildRequires: gettext-tools
BuildRequires: cmake
BuildRequires: pkgconfig(elementary)
%description
A library that helps developing S/W Keyboard
%package devel
Summary: SCL-Common header file
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
A devel pacakge of libscl-common library that helps developing S/W Keyboard
%prep
%setup -q
%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/license
cp LICENSE %{buildroot}/usr/share/license/%{name}
%make_install
%post
%postun
%files
%defattr(-,root,root,-)
%{_libdir}/libscl-common.so
/usr/share/license/%{name}
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/pkgconfig/libscl-common.pc
|