[4616] | 1 | %define ver 3.0 |
---|
| 2 | |
---|
| 3 | Summary: A C++ interface for the GTK+ (a GUI library for X). |
---|
| 4 | Summary(ja): GTK+ の C++ インターフェイス |
---|
| 5 | Name: gtkmm3 |
---|
[4850] | 6 | Version: 3.2.0 |
---|
[4616] | 7 | Release: 1%{?_dist_release} |
---|
| 8 | License: LGPL |
---|
| 9 | Group: System Environment/Libraries |
---|
[4850] | 10 | Source: ftp://ftp.gnome.org/pub/GNOME/sources/gtkmm/3.2/gtkmm-%{version}.tar.xz |
---|
[4616] | 11 | |
---|
| 12 | URL: http://gtkmm.sourceforge.net/ |
---|
| 13 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | Requires: glibmm >= 2.21.2 |
---|
| 15 | Requires: pangomm >= 2.25.1.3 |
---|
| 16 | Requires: atk >= 1.9.0 |
---|
| 17 | Requires: gtk3 >= 3.0.0 |
---|
| 18 | BuildRequires: glibmm-devel >= 2.21.2 |
---|
| 19 | BuildRequires: cairomm-devel |
---|
| 20 | BuildRequires: pangomm-devel >= 2.25.1.3 |
---|
| 21 | BuildRequires: atkmm-devel |
---|
| 22 | BuildRequires: gtk3-devel >= 3.0.0 |
---|
| 23 | BuildRequires: libsigc++-devel >= 2.0.0 |
---|
| 24 | |
---|
| 25 | Vendor: Project Vine |
---|
| 26 | Distribution: Vine Linux |
---|
| 27 | |
---|
| 28 | %description |
---|
| 29 | gtkmm (previously known as Gtk--) is the official C++ interface for the |
---|
| 30 | popular GUI library GTK+. Highlights include typesafe callbacks, widgets |
---|
| 31 | extensible via inheritance and a comprehensive set of widget classes that |
---|
| 32 | can be freely combined to quickly create complex user interfaces. |
---|
| 33 | |
---|
| 34 | The gtkmm devel package contains the static libraries and header files |
---|
| 35 | needed for developing GTK+ (GIMP ToolKit) applications in C++. |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %package devel |
---|
| 39 | Summary: Development tools for gtkmm applications. |
---|
| 40 | Summary(ja): gtkmm アプリケーションの開発用ファイル |
---|
| 41 | Group: Development/Libraries |
---|
| 42 | Requires: %{name} = %{version} |
---|
| 43 | Requires: gtk3-devel >= 3.0.0 |
---|
| 44 | Requires: glibmm-devel >= 2.21.2 |
---|
| 45 | Requires: cairomm-devel |
---|
| 46 | Requires: pangomm-devel >= 2.25.1.3 |
---|
| 47 | |
---|
| 48 | %description devel |
---|
| 49 | This package contains the headers that programmers will need to develop |
---|
| 50 | applications which will use Gtk--, the C++ interface to the GTK+ |
---|
| 51 | (the Gimp ToolKit) GUI library. |
---|
| 52 | |
---|
| 53 | %prep |
---|
| 54 | %setup -q -n gtkmm-%{version} |
---|
| 55 | #patch0 -p1 |
---|
| 56 | |
---|
| 57 | %build |
---|
| 58 | %configure --disable-static |
---|
| 59 | make %{?_smp_mflags} |
---|
| 60 | |
---|
| 61 | %install |
---|
| 62 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 63 | |
---|
| 64 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 65 | |
---|
| 66 | find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
---|
| 67 | |
---|
| 68 | # Fix documentation installation, put everything under gtk-doc |
---|
| 69 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/gtkmm-%{ver} |
---|
| 70 | mv ${RPM_BUILD_ROOT}%{_docdir}/gtkmm-%{ver}/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/gtkmm-%{ver}/ |
---|
| 71 | |
---|
| 72 | # devhelp path fix |
---|
| 73 | sed -i 's:doc/gtkmm-%{ver}:gtk-doc/html/gtkmm-%{ver}:g' $RPM_BUILD_ROOT%{_datadir}/devhelp/books/gtkmm-%{ver}/gtkmm-%{ver}.devhelp2 |
---|
| 74 | |
---|
| 75 | # remove demos, examples |
---|
| 76 | rm -rf $RPM_BUILD_ROOT%{_datadir}/gtkmm-%{ver}/demo |
---|
| 77 | rm -rf $RPM_BUILD_ROOT%{_datadir}/gtkmm-%{ver}/examples |
---|
| 78 | |
---|
| 79 | %post -p /sbin/ldconfig |
---|
| 80 | |
---|
| 81 | %postun -p /sbin/ldconfig |
---|
| 82 | |
---|
| 83 | %clean |
---|
| 84 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 85 | |
---|
| 86 | %files |
---|
| 87 | %defattr(-, root, root) |
---|
| 88 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
| 89 | %{_libdir}/lib*.so.* |
---|
| 90 | |
---|
| 91 | %files devel |
---|
| 92 | %defattr(-, root, root) |
---|
| 93 | %{_includedir}/* |
---|
| 94 | #{_libdir}/*.la |
---|
| 95 | #{_libdir}/*.a |
---|
| 96 | %{_libdir}/*.so |
---|
| 97 | %{_libdir}/gtkmm-* |
---|
| 98 | %{_libdir}/gdkmm-* |
---|
| 99 | %{_libdir}/pkgconfig/*.pc |
---|
| 100 | |
---|
| 101 | %{_datadir}/gtk-doc/html/* |
---|
| 102 | %{_datadir}/devhelp/books/* |
---|
| 103 | |
---|
| 104 | %changelog |
---|
[4850] | 105 | * Wed Sep 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1 |
---|
| 106 | - new upstream release |
---|
| 107 | |
---|
[4812] | 108 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.90.1-1 |
---|
| 109 | - new upstream release |
---|
| 110 | |
---|
[4704] | 111 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.16-1 |
---|
| 112 | - new upstream release |
---|
| 113 | |
---|
[4616] | 114 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.10-1 |
---|
| 115 | - initial build for Vine Linux |
---|
| 116 | |
---|