1 | %define ver 2.0 |
---|
2 | |
---|
3 | Summary: A C++ wrapper for gtksourceview |
---|
4 | Summary(ja): gtksourceview の C++ ラッパー |
---|
5 | Name: gtksourceviewmm |
---|
6 | Version: 2.10.3 |
---|
7 | Release: 2%{?_dist_release} |
---|
8 | License: LGPL |
---|
9 | Group: System Environment/Libraries |
---|
10 | Source: ftp://ftp.gnome.org/pub/GNOME/sources/gtksourceviewmm/2.10/%{name}-%{version}.tar.xz |
---|
11 | |
---|
12 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | |
---|
14 | Requires: gtksourceview2 >= 2.9.7 |
---|
15 | Requires: gtkmm2 >= 2.12 |
---|
16 | BuildRequires: gtksourceview2-devel >= 2.9.7 |
---|
17 | BuildRequires: gtkmm2-devel >= 2.12 |
---|
18 | BuildRequires: mm-common |
---|
19 | BuildRequires: autoconf |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | Packager: Takemikaduchi |
---|
24 | |
---|
25 | Patch0: gtksourceviewmm-2.10.3-c++11.patch |
---|
26 | |
---|
27 | %description |
---|
28 | Gtksourceviewmm is a C++ wrapper for gtksourceview. |
---|
29 | |
---|
30 | |
---|
31 | %package devel |
---|
32 | Summary: Development tools for gtksourceviewmm applications. |
---|
33 | Summary(ja): gtksourceviewmm アプリケーションの開発用ファイル |
---|
34 | Group: Development/Libraries |
---|
35 | Requires: %{name} = %{version}-%{release} |
---|
36 | Requires: gtksourceview2-devel >= 2.9.7 |
---|
37 | Requires: gtkmm2-devel >= 2.12 |
---|
38 | |
---|
39 | %description devel |
---|
40 | Header files and libraries for building a extension library for the gtksourceviewmm. |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q |
---|
44 | %patch0 -p1 |
---|
45 | |
---|
46 | %build |
---|
47 | autoreconf -if |
---|
48 | %configure --disable-static |
---|
49 | make %{?_smp_mflags} |
---|
50 | |
---|
51 | %install |
---|
52 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
53 | |
---|
54 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
55 | |
---|
56 | find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
---|
57 | find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
---|
58 | |
---|
59 | # Fix documentation installation, put everything under gtk-doc |
---|
60 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/%{name}-%{ver} |
---|
61 | mv ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{ver}/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/%{name}-%{ver}/ |
---|
62 | |
---|
63 | # devhelp path fix |
---|
64 | sed -i 's:doc/%{name}-%{ver}:gtk-doc/html/%{name}-%{ver}:g' $RPM_BUILD_ROOT%{_datadir}/devhelp/books/%{name}-%{ver}/%{name}-%{ver}.devhelp2 |
---|
65 | |
---|
66 | # remove demos, examples |
---|
67 | rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{ver}/demo |
---|
68 | rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{ver}/examples |
---|
69 | |
---|
70 | %post -p /sbin/ldconfig |
---|
71 | |
---|
72 | %postun -p /sbin/ldconfig |
---|
73 | |
---|
74 | %clean |
---|
75 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
76 | |
---|
77 | %files |
---|
78 | %defattr(-, root, root) |
---|
79 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
80 | %{_libdir}/lib*.so.* |
---|
81 | |
---|
82 | %files devel |
---|
83 | %defattr(-, root, root) |
---|
84 | %{_includedir}/* |
---|
85 | %{_libdir}/*.so |
---|
86 | %{_libdir}/%{name}-* |
---|
87 | %{_libdir}/pkgconfig/*.pc |
---|
88 | %{_datadir}/gtk-doc/html/* |
---|
89 | %{_datadir}/devhelp/books/* |
---|
90 | |
---|
91 | %changelog |
---|
92 | * Wed Jun 29 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.3-2 |
---|
93 | - rebuild with gcc-5.4.0 |
---|
94 | - add Patch0 (gtksourceviewmm-2.10.3-c++11.patch) |
---|
95 | |
---|
96 | * Sun May 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.3-1 |
---|
97 | - new upstream release |
---|
98 | |
---|
99 | * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.10.1-2 |
---|
100 | - build with rpm-4.8.1-1 for pkg-config file |
---|
101 | |
---|
102 | * Thu Jul 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1 |
---|
103 | - initial build for Vine Linux |
---|
104 | |
---|