]> git.pld-linux.org Git - packages/gtksourceview2.git/blob - gtksourceview2.spec
- updated to 2.0.2
[packages/gtksourceview2.git] / gtksourceview2.spec
1 #
2 # Conditional build:
3 %bcond_without  gnome   # disable gnomeprint support
4 #
5 Summary:        Text widget that extends the standard GTK+ 2.x
6 Summary(pl.UTF-8):      Widget tekstowy rozszerzający standardowy z GTK+ 2.x
7 Name:           gtksourceview2
8 Version:        2.0.2
9 Release:        1
10 License:        GPL v2+
11 Group:          X11/Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/2.0/gtksourceview-%{version}.tar.bz2
13 # Source0-md5:  8a9daf3fa9ddeed92c18572ee16cd1f5
14 URL:            http://www.gnome.org/
15 BuildRequires:  autoconf >= 2.53
16 BuildRequires:  automake >= 1:1.8
17 BuildRequires:  gnome-common >= 2.20.0
18 BuildRequires:  gtk+2-devel >= 2:2.12.0
19 BuildRequires:  gtk-doc >= 1.8
20 BuildRequires:  intltool >= 0.36.1
21 %{?with_gnome:BuildRequires:    libgnomeprint-devel >= 2.18.0}
22 BuildRequires:  libtool
23 BuildRequires:  libxml2-devel >= 1:2.6.30
24 BuildRequires:  pkgconfig
25 # sr@Latn vs. sr@latin
26 Conflicts:      glibc-misc < 6:2.7
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 GtkSourceView is a text widget that extends the standard GTK+ 2.x text
31 widget GtkTextView. It improves GtkTextView by implementing syntax
32 highlighting and other features typical of a source editor.
33
34 %description -l pl.UTF-8
35 GtkSourceView to widget tekstowy rozszerzający standardowy widget
36 tekstowy GtkTextView z GTK+ 2.x. Ulepsza GtkTextView poprzez
37 zaimplementowanie podświetlania składni i innych możliwości typowych
38 dla edytora źródeł.
39
40 %package apidocs
41 Summary:        GtkSourceView API documentation
42 Summary(pl.UTF-8):      Dokumentacja API GtkSourceView
43 Group:          Documentation
44 Requires:       gtk-doc-common
45 Conflicts:      gtksourceview-apidocs
46
47 %description apidocs
48 GtkSourceView API documentation.
49
50 %description apidocs -l pl.UTF-8
51 Dokumentacja API GtkSourceView.
52
53 %package devel
54 Summary:        Header files for gtktextview
55 Summary(pl.UTF-8):      Pliki nagłówkowe dla gtktextview
56 Group:          X11/Development/Libraries
57 Requires:       %{name} = %{version}-%{release}
58 Requires:       gtk+2-devel >= 2:2.12.0
59 %{?with_gnome:Requires: libgnomeprint-devel >= 2.18.0}
60 Requires:       libxml2-devel >= 1:2.6.30
61
62 %description devel
63 Header files for gtktextview.
64
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe dla gtktextview.
67
68 %package static
69 Summary:        Static gtksourceview library
70 Summary(pl.UTF-8):      Statyczna biblioteka gtksourceview
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 Static gtksourceview library.
76
77 %description static -l pl.UTF-8
78 Statyczna biblioteka gtksourceview.
79
80 %prep
81 %setup -q -n gtksourceview-%{version}
82
83 %build
84 %{__gtkdocize}
85 %{__intltoolize}
86 %{__libtoolize}
87 %{__aclocal}
88 %{__autoconf}
89 %{__automake}
90 %configure \
91         --enable-gtk-doc \
92         --enable-static \
93         --with-html-dir=%{_gtkdocdir}
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
103         mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
104 %find_lang gtksourceview-2.0
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files -f gtksourceview-2.0.lang
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libgtksourceview-2.0.so.*.*.*
115 %{_datadir}/gtksourceview-2.0
116
117 %files apidocs
118 %defattr(644,root,root,755)
119 %{_gtkdocdir}/gtksourceview-2.0
120
121 %files devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libgtksourceview-2.0.so
124 %{_libdir}/libgtksourceview-2.0.la
125 %{_includedir}/gtksourceview-2.0
126 %{_pkgconfigdir}/gtksourceview-2.0.pc
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/libgtksourceview-2.0.a
This page took 0.084457 seconds and 4 git commands to generate.