]> git.pld-linux.org Git - packages/gtksourceview2.git/blob - gtksourceview2.spec
- 1.90.1
[packages/gtksourceview2.git] / gtksourceview2.spec
1 #
2 # Conditional build:
3 %bcond_without  gnome   # disable gnomeprint support
4 #
5 Summary:        Text widget that extends the standard GTK+ 2.x
6 Summary(pl.UTF-8):      Widget tekstowy rozszerzający standardowy z GTK+ 2.x
7 Name:           gtksourceview2
8 Version:        1.90.1
9 Release:        1
10 License:        GPL v2+
11 Group:          X11/Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/1.90/gtksourceview-%{version}.tar.bz2
13 # Source0-md5:  4c627eda26c63cf76cdabce56e247d91
14 URL:            http://www.gnome.org/
15 BuildRequires:  autoconf >= 2.53
16 BuildRequires:  automake
17 BuildRequires:  gnome-common >= 2.12.0
18 BuildRequires:  gtk+2-devel >= 2:2.10.9
19 BuildRequires:  gtk-doc >= 1.8
20 BuildRequires:  intltool >= 0.35.5
21 %{?with_gnome:BuildRequires:    libgnomeprint-devel >= 2.18.0}
22 BuildRequires:  libtool
23 BuildRequires:  libxml2-devel >= 1:2.6.27
24 BuildRequires:  pkgconfig
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 GtkSourceView is a text widget that extends the standard GTK+ 2.x text
29 widget GtkTextView. It improves GtkTextView by implementing syntax
30 highlighting and other features typical of a source editor.
31
32 %description -l pl.UTF-8
33 GtkSourceView to widget tekstowy rozszerzający standardowy widget
34 tekstowy GtkTextView z GTK+ 2.x. Ulepsza GtkTextView poprzez
35 zaimplementowanie podświetlania składni i innych możliwości typowych
36 dla edytora źródeł.
37
38 %package apidocs
39 Summary:        GtkSourceView API documentation
40 Summary(pl.UTF-8):      Dokumentacja API GtkSourceView
41 Group:          Documentation
42 Requires:       gtk-doc-common
43 Conflicts:      gtksourceview-apidocs
44
45 %description apidocs
46 GtkSourceView API documentation.
47
48 %description apidocs -l pl.UTF-8
49 Dokumentacja API GtkSourceView.
50
51 %package devel
52 Summary:        Header files for gtktextview
53 Summary(pl.UTF-8):      Pliki nagłówkowe dla gtktextview
54 Group:          X11/Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       gtk+2-devel >= 2:2.10.9
57 %{?with_gnome:Requires: libgnomeprint-devel >= 2.18.0}
58 Requires:       libxml2-devel >= 1:2.6.27
59
60 %description devel
61 Header files for gtktextview.
62
63 %description devel -l pl.UTF-8
64 Pliki nagłówkowe dla gtktextview.
65
66 %package static
67 Summary:        Static gtksourceview library
68 Summary(pl.UTF-8):      Statyczna biblioteka gtksourceview
69 Group:          Development/Libraries
70 Requires:       %{name}-devel = %{version}-%{release}
71
72 %description static
73 Static gtksourceview library.
74
75 %description static -l pl.UTF-8
76 Statyczna biblioteka gtksourceview.
77
78 %prep
79 %setup -q -n gtksourceview-%{version}
80
81 %build
82 %{__gtkdocize}
83 %{__intltoolize}
84 %{__libtoolize}
85 %{__aclocal}
86 %{__autoconf}
87 %{__automake}
88 %configure \
89         --enable-gtk-doc \
90         --enable-static \
91         --with-html-dir=%{_gtkdocdir}
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 %find_lang gtksourceview-2.0
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files -f gtksourceview-2.0.lang
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libgtksourceview-2.0.so.*.*.*
111 %{_datadir}/gtksourceview-2.0
112
113 %files apidocs
114 %defattr(644,root,root,755)
115 %{_gtkdocdir}/gtksourceview
116
117 %files devel
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libgtksourceview-2.0.so
120 %{_libdir}/libgtksourceview-2.0.la
121 %{_includedir}/gtksourceview-2.0
122 %{_pkgconfigdir}/gtksourceview-2.0.pc
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libgtksourceview-2.0.a
This page took 0.044055 seconds and 4 git commands to generate.