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