]>
Commit | Line | Data |
---|---|---|
44df7ec3 AF |
1 | # bconds: |
2 | %bcond_with glade # install glade catalog | |
3 | # | |
4 | Summary: Text widget that extends the standard GTK+ 3.x | |
5 | Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 3.x | |
6 | Name: gtksourceview3 | |
e40ce944 | 7 | Version: 2.91.5 |
44df7ec3 AF |
8 | Release: 1 |
9 | License: GPL v2+ and LGPL v2+ | |
10 | Group: X11/Libraries | |
11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/2.91/gtksourceview-%{version}.tar.bz2 | |
e40ce944 | 12 | # Source0-md5: 3b3a217e8ddad65b4f2ca8e4497964ff |
44df7ec3 AF |
13 | URL: http://www.gnome.org/ |
14 | BuildRequires: autoconf >= 2.64 | |
15 | BuildRequires: automake >= 1:1.10.3 | |
16 | BuildRequires: docbook-dtd412-xml | |
17 | BuildRequires: gettext-devel >= 0.17 | |
18 | BuildRequires: gnome-common >= 2.24.0 | |
19 | BuildRequires: gobject-introspection-devel >= 0.9.0 | |
e40ce944 | 20 | BuildRequires: gtk+3-devel >= 3.0.0 |
44df7ec3 AF |
21 | BuildRequires: gtk-doc >= 1.11 |
22 | BuildRequires: intltool >= 0.40.0 | |
23 | %if %{with glade} | |
24 | BuildRequires: libgladeui-devel >= 3.2.0 | |
25 | %endif | |
26 | BuildRequires: libtool >= 2.2.6 | |
27 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
28 | BuildRequires: pkgconfig | |
29 | BuildRequires: rpm-pythonprov | |
30 | Requires: glib2 >= 1:2.24 | |
31 | # sr@Latn vs. sr@latin | |
32 | Conflicts: glibc-misc < 6:2.7 | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | GtkSourceView is a text widget that extends the standard GTK+ 3.x text | |
37 | widget GtkTextView. It improves GtkTextView by implementing syntax | |
38 | highlighting and other features typical of a source editor. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | GtkSourceView to widget tekstowy rozszerzający standardowy widget | |
42 | tekstowy GtkTextView z GTK+ 3.x. Ulepsza GtkTextView poprzez | |
43 | zaimplementowanie podświetlania składni i innych możliwości typowych | |
44 | dla edytora źródeł. | |
45 | ||
46 | %package apidocs | |
47 | Summary: GtkSourceView API documentation | |
48 | Summary(pl.UTF-8): Dokumentacja API GtkSourceView | |
49 | Group: Documentation | |
50 | Requires: gtk-doc-common | |
51 | Conflicts: gtksourceview-apidocs | |
52 | ||
53 | %description apidocs | |
54 | GtkSourceView API documentation. | |
55 | ||
56 | %description apidocs -l pl.UTF-8 | |
57 | Dokumentacja API GtkSourceView. | |
58 | ||
59 | %package devel | |
60 | Summary: Header files for GtkSourceView | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView | |
62 | Group: X11/Development/Libraries | |
63 | Requires: %{name} = %{version}-%{release} | |
e40ce944 | 64 | Requires: gtk+3-devel >= 3.0.0 |
44df7ec3 AF |
65 | Requires: libxml2-devel >= 1:2.6.31 |
66 | ||
67 | %description devel | |
68 | Header files for GtkSourceView. | |
69 | ||
70 | %description devel -l pl.UTF-8 | |
71 | Pliki nagłówkowe dla GtkSourceView. | |
72 | ||
73 | %package static | |
74 | Summary: Static GtkSourceView library | |
75 | Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView | |
76 | Group: X11/Development/Libraries | |
77 | Requires: %{name}-devel = %{version}-%{release} | |
78 | ||
79 | %description static | |
80 | Static GtkSourceView library. | |
81 | ||
82 | %description static -l pl.UTF-8 | |
83 | Statyczna biblioteka GtkSourceView. | |
84 | ||
85 | %package -n glade3-gtksourceview | |
86 | Summary: Glade3 catalog entry for GtkSourceView library | |
87 | Group: X11/Development/Libraries | |
88 | Requires: %{name}-devel = %{version}-%{release} | |
89 | ||
90 | %description -n glade3-gtksourceview | |
91 | Glade3 catalog entry for GtkSourceView library. | |
92 | ||
93 | %prep | |
94 | %setup -q -n gtksourceview-%{version} | |
e40ce944 AF |
95 | sed -i "s#^en@shaw##" po/LINGUAS |
96 | %{__rm} po/en@shaw.po | |
44df7ec3 AF |
97 | |
98 | %build | |
99 | %{__gtkdocize} | |
100 | %{__intltoolize} | |
101 | %{__libtoolize} | |
102 | %{__aclocal} | |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
106 | %configure \ | |
107 | --enable-gtk-doc \ | |
108 | --enable-static \ | |
109 | --with-html-dir=%{_gtkdocdir} \ | |
110 | %{__enable glade glade-catalog} \ | |
111 | --enable-providers \ | |
112 | --disable-silent-rules | |
113 | %{__make} | |
114 | ||
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %{__make} install \ | |
119 | DESTDIR=$RPM_BUILD_ROOT | |
120 | ||
e40ce944 AF |
121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
122 | ||
44df7ec3 AF |
123 | %find_lang gtksourceview-3.0 |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post -p /sbin/ldconfig | |
129 | %postun -p /sbin/ldconfig | |
130 | ||
131 | %files -f gtksourceview-3.0.lang | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so.*.*.* | |
134 | %attr(755,root,root) %ghost %{_libdir}/libgtksourceview-3.0.so.0 | |
135 | %{_datadir}/gtksourceview-3.0 | |
136 | %{_libdir}/girepository-1.0/GtkSource-3.0.typelib | |
137 | ||
138 | %files apidocs | |
139 | %defattr(644,root,root,755) | |
140 | %{_gtkdocdir}/gtksourceview-3.0 | |
141 | ||
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so | |
44df7ec3 AF |
145 | %{_includedir}/gtksourceview-3.0 |
146 | %{_pkgconfigdir}/gtksourceview-3.0.pc | |
147 | %{_datadir}/gir-1.0/GtkSource-3.0.gir | |
148 | ||
149 | %files static | |
150 | %defattr(644,root,root,755) | |
151 | %{_libdir}/libgtksourceview-3.0.a | |
152 | ||
153 | %if %{with glade} | |
154 | %files -n glade3-gtksourceview | |
155 | %defattr(644,root,root,755) | |
156 | %{_datadir}/glade3/catalogs/gtksourceview.xml | |
157 | %endif |