]>
Commit | Line | Data |
---|---|---|
90b3ced0 | 1 | # |
1dd40fb4 | 2 | # Conditional build: |
60a028b3 | 3 | %bcond_without static_libs # don't build static libraries |
1dd40fb4 | 4 | # |
278ef977 | 5 | Summary: A C++ interface for the GTK+ (a GUI library for X) |
905c154a | 6 | Summary(pl.UTF-8): Wrapper C++ dla GTK+ |
acc2f792 | 7 | Name: gtkmm |
2ac07ed1 | 8 | Version: 2.24.4 |
9e41f1f5 | 9 | Release: 1 |
6359a28a | 10 | License: LGPL v2+ |
278ef977 | 11 | Group: X11/Libraries |
434d8da2 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.24/%{name}-%{version}.tar.xz |
2ac07ed1 | 13 | # Source0-md5: b9ac60c90959a71095f07f84dd39961d |
4f29de1f | 14 | URL: http://www.gtkmm.org/ |
612f6884 | 15 | BuildRequires: atkmm-devel >= 2.22.2 |
226c76a3 | 16 | BuildRequires: autoconf >= 2.59 |
9eee3f7a | 17 | BuildRequires: automake >= 1:1.9 |
9370bb1f | 18 | BuildRequires: cairomm-devel >= 1.6.3 |
ad88aad8 | 19 | BuildRequires: glibmm-devel >= 2.28.0 |
9370bb1f | 20 | BuildRequires: gtk+2-devel >= 2:2.24.0 |
4f6e4d0a | 21 | BuildRequires: libsigc++-devel |
4e6da451 JB |
22 | BuildRequires: libstdc++-devel >= 5:3.3.1 |
23 | BuildRequires: libtool >= 2:1.4d-3 | |
ad88aad8 | 24 | BuildRequires: mm-common >= 0.9.5 |
9e41f1f5 | 25 | BuildRequires: pangomm-devel >= 2.28.0 |
955787e1 | 26 | BuildRequires: perl-base >= 1:5.6.0 |
4943058e | 27 | BuildRequires: pkgconfig |
434d8da2 JB |
28 | BuildRequires: tar >= 1:1.22 |
29 | BuildRequires: xz | |
612f6884 | 30 | Requires: atkmm >= 2.22.2 |
9370bb1f | 31 | Requires: cairomm >= 1.6.3 |
ad88aad8 | 32 | Requires: glibmm >= 2.28.0 |
434d8da2 | 33 | Requires: gtk+2 >= 2:2.24.0 |
9e41f1f5 | 34 | Requires: pangomm >= 2.28.0 |
1a64a6f8 | 35 | Obsoletes: Gtk-- |
de64e231 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
278ef977 | 37 | |
278ef977 | 38 | %description |
39 | This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI | |
01a7bdfa | 40 | library. The interface provides a convenient interface for C++ |
41 | programmers to create GUIs with GTK+'s flexible object-oriented | |
42 | framework. Features include type safe callbacks, widgets that are | |
43 | extensible using inheritance and over 110 classes that can be freely | |
44 | combined to quickly create complex user interfaces. | |
72db5a87 | 45 | |
1a41207d | 46 | %description -l pl.UTF-8 |
4f29de1f | 47 | gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką |
1a41207d | 48 | służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się |
4f29de1f | 49 | także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit). |
278ef977 | 50 | |
278ef977 | 51 | %package devel |
4f29de1f MB |
52 | Summary: gtkmm and gdkmm header files |
53 | Summary(pl.UTF-8): Pliki nagłówkowe gtkmm i gdkmm | |
278ef977 | 54 | Group: X11/Development/Libraries |
bbb47ce3 | 55 | Requires: %{name} = %{version}-%{release} |
612f6884 | 56 | Requires: atkmm-devel >= 2.22.2 |
ad88aad8 | 57 | Requires: glibmm-devel >= 2.28.0 |
434d8da2 | 58 | Requires: gtk+2-devel >= 2:2.24.0 |
9e41f1f5 | 59 | Requires: pangomm-devel >= 2.28.0 |
278ef977 | 60 | |
61 | %description devel | |
4f29de1f | 62 | Header files for gtkmm library. |
278ef977 | 63 | |
1a41207d | 64 | %description devel -l pl.UTF-8 |
4f29de1f | 65 | Pliki nagłówkowe biblioteki gtkmm. |
278ef977 | 66 | |
67 | %package static | |
4f29de1f MB |
68 | Summary: gtkmm and gdkmm static libraries |
69 | Summary(pl.UTF-8): Biblioteki statyczne gtkmm i gdkmm | |
278ef977 | 70 | Group: X11/Development/Libraries |
bbb47ce3 | 71 | Requires: %{name}-devel = %{version}-%{release} |
278ef977 | 72 | |
73 | %description static | |
4f29de1f | 74 | gtkmm and gdkmm static libraries. |
278ef977 | 75 | |
1a41207d | 76 | %description static -l pl.UTF-8 |
4f29de1f | 77 | Biblioteki statyczne gtkmm i gdkmm. |
278ef977 | 78 | |
9e41f1f5 AF |
79 | %package apidocs |
80 | Summary: Reference documentation for gtkmm and gdkmm | |
81 | Summary(pl.UTF-8): Szczegółowa dokumentacja gtkmm i gdkmm | |
82 | Group: Documentation | |
83 | Requires: devhelp | |
84 | Obsoletes: gtkmm-doc | |
85 | ||
86 | %description apidocs | |
87 | Reference documentation for gtkmm and gdkmm. | |
88 | ||
89 | %description apidocs -l pl.UTF-8 | |
90 | Szczegółowa dokumentacja gtkmm i gdkmm. | |
91 | ||
278ef977 | 92 | %prep |
de64e231 | 93 | %setup -q |
278ef977 | 94 | |
95 | %build | |
e71dcfa2 | 96 | %{__libtoolize} |
4f6e4d0a | 97 | %{__aclocal} -I build |
e71dcfa2 | 98 | %{__autoconf} |
a02fb2b8 | 99 | %{__autoheader} |
1ffe23b3 | 100 | %{__automake} |
18e0a21e | 101 | %configure \ |
9eee3f7a JB |
102 | %{?with_static_libs:--enable-static} |
103 | ||
bb0726fc | 104 | %{__make} |
278ef977 | 105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
278ef977 | 108 | |
78d9c2f6 | 109 | %{__make} install \ |
4f29de1f | 110 | DESTDIR=$RPM_BUILD_ROOT |
e71dcfa2 | 111 | |
7c712ff0 | 112 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
113 | ||
278ef977 | 114 | %clean |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
3b76984a JB |
117 | %post -p /sbin/ldconfig |
118 | %postun -p /sbin/ldconfig | |
119 | ||
278ef977 | 120 | %files |
121 | %defattr(644,root,root,755) | |
4f6e4d0a | 122 | %doc AUTHORS ChangeLog NEWS PORTING README |
9370bb1f | 123 | %attr(755,root,root) %{_libdir}/libgdkmm-2.4.so.*.*.* |
124 | %attr(755,root,root) %ghost %{_libdir}/libgdkmm-2.4.so.1 | |
125 | %attr(755,root,root) %{_libdir}/libgtkmm-2.4.so.*.*.* | |
126 | %attr(755,root,root) %ghost %{_libdir}/libgtkmm-2.4.so.1 | |
278ef977 | 127 | |
278ef977 | 128 | %files devel |
129 | %defattr(644,root,root,755) | |
9370bb1f | 130 | %attr(755,root,root) %{_libdir}/libgdkmm-2.4.so |
131 | %attr(755,root,root) %{_libdir}/libgtkmm-2.4.so | |
132 | %{_libdir}/gdkmm-2.4 | |
133 | %{_libdir}/gtkmm-2.4 | |
134 | %{_includedir}/gdkmm-2.4 | |
135 | %{_includedir}/gtkmm-2.4 | |
136 | %{_pkgconfigdir}/gdkmm-2.4.pc | |
137 | %{_pkgconfigdir}/gtkmm-2.4.pc | |
4e6da451 | 138 | |
60a028b3 | 139 | %if %{with static_libs} |
278ef977 | 140 | %files static |
01a7bdfa | 141 | %defattr(644,root,root,755) |
9370bb1f | 142 | %{_libdir}/libgdkmm-2.4.a |
143 | %{_libdir}/libgtkmm-2.4.a | |
391e5b8f | 144 | %endif |
9e41f1f5 AF |
145 | |
146 | %files apidocs | |
147 | %defattr(644,root,root,755) | |
9370bb1f | 148 | %{_docdir}/gtkmm-2.4 |
149 | %{_datadir}/devhelp/books/gtkmm-2.4 |