]>
Commit | Line | Data |
---|---|---|
33bee831 AF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
222a6ef9 | 4 | |
928477ea | 5 | %define atkmm_ver 2.24.2 |
7c2001a4 JB |
6 | %define glibmm_ver 2.54.0 |
7 | %define gtk3_ver 3.24.0 | |
928477ea | 8 | %define pangomm_ver 2.38.2 |
33bee831 AF |
9 | Summary: A C++ interface for the GTK+ (a GUI library for X) |
10 | Summary(pl.UTF-8): Wrapper C++ dla GTK+ | |
11 | Name: gtkmm3 | |
dac66963 | 12 | Version: 3.24.7 |
70058bc0 | 13 | Release: 1 |
33bee831 AF |
14 | License: LGPL v2+ |
15 | Group: X11/Libraries | |
c6e33ff3 | 16 | Source0: https://download.gnome.org/sources/gtkmm/3.24/gtkmm-%{version}.tar.xz |
dac66963 | 17 | # Source0-md5: 9576353c26db5e273a074264b68ad6cf |
7c1d0224 | 18 | URL: https://www.gtkmm.org/ |
928477ea | 19 | BuildRequires: atkmm-devel >= %{atkmm_ver} |
33bee831 | 20 | BuildRequires: autoconf >= 2.59 |
31a8d119 | 21 | BuildRequires: automake >= 1:1.11 |
70058bc0 | 22 | BuildRequires: cairomm-devel >= 1.12.0 |
c6e33ff3 | 23 | BuildRequires: doxygen >= 1:1.8.9 |
ef8910d5 | 24 | BuildRequires: gdk-pixbuf2-devel >= 2.36.0 |
e34bbb24 | 25 | BuildRequires: glibmm-devel >= %{glibmm_ver} |
a4ed03e8 | 26 | BuildRequires: gtk+3-devel >= %{gtk3_ver} |
70058bc0 | 27 | BuildRequires: libepoxy-devel >= 1.2 |
33bee831 | 28 | BuildRequires: libsigc++-devel |
4f3647ae | 29 | BuildRequires: libstdc++-devel >= 6:4.7 |
e3273d66 | 30 | BuildRequires: libtool >= 2:2.0 |
928477ea JB |
31 | BuildRequires: mm-common >= 0.9.10 |
32 | BuildRequires: pangomm-devel >= %{pangomm_ver} | |
33bee831 AF |
33 | BuildRequires: perl-base >= 1:5.6.0 |
34 | BuildRequires: pkgconfig | |
ff26e432 | 35 | BuildRequires: rpm-build >= 4.6 |
c6e33ff3 | 36 | BuildRequires: rpmbuild(macros) >= 1.752 |
e3273d66 JB |
37 | BuildRequires: tar >= 1:1.22 |
38 | BuildRequires: xz | |
928477ea | 39 | Requires: atkmm >= %{atkmm_ver} |
70058bc0 | 40 | Requires: cairomm >= 1.12.0 |
ef8910d5 | 41 | Requires: gdk-pixbuf2 >= 2.36.0 |
e34bbb24 | 42 | Requires: glibmm >= %{glibmm_ver} |
a4ed03e8 | 43 | Requires: gtk+3 >= %{gtk3_ver} |
928477ea | 44 | Requires: pangomm >= %{pangomm_ver} |
33bee831 AF |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI | |
49 | library. The interface provides a convenient interface for C++ | |
50 | programmers to create GUIs with GTK+'s flexible object-oriented | |
51 | framework. Features include type safe callbacks, widgets that are | |
52 | extensible using inheritance and over 110 classes that can be freely | |
53 | combined to quickly create complex user interfaces. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką | |
57 | służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się | |
58 | także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit). | |
59 | ||
60 | %package devel | |
61 | Summary: gtkmm and gdkmm header files | |
62 | Summary(pl.UTF-8): Pliki nagłówkowe gtkmm i gdkmm | |
63 | Group: X11/Development/Libraries | |
64 | Requires: %{name} = %{version}-%{release} | |
928477ea | 65 | Requires: atkmm-devel >= %{atkmm_ver} |
70058bc0 | 66 | Requires: cairomm-devel >= 1.12.0 |
ef8910d5 | 67 | Requires: gdk-pixbuf2-devel >= 2.36.0 |
e34bbb24 | 68 | Requires: glibmm-devel >= %{glibmm_ver} |
a4ed03e8 | 69 | Requires: gtk+3-devel >= %{gtk3_ver} |
70058bc0 | 70 | Requires: libstdc++-devel >= 6:4.6 |
928477ea | 71 | Requires: pangomm-devel >= %{pangomm_ver} |
33bee831 AF |
72 | |
73 | %description devel | |
74 | Header files for gtkmm library. | |
75 | ||
76 | %description devel -l pl.UTF-8 | |
77 | Pliki nagłówkowe biblioteki gtkmm. | |
78 | ||
79 | %package static | |
80 | Summary: gtkmm and gdkmm static libraries | |
81 | Summary(pl.UTF-8): Biblioteki statyczne gtkmm i gdkmm | |
82 | Group: X11/Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
84 | ||
85 | %description static | |
86 | gtkmm and gdkmm static libraries. | |
87 | ||
88 | %description static -l pl.UTF-8 | |
89 | Biblioteki statyczne gtkmm i gdkmm. | |
90 | ||
91 | %package apidocs | |
92 | Summary: Reference documentation for gtkmm and gdkmm | |
93 | Summary(pl.UTF-8): Szczegółowa dokumentacja gtkmm i gdkmm | |
94 | Group: Documentation | |
95 | Requires: devhelp | |
128e601f | 96 | BuildArch: noarch |
33bee831 AF |
97 | |
98 | %description apidocs | |
99 | Reference documentation for gtkmm and gdkmm. | |
100 | ||
101 | %description apidocs -l pl.UTF-8 | |
102 | Szczegółowa dokumentacja gtkmm i gdkmm. | |
103 | ||
104 | %prep | |
105 | %setup -q -n gtkmm-%{version} | |
106 | ||
c6e33ff3 JB |
107 | # missing in release tarball, not needed for Linux |
108 | mkdir win32_installer | |
109 | touch win32_installer/filelist.am \ | |
110 | win32_installer/gtkmm-installer.nsi.in | |
111 | ||
33bee831 | 112 | %build |
c6e33ff3 | 113 | mm-common-prepare --copy --force |
33bee831 AF |
114 | %{__libtoolize} |
115 | %{__aclocal} -I build | |
116 | %{__autoconf} | |
117 | %{__autoheader} | |
118 | %{__automake} | |
119 | %configure \ | |
c6e33ff3 | 120 | --enable-maintainer-mode \ |
ef8910d5 | 121 | --disable-silent-rules \ |
33bee831 AF |
122 | %{?with_static_libs:--enable-static} |
123 | ||
124 | %{__make} | |
125 | ||
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %{__make} install \ | |
130 | DESTDIR=$RPM_BUILD_ROOT | |
131 | ||
132 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
133 | ||
134 | %clean | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %post -p /sbin/ldconfig | |
138 | %postun -p /sbin/ldconfig | |
139 | ||
140 | %files | |
141 | %defattr(644,root,root,755) | |
3f8d9ad2 | 142 | %doc AUTHORS ChangeLog NEWS README |
33bee831 AF |
143 | %attr(755,root,root) %{_libdir}/libgdkmm-3.0.so.*.*.* |
144 | %attr(755,root,root) %ghost %{_libdir}/libgdkmm-3.0.so.1 | |
145 | %attr(755,root,root) %{_libdir}/libgtkmm-3.0.so.*.*.* | |
146 | %attr(755,root,root) %ghost %{_libdir}/libgtkmm-3.0.so.1 | |
147 | ||
148 | %files devel | |
149 | %defattr(644,root,root,755) | |
150 | %attr(755,root,root) %{_libdir}/libgdkmm-3.0.so | |
151 | %attr(755,root,root) %{_libdir}/libgtkmm-3.0.so | |
152 | %{_libdir}/gdkmm-3.0 | |
153 | %{_libdir}/gtkmm-3.0 | |
154 | %{_includedir}/gdkmm-3.0 | |
155 | %{_includedir}/gtkmm-3.0 | |
156 | %{_pkgconfigdir}/gdkmm-3.0.pc | |
157 | %{_pkgconfigdir}/gtkmm-3.0.pc | |
158 | ||
159 | %if %{with static_libs} | |
160 | %files static | |
161 | %defattr(644,root,root,755) | |
162 | %{_libdir}/libgdkmm-3.0.a | |
163 | %{_libdir}/libgtkmm-3.0.a | |
164 | %endif | |
165 | ||
166 | %files apidocs | |
167 | %defattr(644,root,root,755) | |
168 | %{_docdir}/gtkmm-3.0 | |
169 | %{_datadir}/devhelp/books/gtkmm-3.0 |