~phablet-team/mce-dev/ubuntu

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
Name:       mce-headers
Summary:    Development files for mce
Version:    1.16.1
Release:    1
Group:      Development/Libraries
License:    LGPLv2
URL:        https://github.com/nemomobile/mce-dev
Source0:    %{name}-%{version}.tar.bz2
BuildRequires:  doxygen

%description
This package contains headers defining the D-Bus method calls
provided by the Mode Control Entity, and the signals emitted by it.

%package -n mce-doc
Summary:    Documentation files for mce D-Bus API
Group:      Documentation
BuildArch:  noarch

%description -n mce-doc
This package contains documentation describing the D-Bus method calls
provided by the Mode Control Entity, and the signals emitted by it.

%prep
%setup -q -n %{name}-%{version}

%build
make %{?jobs:-j%jobs}
make doc

%install
rm -rf %{buildroot}
%make_install
install -d %{buildroot}/%{_docdir}/mce-doc/html/
install -m 644 doc/html/* %{buildroot}/%{_docdir}/mce-doc/html/

%files
%defattr(-,root,root,-)
%doc COPYING debian/copyright
%{_includedir}/mce/*.h
%{_libdir}/pkgconfig/mce.pc

%files -n mce-doc
%defattr(-,root,root,-)
%doc COPYING debian/changelog debian/copyright
%{_docdir}/mce-doc/html/*