]>
Commit | Line | Data |
---|---|---|
896eb13d MB |
1 | # |
2 | # Conditional build: | |
44df7ec3 | 3 | %bcond_with glade # install glade catalog |
f5853990 | 4 | %bcond_without vala # do not build Vala API |
4564cf84 | 5 | |
44df7ec3 AF |
6 | Summary: Text widget that extends the standard GTK+ 3.x |
7 | Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 3.x | |
8 | Name: gtksourceview3 | |
cdd4b80b MB |
9 | Version: 3.20.1 |
10 | Release: 1 | |
2a83e144 | 11 | License: LGPL v2+ (library), GPL v2+ (some language specs files) |
44df7ec3 | 12 | Group: X11/Libraries |
ede2878d | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/3.20/gtksourceview-%{version}.tar.xz |
cdd4b80b | 14 | # Source0-md5: a1764b012368c907cf203fd2cefb4565 |
44df7ec3 AF |
15 | URL: http://www.gnome.org/ |
16 | BuildRequires: autoconf >= 2.64 | |
d5fd6af8 | 17 | BuildRequires: autoconf-archive >= 2015.09.25 |
1be8ea61 | 18 | BuildRequires: automake >= 1:1.13 |
44df7ec3 | 19 | BuildRequires: docbook-dtd412-xml |
ede2878d | 20 | BuildRequires: gettext-tools >= 0.19.4 |
0b911454 | 21 | BuildRequires: glib2-devel >= 1:2.48.0 |
44df7ec3 | 22 | BuildRequires: gnome-common >= 2.24.0 |
ad61f4ae | 23 | BuildRequires: gobject-introspection-devel >= 1.42.0 |
0b911454 | 24 | BuildRequires: gtk+3-devel >= 3.20.0 |
ede2878d | 25 | BuildRequires: gtk-doc >= 1.25 |
0b911454 | 26 | BuildRequires: itstool |
44df7ec3 | 27 | %if %{with glade} |
a4f31e42 | 28 | BuildRequires: libgladeui-devel >= 3.9.0 |
44df7ec3 | 29 | %endif |
896eb13d | 30 | BuildRequires: libtool >= 2:2.2.6 |
44df7ec3 AF |
31 | BuildRequires: libxml2-devel >= 1:2.6.31 |
32 | BuildRequires: pkgconfig | |
33 | BuildRequires: rpm-pythonprov | |
67ae3529 | 34 | BuildRequires: tar >= 1:1.22 |
f5853990 | 35 | BuildRequires: vala |
67ae3529 | 36 | BuildRequires: xz |
ede2878d MB |
37 | Requires: glib2 >= 1:2.48.0 |
38 | Requires: gtk+3 >= 3.20.0 | |
6a1741b2 | 39 | Requires: libxml2 >= 1:2.6.31 |
44df7ec3 AF |
40 | # sr@Latn vs. sr@latin |
41 | Conflicts: glibc-misc < 6:2.7 | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | GtkSourceView is a text widget that extends the standard GTK+ 3.x text | |
46 | widget GtkTextView. It improves GtkTextView by implementing syntax | |
47 | highlighting and other features typical of a source editor. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | GtkSourceView to widget tekstowy rozszerzający standardowy widget | |
51 | tekstowy GtkTextView z GTK+ 3.x. Ulepsza GtkTextView poprzez | |
52 | zaimplementowanie podświetlania składni i innych możliwości typowych | |
53 | dla edytora źródeł. | |
54 | ||
55 | %package apidocs | |
56 | Summary: GtkSourceView API documentation | |
57 | Summary(pl.UTF-8): Dokumentacja API GtkSourceView | |
58 | Group: Documentation | |
59 | Requires: gtk-doc-common | |
44df7ec3 AF |
60 | |
61 | %description apidocs | |
62 | GtkSourceView API documentation. | |
63 | ||
64 | %description apidocs -l pl.UTF-8 | |
65 | Dokumentacja API GtkSourceView. | |
66 | ||
67 | %package devel | |
68 | Summary: Header files for GtkSourceView | |
69 | Summary(pl.UTF-8): Pliki nagłówkowe dla GtkSourceView | |
70 | Group: X11/Development/Libraries | |
71 | Requires: %{name} = %{version}-%{release} | |
ede2878d MB |
72 | Requires: glib2-devel >= 1:2.48.0 |
73 | Requires: gtk+3-devel >= 3.20.0 | |
44df7ec3 AF |
74 | Requires: libxml2-devel >= 1:2.6.31 |
75 | ||
76 | %description devel | |
77 | Header files for GtkSourceView. | |
78 | ||
79 | %description devel -l pl.UTF-8 | |
80 | Pliki nagłówkowe dla GtkSourceView. | |
81 | ||
82 | %package static | |
83 | Summary: Static GtkSourceView library | |
84 | Summary(pl.UTF-8): Statyczna biblioteka GtkSourceView | |
85 | Group: X11/Development/Libraries | |
86 | Requires: %{name}-devel = %{version}-%{release} | |
87 | ||
88 | %description static | |
89 | Static GtkSourceView library. | |
90 | ||
91 | %description static -l pl.UTF-8 | |
92 | Statyczna biblioteka GtkSourceView. | |
93 | ||
94 | %package -n glade3-gtksourceview | |
95 | Summary: Glade3 catalog entry for GtkSourceView library | |
2a83e144 | 96 | Summary(pl.UTF-8): Wpis katalogu Glade3 dla biblioteki GtkSourceView |
44df7ec3 AF |
97 | Group: X11/Development/Libraries |
98 | Requires: %{name}-devel = %{version}-%{release} | |
2a83e144 | 99 | Requires: libgladeui >= 3.9.0 |
44df7ec3 AF |
100 | |
101 | %description -n glade3-gtksourceview | |
102 | Glade3 catalog entry for GtkSourceView library. | |
103 | ||
2a83e144 JB |
104 | %description -n glade3-gtksourceview -l pl.UTF-8 |
105 | Wpis katalogu Glade3 dla biblioteki GtkSourceView. | |
106 | ||
f5853990 MB |
107 | %package -n vala-gtksourceview |
108 | Summary: GtkSourceView API for Vala language | |
109 | Summary(pl.UTF-8): API GtkSourceView dla języka Vala | |
110 | Group: Development/Libraries | |
111 | Requires: %{name}-devel = %{version}-%{release} | |
112 | Requires: vala | |
4564cf84 ER |
113 | %if "%{_rpmversion}" >= "5" |
114 | BuildArch: noarch | |
115 | %endif | |
f5853990 MB |
116 | |
117 | %description -n vala-gtksourceview | |
118 | GtkSourceView API for Vala language. | |
119 | ||
120 | %description -n vala-gtksourceview -l pl.UTF-8 | |
121 | API GtkSourceView dla języka Vala. | |
122 | ||
44df7ec3 AF |
123 | %prep |
124 | %setup -q -n gtksourceview-%{version} | |
44df7ec3 | 125 | |
d5fd6af8 JB |
126 | # force new version from autoconf-archive (original one uses non-POSIX ${V:N} syntax) |
127 | %{__rm} m4/ax_compiler_flags_cflags.m4 | |
128 | ||
44df7ec3 AF |
129 | %build |
130 | %{__gtkdocize} | |
44df7ec3 | 131 | %{__libtoolize} |
d5fd6af8 | 132 | %{__aclocal} -I m4 |
44df7ec3 AF |
133 | %{__autoconf} |
134 | %{__autoheader} | |
135 | %{__automake} | |
136 | %configure \ | |
44df7ec3 | 137 | %{__enable glade glade-catalog} \ |
2a83e144 | 138 | --enable-gtk-doc \ |
44df7ec3 | 139 | --enable-providers \ |
2a83e144 JB |
140 | --disable-silent-rules \ |
141 | --enable-static \ | |
142 | --with-html-dir=%{_gtkdocdir} | |
44df7ec3 AF |
143 | %{__make} |
144 | ||
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %{__make} install \ | |
149 | DESTDIR=$RPM_BUILD_ROOT | |
150 | ||
e40ce944 AF |
151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
152 | ||
44df7ec3 AF |
153 | %find_lang gtksourceview-3.0 |
154 | ||
155 | %clean | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %post -p /sbin/ldconfig | |
159 | %postun -p /sbin/ldconfig | |
160 | ||
161 | %files -f gtksourceview-3.0.lang | |
162 | %defattr(644,root,root,755) | |
163 | %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so.*.*.* | |
792e5866 | 164 | %attr(755,root,root) %ghost %{_libdir}/libgtksourceview-3.0.so.1 |
44df7ec3 AF |
165 | %{_datadir}/gtksourceview-3.0 |
166 | %{_libdir}/girepository-1.0/GtkSource-3.0.typelib | |
167 | ||
168 | %files apidocs | |
169 | %defattr(644,root,root,755) | |
170 | %{_gtkdocdir}/gtksourceview-3.0 | |
171 | ||
172 | %files devel | |
173 | %defattr(644,root,root,755) | |
174 | %attr(755,root,root) %{_libdir}/libgtksourceview-3.0.so | |
44df7ec3 AF |
175 | %{_includedir}/gtksourceview-3.0 |
176 | %{_pkgconfigdir}/gtksourceview-3.0.pc | |
177 | %{_datadir}/gir-1.0/GtkSource-3.0.gir | |
178 | ||
179 | %files static | |
180 | %defattr(644,root,root,755) | |
181 | %{_libdir}/libgtksourceview-3.0.a | |
182 | ||
183 | %if %{with glade} | |
184 | %files -n glade3-gtksourceview | |
185 | %defattr(644,root,root,755) | |
186 | %{_datadir}/glade3/catalogs/gtksourceview.xml | |
187 | %endif | |
f5853990 MB |
188 | |
189 | %if %{with vala} | |
190 | %files -n vala-gtksourceview | |
191 | %defattr(644,root,root,755) | |
192 | %{_datadir}/vala/vapi/gtksourceview-3.0.deps | |
193 | %{_datadir}/vala/vapi/gtksourceview-3.0.vapi | |
194 | %endif |