]> git.pld-linux.org Git - SPECS.git/blob - mce-devel.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / mce-devel.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs # Doxygen documentation
4
5 Summary:        Maemo MCE (Mode Control Entity) definitions headers
6 Summary(pl.UTF-8):      Pliki nagłówkowe definicji MCE (Mode Control Entity) dla Maemo
7 Name:           mce-devel
8 Version:        1.8.21
9 Release:        1
10 License:        LGPL v2.1
11 Group:          Development/Libraries
12 #Source0Download: https://github.com/maemo-leste/mce-dev/releases
13 Source0:        https://github.com/maemo-leste/mce-dev/archive/%{version}/mce-dev_%{version}.tar.gz
14 # Source0-md5:  ac09bf4648adf038e3ebf05380434146
15 URL:            https://maemo.org/
16 %{?with_apidocs:BuildRequires:  doxygen}
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Maemo MCE (Mode Control Entity) definitions headers.
22
23 %description -l pl.UTF-8
24 Pliki nagłówkowe definicji MCE (Mode Control Entity) dla Maemo.
25
26 %package -n mce-apidocs
27 Summary:        Documentation for Maemo MCE (Mode Control Entity) definitions headers
28 Summary(pl.UTF-8):      Dokumentacja plików nagłówkowych definicji Maemo MCE (Mode Control Entity)
29 Group:          Documentation
30
31 %description -n mce-apidocs
32 Documentation for Maemo MCE (Mode Control Entity) definitions headers.
33
34 %description -n mce-apidocs -l pl.UTF-8
35 Dokumentacja plików nagłówkowych definicji Maemo MCE (Mode Control
36 Entity).
37
38 %prep
39 %setup -q -n mce-dev-%{version}
40
41 %build
42 # make mce.pc relies on dpkg utilities, do it manually
43 %{__sed} -e 's/@VERSION@/%{version}/' <mce.pc.in >mce.pc
44
45 %if %{with apidocs}
46 %{__make} doc
47 %endif
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT \
54         PKGCONFIG_DIR=$RPM_BUILD_ROOT%{_npkgconfigdir}
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %{_includedir}/mce
62 %{_npkgconfigdir}/mce.pc
63
64 %if %{with apidocs}
65 %files -n mce-apidocs
66 %defattr(644,root,root,755)
67 %doc doc/html/*.{css,html,js,png}
68 %endif
This page took 0.041555 seconds and 3 git commands to generate.