[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 |
---|
[12444] | 6 | Version: 3.24.2 |
---|
[4616] | 7 | Release: 1%{?_dist_release} |
---|
[12444] | 8 | Vendor: Project Vine |
---|
| 9 | Distribution: Vine Linux |
---|
| 10 | |
---|
[4616] | 11 | License: LGPL |
---|
[12444] | 12 | URL: https://www.gtkmm.org/ |
---|
| 13 | %global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//') |
---|
| 14 | Source: https://download.gnome.org/sources/gtkmm/%{shortver}/gtkmm-%{version}.tar.xz |
---|
[4616] | 15 | |
---|
| 16 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
[6933] | 17 | Requires: glibmm >= 2.33.13 |
---|
| 18 | Requires: pangomm >= 2.27.1 |
---|
[4616] | 19 | Requires: atk >= 1.9.0 |
---|
[6933] | 20 | Requires: gtk3 >= 3.6.0 |
---|
| 21 | BuildRequires: glibmm-devel >= 2.33.13 |
---|
[4616] | 22 | BuildRequires: cairomm-devel |
---|
[6933] | 23 | BuildRequires: pangomm-devel >= 2.27.1 |
---|
[4616] | 24 | BuildRequires: atkmm-devel |
---|
[6933] | 25 | BuildRequires: gtk3-devel >= 3.6.0 |
---|
[4616] | 26 | BuildRequires: libsigc++-devel >= 2.0.0 |
---|
[6890] | 27 | BuildRequires: doxygen |
---|
[4616] | 28 | |
---|
| 29 | %description |
---|
| 30 | gtkmm (previously known as Gtk--) is the official C++ interface for the |
---|
| 31 | popular GUI library GTK+. Highlights include typesafe callbacks, widgets |
---|
| 32 | extensible via inheritance and a comprehensive set of widget classes that |
---|
| 33 | can be freely combined to quickly create complex user interfaces. |
---|
| 34 | |
---|
| 35 | The gtkmm devel package contains the static libraries and header files |
---|
| 36 | needed for developing GTK+ (GIMP ToolKit) applications in C++. |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %package devel |
---|
| 40 | Summary: Development tools for gtkmm applications. |
---|
| 41 | Summary(ja): gtkmm アプリケーションの開発用ファイル |
---|
| 42 | Group: Development/Libraries |
---|
| 43 | Requires: %{name} = %{version} |
---|
[6933] | 44 | Requires: gtk3-devel >= 3.6.0 |
---|
| 45 | Requires: glibmm-devel >= 2.33.13 |
---|
[4616] | 46 | Requires: cairomm-devel |
---|
[6933] | 47 | Requires: pangomm-devel >= 2.27.1 |
---|
[4616] | 48 | |
---|
| 49 | %description devel |
---|
| 50 | This package contains the headers that programmers will need to develop |
---|
| 51 | applications which will use Gtk--, the C++ interface to the GTK+ |
---|
| 52 | (the Gimp ToolKit) GUI library. |
---|
| 53 | |
---|
[12444] | 54 | |
---|
[4616] | 55 | %prep |
---|
| 56 | %setup -q -n gtkmm-%{version} |
---|
| 57 | |
---|
[12444] | 58 | |
---|
[4616] | 59 | %build |
---|
| 60 | %configure --disable-static |
---|
| 61 | make %{?_smp_mflags} |
---|
| 62 | |
---|
[12444] | 63 | |
---|
[4616] | 64 | %install |
---|
[12444] | 65 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} |
---|
[4616] | 66 | |
---|
[12444] | 67 | make install DESTDIR=%{buildroot} |
---|
[4616] | 68 | |
---|
[12444] | 69 | find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' |
---|
[4616] | 70 | |
---|
| 71 | # Fix documentation installation, put everything under gtk-doc |
---|
[12444] | 72 | mkdir -p %{buildroot}%{_datadir}/gtk-doc/html/gtkmm-%{ver} |
---|
| 73 | mv ${RPM_BUILD_ROOT}%{_docdir}/gtkmm-%{ver}/* %{buildroot}%{_datadir}/gtk-doc/html/gtkmm-%{ver}/ |
---|
[4616] | 74 | |
---|
| 75 | # devhelp path fix |
---|
[12444] | 76 | sed -i 's:doc/gtkmm-%{ver}:gtk-doc/html/gtkmm-%{ver}:g' %{buildroot}%{_datadir}/devhelp/books/gtkmm-%{ver}/gtkmm-%{ver}.devhelp2 |
---|
[4616] | 77 | |
---|
| 78 | # remove demos, examples |
---|
[12444] | 79 | rm -rf %{buildroot}%{_datadir}/gtkmm-%{ver}/demo |
---|
| 80 | rm -rf %{buildroot}%{_datadir}/gtkmm-%{ver}/examples |
---|
[4616] | 81 | |
---|
[12444] | 82 | |
---|
[4616] | 83 | %post -p /sbin/ldconfig |
---|
| 84 | |
---|
| 85 | %postun -p /sbin/ldconfig |
---|
| 86 | |
---|
[12444] | 87 | |
---|
[4616] | 88 | %clean |
---|
[12444] | 89 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} |
---|
[4616] | 90 | |
---|
[12444] | 91 | |
---|
[4616] | 92 | %files |
---|
| 93 | %defattr(-, root, root) |
---|
[12444] | 94 | %license COPYING |
---|
| 95 | %doc AUTHORS ChangeLog NEWS README |
---|
[4616] | 96 | %{_libdir}/lib*.so.* |
---|
| 97 | |
---|
| 98 | %files devel |
---|
| 99 | %defattr(-, root, root) |
---|
| 100 | %{_includedir}/* |
---|
| 101 | #{_libdir}/*.la |
---|
| 102 | #{_libdir}/*.a |
---|
| 103 | %{_libdir}/*.so |
---|
| 104 | %{_libdir}/gtkmm-* |
---|
| 105 | %{_libdir}/gdkmm-* |
---|
| 106 | %{_libdir}/pkgconfig/*.pc |
---|
| 107 | |
---|
| 108 | %{_datadir}/gtk-doc/html/* |
---|
| 109 | %{_datadir}/devhelp/books/* |
---|
| 110 | |
---|
[12444] | 111 | |
---|
[4616] | 112 | %changelog |
---|
[12444] | 113 | * Sun Aug 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.24.2-1 |
---|
| 114 | - new upstream release. |
---|
| 115 | |
---|
[12005] | 116 | * Fri Dec 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.22.3-1 |
---|
| 117 | - new upstream release. |
---|
| 118 | |
---|
[10716] | 119 | * Fri Jul 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.20.1-1 |
---|
| 120 | - new upstream release |
---|
| 121 | |
---|
[10413] | 122 | * Wed Jun 29 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.1-1 |
---|
| 123 | - new upstream release |
---|
| 124 | |
---|
[9791] | 125 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.0-1 |
---|
| 126 | - new upstream release |
---|
| 127 | |
---|
[9475] | 128 | * Sun Mar 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.16.0-1 |
---|
| 129 | - new upstream release |
---|
| 130 | |
---|
[9073] | 131 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.14.0-1 |
---|
| 132 | - new upstream release |
---|
| 133 | |
---|
[8369] | 134 | * Sat Apr 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1 |
---|
| 135 | - new upstream release |
---|
| 136 | |
---|
[7978] | 137 | * Sat Nov 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1 |
---|
| 138 | - new upstream release |
---|
| 139 | |
---|
[7681] | 140 | * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1 |
---|
| 141 | - new upstream release |
---|
| 142 | |
---|
[6984] | 143 | * Mon Oct 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.6.0-1 |
---|
| 144 | - new upstream release |
---|
| 145 | |
---|
[6933] | 146 | * Sat Oct 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.13-1 |
---|
| 147 | - new upstream release |
---|
| 148 | |
---|
[7681] | 149 | * Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.12-1 |
---|
[6890] | 150 | - new upstream release |
---|
| 151 | - add BuildRequires: doxygen |
---|
| 152 | |
---|
[6078] | 153 | * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.4.0-1 |
---|
[6011] | 154 | - new upstream release |
---|
| 155 | |
---|
[4850] | 156 | * Wed Sep 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1 |
---|
| 157 | - new upstream release |
---|
| 158 | |
---|
[4812] | 159 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.90.1-1 |
---|
| 160 | - new upstream release |
---|
| 161 | |
---|
[4704] | 162 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.16-1 |
---|
| 163 | - new upstream release |
---|
| 164 | |
---|
[4616] | 165 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.10-1 |
---|
| 166 | - initial build for Vine Linux |
---|
| 167 | |
---|