]> git.pld-linux.org Git - packages/gtkmm4-documentation.git/blob - gtkmm4-documentation.spec
- updated to 4.0.2
[packages/gtkmm4-documentation.git] / gtkmm4-documentation.spec
1 %define         glibmm_ver      2.68.0
2 %define         gtkmm_ver       4.0.0
3 Summary:        Documentation and examples for gtkmm - C++ API for GTK+
4 Summary(pl.UTF-8):      Dokumentacja i przykłady do gtkmm - API C++ dla GTK+
5 Name:           gtkmm4-documentation
6 Version:        4.0.2
7 Release:        1
8 License:        FDL v1.2+ (documentation), GPL v2 (examples)
9 Group:          Documentation
10 Source0:        https://download.gnome.org/sources/gtkmm-documentation/4.0/gtkmm-documentation-%{version}.tar.xz
11 # Source0-md5:  88c2f091e34ca9fc56834f1bd03006da
12 URL:            https://www.gtkmm.org/
13 BuildRequires:  autoconf >= 2.59
14 BuildRequires:  automake >= 1:1.11
15 BuildRequires:  docbook-dtd50-xml
16 BuildRequires:  glibmm2.68-devel >= %{glibmm_ver}
17 BuildRequires:  gtkmm4-devel >= %{gtkmm_ver}
18 BuildRequires:  itstool
19 BuildRequires:  libstdc++-devel >= 6:7
20 BuildRequires:  mm-common >= 0.9.12
21 BuildRequires:  perl-base >= 1:5.6.0
22 BuildRequires:  pkgconfig
23 BuildRequires:  sed >= 4.0
24 BuildRequires:  tar >= 1:1.22
25 BuildRequires:  xz
26 BuildRequires:  yelp-tools
27 Requires:       gtkmm4-apidocs >= %{gtkmm_ver}
28 Suggests:       glibmm2.68-devel >= %{glibmm_ver}
29 Suggests:       gtkmm4-devel >= %{gtkmm_ver}
30 BuildArch:      noarch
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 This package contains the documentation and example programs for
35 gtkmm 4.x - C++ API for GTK 4.x.
36
37 %description -l pl.UTF-8
38 Ten pakiet zawiera dokumentację oraz programy przykładowe do
39 gtkmm 4.x - API C++ dla GTK 4.x.
40
41 %prep
42 %setup -q -n gtkmm-documentation-%{version}
43
44 %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' examples/book/buildapp/step1/install-cmd.py
45
46 %build
47 mm-common-prepare --copy --force
48 %{__aclocal} -I build
49 %{__autoconf}
50 %{__autoheader}
51 %{__automake}
52 %configure \
53         --disable-silent-rules
54
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/gtkmm4-%{version}
64 cp -pr examples/{book,others,README} $RPM_BUILD_ROOT%{_examplesdir}/gtkmm4-%{version}
65
66 %find_lang gtkmm-tutorial --with-gnome
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files -f gtkmm-tutorial.lang
72 %defattr(644,root,root,755)
73 %doc AUTHORS ChangeLog NEWS README
74 %{_docdir}/gtkmm-4.0/tutorial
75 %{_examplesdir}/gtkmm4-%{version}
This page took 0.039949 seconds and 3 git commands to generate.