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