]>
Commit | Line | Data |
---|---|---|
e5b7e525 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gnome # disable gnomeprint support, don't build tests | |
4 | # | |
3767ca08 | 5 | Summary: Text widget that extends the standard GTK+ 2.x |
cca6c4a0 | 6 | Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 2.x |
eadd4641 | 7 | Name: gtksourceview |
ac5fb000 | 8 | Version: 1.8.5 |
c4b3b8d8 | 9 | Release: 4 |
0cb4ff82 | 10 | License: GPL v2+ |
dafc1bdd | 11 | Group: X11/Libraries |
92dcc6b4 | 12 | Source0: http://ftp.gnome.org/pub/gnome/sources/gtksourceview/1.8/%{name}-%{version}.tar.bz2 |
ac5fb000 | 13 | # Source0-md5: de67df2944c1cccbc2d0b4a738e11050 |
e5b7e525 | 14 | Patch0: %{name}-nognome.patch |
c4b3b8d8 | 15 | Patch1: %{name}-build-fix.patch |
eadd4641 | 16 | URL: http://www.gnome.org/ |
5bc34b98 | 17 | BuildRequires: autoconf >= 2.53 |
66662f6b | 18 | BuildRequires: automake |
799d1226 | 19 | BuildRequires: gnome-common >= 2.12.0 |
e5b7e525 | 20 | %{?with_gnome:BuildRequires: gnome-vfs2-devel >= 2.17.91} |
ac5fb000 | 21 | BuildRequires: gtk+2-devel >= 2:2.10.9 |
8e002384 | 22 | BuildRequires: gtk-doc >= 1.8 |
ac5fb000 | 23 | BuildRequires: intltool >= 0.35.5 |
e5b7e525 | 24 | %{?with_gnome:BuildRequires: libgnomeprintui-devel >= 2.17.92} |
12009165 | 25 | BuildRequires: libtool |
43cc863f | 26 | BuildRequires: libxml2-devel >= 1:2.6.27 |
aa22c0ff | 27 | # sr@Latn vs. sr@latin |
28 | Conflicts: glibc-misc < 6:2.7 | |
eadd4641 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
3767ca08 | 32 | GtkSourceView is a text widget that extends the standard GTK+ 2.x text |
eadd4641 | 33 | widget GtkTextView. It improves GtkTextView by implementing syntax |
34 | highlighting and other features typical of a source editor. | |
35 | ||
8a24753f JR |
36 | %description -l pl.UTF-8 |
37 | GtkSourceView to widget tekstowy rozszerzający standardowy widget | |
3767ca08 | 38 | tekstowy GtkTextView z GTK+ 2.x. Ulepsza GtkTextView poprzez |
8a24753f JR |
39 | zaimplementowanie podświetlania składni i innych możliwości typowych |
40 | dla edytora źródeł. | |
dafc1bdd | 41 | |
43cc863f MB |
42 | %package apidocs |
43 | Summary: GtkSourceView API documentation | |
cca6c4a0 | 44 | Summary(pl.UTF-8): Dokumentacja API GtkSourceView |
43cc863f MB |
45 | Group: Documentation |
46 | Requires: gtk-doc-common | |
47 | ||
48 | %description apidocs | |
49 | GtkSourceView API documentation. | |
50 | ||
8a24753f | 51 | %description apidocs -l pl.UTF-8 |
43cc863f MB |
52 | Dokumentacja API GtkSourceView. |
53 | ||
eadd4641 | 54 | %package devel |
55 | Summary: Header files for gtktextview | |
cca6c4a0 | 56 | Summary(pl.UTF-8): Pliki nagłówkowe dla gtktextview |
dafc1bdd | 57 | Group: X11/Development/Libraries |
12009165 | 58 | Requires: %{name} = %{version}-%{release} |
ac5fb000 | 59 | Requires: gtk+2-devel >= 2:2.10.9 |
e5b7e525 | 60 | %{?with_gnome:Requires: libgnomeprint-devel >= 2.17.92} |
43cc863f | 61 | Requires: libxml2-devel >= 1:2.6.27 |
eadd4641 | 62 | |
63 | %description devel | |
dafc1bdd JB |
64 | Header files for gtktextview. |
65 | ||
8a24753f JR |
66 | %description devel -l pl.UTF-8 |
67 | Pliki nagłówkowe dla gtktextview. | |
eadd4641 | 68 | |
12009165 | 69 | %package static |
70 | Summary: Static gtksourceview library | |
cca6c4a0 | 71 | Summary(pl.UTF-8): Statyczna biblioteka gtksourceview |
12009165 | 72 | Group: Development/Libraries |
73 | Requires: %{name}-devel = %{version}-%{release} | |
74 | ||
75 | %description static | |
76 | Static gtksourceview library. | |
77 | ||
8a24753f | 78 | %description static -l pl.UTF-8 |
12009165 | 79 | Statyczna biblioteka gtksourceview. |
80 | ||
eadd4641 | 81 | %prep |
82 | %setup -q | |
8f83e140 | 83 | %{!?with_gnome:%patch0 -p1} |
c4b3b8d8 | 84 | %patch1 -p1 |
eadd4641 | 85 | |
86 | %build | |
ad22d49f | 87 | %{__gtkdocize} |
7ac6d094 | 88 | %{__intltoolize} |
12009165 | 89 | %{__libtoolize} |
5bc34b98 | 90 | %{__aclocal} |
12009165 | 91 | %{__autoconf} |
92 | %{__automake} | |
844d765b | 93 | %configure \ |
e5b7e525 JB |
94 | %{!?with_gnome:--disable-gnomeprint} \ |
95 | --enable-gtk-doc \ | |
12009165 | 96 | --enable-static \ |
e5b7e525 | 97 | --with-html-dir=%{_gtkdocdir} |
eadd4641 | 98 | %{__make} |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
aa22c0ff | 105 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
106 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
eadd4641 | 107 | %find_lang %{name}-1.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 %{name}-1.0.lang | |
116 | %defattr(644,root,root,755) | |
e5b7e525 | 117 | %attr(755,root,root) %{_libdir}/libgtksourceview-1.0.so.*.*.* |
eadd4641 | 118 | %{_datadir}/%{name}-1.0 |
119 | ||
43cc863f MB |
120 | %files apidocs |
121 | %defattr(644,root,root,755) | |
122 | %{_gtkdocdir}/%{name} | |
123 | ||
eadd4641 | 124 | %files devel |
125 | %defattr(644,root,root,755) | |
e5b7e525 JB |
126 | %attr(755,root,root) %{_libdir}/libgtksourceview-1.0.so |
127 | %{_libdir}/libgtksourceview-1.0.la | |
dafc1bdd | 128 | %{_includedir}/%{name}-1.0 |
e5b7e525 | 129 | %{_pkgconfigdir}/gtksourceview-1.0.pc |
12009165 | 130 | |
131 | %files static | |
132 | %defattr(644,root,root,755) | |
e5b7e525 | 133 | %{_libdir}/libgtksourceview-1.0.a |