]>
Commit | Line | Data |
---|---|---|
d5d0b186 PZ |
1 | Summary: Text widget that extends the standard GTK+ 2.x |
2 | Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 2.x | |
3 | Name: gtksourceview2 | |
a23bf7ff | 4 | Version: 2.10.5 |
fbd81dd4 | 5 | Release: 5 |
9f716b11 | 6 | License: GPL v2+ and LGPL v2+ |
d5d0b186 | 7 | Group: X11/Libraries |
f5816281 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/2.10/gtksourceview-%{version}.tar.bz2 |
a23bf7ff | 9 | # Source0-md5: 1219ad1694df136f126507466aeb41aa |
9c5d0c31 | 10 | URL: https://wiki.gnome.org/Projects/GtkSourceView |
f5816281 MB |
11 | BuildRequires: autoconf >= 2.64 |
12 | BuildRequires: automake >= 1:1.10.3 | |
ea0feac1 | 13 | BuildRequires: docbook-dtd412-xml |
11ae3205 | 14 | BuildRequires: gettext-tools >= 0.17 |
4dd2f88e | 15 | BuildRequires: gnome-common >= 2.24.0 |
d950a196 | 16 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
f5816281 | 17 | BuildRequires: gtk-doc >= 1.11 |
84888df4 JB |
18 | BuildRequires: intltool >= 0.40 |
19 | BuildRequires: libtool >= 2:2.2.6 | |
9f716b11 | 20 | BuildRequires: libxml2-devel >= 1:2.6.31 |
93da476e | 21 | BuildRequires: pkgconfig |
ea0feac1 | 22 | BuildRequires: rpm-pythonprov |
56c1c5d8 | 23 | Requires: glib2 >= 1:2.24 |
22fd88f0 | 24 | # sr@Latn vs. sr@latin |
25 | Conflicts: glibc-misc < 6:2.7 | |
d5d0b186 PZ |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | GtkSourceView is a text widget that extends the standard GTK+ 2.x text | |
30 | widget GtkTextView. It improves GtkTextView by implementing syntax | |
31 | highlighting and other features typical of a source editor. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | GtkSourceView to widget tekstowy rozszerzający standardowy widget | |
35 | tekstowy GtkTextView z GTK+ 2.x. Ulepsza GtkTextView poprzez | |
36 | zaimplementowanie podświetlania składni i innych możliwości typowych | |
37 | dla edytora źródeł. | |
38 | ||
39 | %package apidocs | |
40 | Summary: GtkSourceView API documentation | |
41 | Summary(pl.UTF-8): Dokumentacja API GtkSourceView | |
42 | Group: Documentation | |
43 | Requires: gtk-doc-common | |
93da476e | 44 | Conflicts: gtksourceview-apidocs |
fbd81dd4 ER |
45 | %if "%{_rpmversion}" >= "5" |
46 | BuildArch: noarch | |
47 | %endif | |
d5d0b186 PZ |
48 | |
49 | %description apidocs | |
50 | GtkSourceView API documentation. | |
51 | ||
52 | %description apidocs -l pl.UTF-8 | |
53 | Dokumentacja API GtkSourceView. | |
54 | ||
55 | %package devel | |
9f716b11 MB |
56 | Summary: Header files for GtkSourceView |
57 | Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView | |
d5d0b186 PZ |
58 | Group: X11/Development/Libraries |
59 | Requires: %{name} = %{version}-%{release} | |
d950a196 | 60 | Requires: gtk+2-devel >= 2:2.14.0 |
9f716b11 | 61 | Requires: libxml2-devel >= 1:2.6.31 |
d5d0b186 PZ |
62 | |
63 | %description devel | |
9f716b11 | 64 | Header files for GtkSourceView. |
d5d0b186 PZ |
65 | |
66 | %description devel -l pl.UTF-8 | |
9f716b11 | 67 | Pliki nagłówkowe dla GtkSourceView. |
d5d0b186 PZ |
68 | |
69 | %package static | |
9f716b11 MB |
70 | Summary: Static GtkSourceView library |
71 | Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView | |
72 | Group: X11/Development/Libraries | |
d5d0b186 PZ |
73 | Requires: %{name}-devel = %{version}-%{release} |
74 | ||
75 | %description static | |
9f716b11 | 76 | Static GtkSourceView library. |
d5d0b186 PZ |
77 | |
78 | %description static -l pl.UTF-8 | |
9f716b11 | 79 | Statyczna biblioteka GtkSourceView. |
d5d0b186 PZ |
80 | |
81 | %prep | |
82 | %setup -q -n gtksourceview-%{version} | |
83 | ||
84 | %build | |
85 | %{__gtkdocize} | |
86 | %{__intltoolize} | |
87 | %{__libtoolize} | |
88 | %{__aclocal} | |
89 | %{__autoconf} | |
9f716b11 | 90 | %{__autoheader} |
d5d0b186 PZ |
91 | %{__automake} |
92 | %configure \ | |
84888df4 | 93 | --disable-silent-rules \ |
d5d0b186 PZ |
94 | --enable-gtk-doc \ |
95 | --enable-static \ | |
84888df4 | 96 | --with-html-dir=%{_gtkdocdir} |
d5d0b186 PZ |
97 | %{__make} |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
93da476e | 101 | |
d5d0b186 PZ |
102 | %{__make} install \ |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
e5422980 AF |
105 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgtksourceview-2.0.la |
106 | ||
d5d0b186 PZ |
107 | %find_lang gtksourceview-2.0 |
108 | ||
109 | %clean | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post -p /sbin/ldconfig | |
113 | %postun -p /sbin/ldconfig | |
114 | ||
115 | %files -f gtksourceview-2.0.lang | |
116 | %defattr(644,root,root,755) | |
84888df4 | 117 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
d5d0b186 | 118 | %attr(755,root,root) %{_libdir}/libgtksourceview-2.0.so.*.*.* |
9f716b11 | 119 | %attr(755,root,root) %ghost %{_libdir}/libgtksourceview-2.0.so.0 |
d5d0b186 PZ |
120 | %{_datadir}/gtksourceview-2.0 |
121 | ||
122 | %files apidocs | |
123 | %defattr(644,root,root,755) | |
04f61f85 | 124 | %{_gtkdocdir}/gtksourceview-2.0 |
d5d0b186 PZ |
125 | |
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_libdir}/libgtksourceview-2.0.so | |
d5d0b186 PZ |
129 | %{_includedir}/gtksourceview-2.0 |
130 | %{_pkgconfigdir}/gtksourceview-2.0.pc | |
131 | ||
132 | %files static | |
133 | %defattr(644,root,root,755) | |
134 | %{_libdir}/libgtksourceview-2.0.a |