[805] | 1 | %define glib2_version 2.24.0 |
---|
| 2 | %define gtk2_version 2.20.0 |
---|
[521] | 3 | |
---|
| 4 | %define po_package gtksourceview-2.0 |
---|
| 5 | |
---|
| 6 | Summary: A library for viewing source files |
---|
| 7 | Summary(ja): ソースコードなどを表示するためのライブラリ |
---|
| 8 | Name: gtksourceview2 |
---|
[805] | 9 | Version: 2.10.0 |
---|
[521] | 10 | Release: 1%{?_dist_release} |
---|
| 11 | License: LGPLv2+ and GPLv2+ |
---|
| 12 | # the library itself is LGPL, some .lang files are GPL |
---|
| 13 | Group: System Environment/Libraries |
---|
| 14 | URL: http://gtksourceview.sourceforge.net/ |
---|
| 15 | Source0: http://download.gnome.org/sources/gtksourceview/2.6/gtksourceview-%{version}.tar.bz2 |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
| 18 | BuildRequires: gtk2-devel >= %{gtk2_version} |
---|
| 19 | BuildRequires: libxml2-devel |
---|
| 20 | BuildRequires: intltool >= 0.35 |
---|
| 21 | BuildRequires: gettext |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | GtkSourceView is a text widget that extends the standard GTK+ |
---|
| 25 | GtkTextView widget. It improves GtkTextView by implementing |
---|
| 26 | syntax highlighting and other features typical of a source code editor. |
---|
| 27 | |
---|
| 28 | This package contains version 2 of GtkSourceView. The older version |
---|
| 29 | 1 is contains in the gtksourceview package. |
---|
| 30 | |
---|
| 31 | %package devel |
---|
| 32 | Summary: Files to compile applications that use gtksourceview2 |
---|
| 33 | Summary(ja): gtksourceview2 を使用するアプリケーションのコンパイルに必要なファイル |
---|
| 34 | Group: Development/Libraries |
---|
| 35 | Requires: %{name} = %{version}-%{release} |
---|
| 36 | Requires: gtk2-devel >= %{gtk2_version} |
---|
| 37 | Requires: libxml2-devel |
---|
| 38 | Requires: pkgconfig |
---|
| 39 | |
---|
| 40 | %description devel |
---|
| 41 | gtksourceview2-devel contains the files required to compile |
---|
| 42 | applications which use GtkSourceView 2.x. |
---|
| 43 | |
---|
| 44 | %prep |
---|
| 45 | %setup -q -n gtksourceview-%{version} |
---|
| 46 | |
---|
| 47 | %build |
---|
| 48 | |
---|
| 49 | %configure --disable-gtk-doc --disable-static |
---|
| 50 | |
---|
| 51 | make %{?_smp_mflags} |
---|
| 52 | |
---|
| 53 | %install |
---|
| 54 | rm -rf $RPM_BUILD_ROOT |
---|
| 55 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 56 | |
---|
| 57 | # remove unwanted files |
---|
| 58 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 59 | rm -f $RPM_BUILD_ROOT%{_datadir}/gtksourceview-2.0/language-specs/check.sh |
---|
| 60 | rm -f $RPM_BUILD_ROOT%{_datadir}/gtksourceview-2.0/language-specs/convert.py |
---|
| 61 | |
---|
| 62 | %find_lang %{po_package} |
---|
| 63 | |
---|
| 64 | %post -p /sbin/ldconfig |
---|
| 65 | |
---|
| 66 | %postun -p /sbin/ldconfig |
---|
| 67 | |
---|
| 68 | %clean |
---|
| 69 | rm -rf $RPM_BUILD_ROOT |
---|
| 70 | |
---|
| 71 | %files -f %{po_package}.lang |
---|
| 72 | %defattr(-,root,root,-) |
---|
| 73 | %doc README AUTHORS COPYING NEWS MAINTAINERS |
---|
| 74 | %{_datadir}/gtksourceview-2.0 |
---|
| 75 | %{_libdir}/*.so.* |
---|
| 76 | |
---|
| 77 | %files devel |
---|
| 78 | %defattr(-,root,root,-) |
---|
| 79 | %{_includedir}/gtksourceview-2.0 |
---|
| 80 | %{_datadir}/gtk-doc |
---|
| 81 | %{_libdir}/pkgconfig/*.pc |
---|
| 82 | %{_libdir}/*.so |
---|
| 83 | |
---|
| 84 | %changelog |
---|
[805] | 85 | * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.0-1 |
---|
| 86 | - new upstream release |
---|
| 87 | |
---|
[623] | 88 | * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.2-1 |
---|
| 89 | - new upstream release |
---|
| 90 | |
---|
[521] | 91 | * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.1-1 |
---|
| 92 | - new upstream release |
---|
| 93 | - removed BR: gnome-vfs2-devel |
---|
| 94 | |
---|
| 95 | * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1 |
---|
| 96 | - new upstream release |
---|
| 97 | |
---|
| 98 | * Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.1-1 |
---|
| 99 | - new upstream release |
---|
| 100 | |
---|
| 101 | * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.0-1 |
---|
| 102 | - new upstream release |
---|
| 103 | |
---|
| 104 | * Thu Sep 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1 |
---|
| 105 | - new upstream release |
---|
| 106 | |
---|
| 107 | * Mon Jul 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.2.2-1 |
---|
| 108 | - new upstream release |
---|
| 109 | |
---|
| 110 | * Sat Apr 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.2.1-1vl5 |
---|
| 111 | - Initial build for Vine Linux |
---|
| 112 | |
---|
| 113 | * Mon Apr 7 2008 Matthias Clasen <mclasen@redhat.com> - 2.2.1-1 |
---|
| 114 | - Update to 2.2.1 |
---|
| 115 | |
---|
| 116 | * Mon Mar 10 2008 Matthias Clasen <mclasen@redhat.com> - 2.2.0-1 |
---|
| 117 | - Update to 2.2.0 |
---|
| 118 | |
---|
| 119 | * Mon Feb 25 2008 Matthias Clasen <mclasen@redhat.com> - 2.1.3-1 |
---|
| 120 | - Update to 2.1.3 |
---|
| 121 | |
---|
| 122 | * Wed Feb 6 2008 Matthias Clasen <mclasen@redhat.com> - 2.1.2-1 |
---|
| 123 | - Update to 2.1.2 |
---|
| 124 | |
---|
| 125 | * Tue Jan 29 2008 Matthias Clasen <mclasen@redhat.com> - 2.1.1-1 |
---|
| 126 | - Update to 2.1.1 |
---|
| 127 | |
---|
| 128 | * Mon Jan 14 2008 Matthias Clasen <mclasen@redhat.com> - 2.1.0-1 |
---|
| 129 | - Update to 2.1.0 |
---|
| 130 | |
---|
| 131 | * Mon Nov 26 2007 Matthias Clasen <mclasen@redhat.com> - 2.0.2-1 |
---|
| 132 | - Update to 2.0.2 |
---|
| 133 | |
---|
| 134 | * Mon Nov 12 2007 Matthias Clasen <mclasen@redhat.com> - 2.0.1-1 |
---|
| 135 | - Update to 2.0.1 |
---|
| 136 | |
---|
| 137 | * Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 2.0.0-1 |
---|
| 138 | - Update to 2.0.0 |
---|
| 139 | |
---|
| 140 | * Tue Sep 11 2007 Matthew Barnes <mbarnes@redhat.com> - 1.90.5-1 |
---|
| 141 | - Update to 1.90.5 |
---|
| 142 | |
---|
| 143 | * Tue Sep 4 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.4-1 |
---|
| 144 | - Update to 1.90.4 |
---|
| 145 | |
---|
| 146 | * Tue Aug 7 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.3-2 |
---|
| 147 | - Update license field |
---|
| 148 | |
---|
| 149 | * Wed Aug 1 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.3-1 |
---|
| 150 | - Update to 1.90.3 |
---|
| 151 | |
---|
| 152 | * Tue Jul 10 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.2-1 |
---|
| 153 | - Update to 1.90.2 |
---|
| 154 | |
---|
| 155 | * Mon Jul 2 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.1-4 |
---|
| 156 | - More package review feedback: |
---|
| 157 | + don't ship check.sh and convert.py scripts |
---|
| 158 | + use GRegex from glib |
---|
| 159 | |
---|
| 160 | * Fri Jun 29 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.1-3 |
---|
| 161 | - Package review feedback |
---|
| 162 | |
---|
| 163 | * Wed Jun 27 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.1-2 |
---|
| 164 | - New package for GtkSourceView 2.x, based on gtksourceview |
---|