[4850] | 1 | %define glib2_version 2.30.0 |
---|
| 2 | %define gtk3_version 3.2.0 |
---|
[4616] | 3 | |
---|
| 4 | %define po_package gtksourceview-3.0 |
---|
| 5 | |
---|
| 6 | Summary: A library for viewing source files |
---|
| 7 | Summary(ja): ソースコードなどを表示するためのライブラリ |
---|
| 8 | Name: gtksourceview3 |
---|
[5168] | 9 | Version: 3.2.3 |
---|
[4616] | 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/ |
---|
[4850] | 15 | Source0: http://download.gnome.org/sources/gtksourceview/3.2/gtksourceview-%{version}.tar.xz |
---|
[4616] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | BuildRequires: glib2-devel >= %{glib2_version} |
---|
| 18 | BuildRequires: gtk3-devel >= %{gtk3_version} |
---|
| 19 | BuildRequires: libxml2-devel |
---|
| 20 | BuildRequires: intltool >= 0.35 |
---|
| 21 | BuildRequires: gettext |
---|
| 22 | |
---|
| 23 | Vendor: Project Vine |
---|
| 24 | Distribution: Vine Linux |
---|
| 25 | Packager: Takemikaduchi |
---|
| 26 | |
---|
| 27 | %description |
---|
| 28 | GtkSourceView is a text widget that extends the standard GTK+ |
---|
| 29 | GtkTextView widget. It improves GtkTextView by implementing |
---|
| 30 | syntax highlighting and other features typical of a source code editor. |
---|
| 31 | |
---|
| 32 | This package contains version 2 of GtkSourceView. The older version |
---|
| 33 | 1 is contains in the gtksourceview package. |
---|
| 34 | |
---|
| 35 | %package devel |
---|
| 36 | Summary: Files to compile applications that use gtksourceview2 |
---|
| 37 | Summary(ja): gtksourceview2 を使用するアプリケーションのコンパイルに必要なファイル |
---|
| 38 | Group: Development/Libraries |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | Requires: gtk3-devel >= %{gtk3_version} |
---|
| 41 | Requires: libxml2-devel |
---|
| 42 | Requires: pkgconfig |
---|
| 43 | |
---|
| 44 | %description devel |
---|
| 45 | gtksourceview2-devel contains the files required to compile |
---|
| 46 | applications which use GtkSourceView 2.x. |
---|
| 47 | |
---|
| 48 | %prep |
---|
| 49 | %setup -q -n gtksourceview-%{version} |
---|
| 50 | |
---|
| 51 | %build |
---|
| 52 | |
---|
| 53 | %configure --disable-gtk-doc --disable-static |
---|
| 54 | |
---|
| 55 | make %{?_smp_mflags} |
---|
| 56 | |
---|
| 57 | %install |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
| 59 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 60 | |
---|
| 61 | # remove unwanted files |
---|
| 62 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 63 | rm -f $RPM_BUILD_ROOT%{_datadir}/gtksourceview-3.0/language-specs/check.sh |
---|
| 64 | rm -f $RPM_BUILD_ROOT%{_datadir}/gtksourceview-3.0/language-specs/convert.py |
---|
| 65 | |
---|
| 66 | %find_lang %{po_package} |
---|
| 67 | |
---|
| 68 | %post -p /sbin/ldconfig |
---|
| 69 | |
---|
| 70 | %postun -p /sbin/ldconfig |
---|
| 71 | |
---|
| 72 | %clean |
---|
| 73 | rm -rf $RPM_BUILD_ROOT |
---|
| 74 | |
---|
| 75 | %files -f %{po_package}.lang |
---|
| 76 | %defattr(-,root,root,-) |
---|
| 77 | %doc README AUTHORS COPYING NEWS MAINTAINERS |
---|
| 78 | %{_libdir}/*.so.* |
---|
| 79 | %{_libdir}/girepository-1.0/*.typelib |
---|
| 80 | %{_datadir}/gtksourceview-3.0 |
---|
| 81 | |
---|
| 82 | %files devel |
---|
| 83 | %defattr(-,root,root,-) |
---|
| 84 | %{_includedir}/gtksourceview-3.0 |
---|
| 85 | %{_libdir}/pkgconfig/*.pc |
---|
| 86 | %{_libdir}/*.so |
---|
| 87 | %{_datadir}/gir-1.0/*.gir |
---|
| 88 | %{_datadir}/gtk-doc |
---|
| 89 | |
---|
| 90 | %changelog |
---|
[5168] | 91 | * Sun Nov 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.3-1 |
---|
| 92 | - new upstream release |
---|
| 93 | |
---|
[5038] | 94 | * Sat Oct 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.2-1 |
---|
| 95 | - new upstream release |
---|
| 96 | |
---|
[4850] | 97 | * Thu Sep 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1 |
---|
| 98 | - new upstream release |
---|
| 99 | |
---|
[4812] | 100 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.6-1 |
---|
| 101 | - new upstream release |
---|
| 102 | |
---|
[4616] | 103 | * Mon Aug 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.3-1 |
---|
| 104 | - initial build for Vine Linux |
---|
| 105 | |
---|