]> git.pld-linux.org Git - packages/gtksourceview.git/blob - gtksourceview.spec
6333a86af5441b6f2319069cc26262ead0ea66aa
[packages/gtksourceview.git] / gtksourceview.spec
1 #
2 # Conditional build:
3 %bcond_without  gnome   # disable gnomeprint support, don't build tests
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:           gtksourceview
8 Version:        1.8.5
9 Release:        3
10 License:        GPL v2+
11 Group:          X11/Libraries
12 Source0:        http://ftp.gnome.org/pub/gnome/sources/gtksourceview/1.8/%{name}-%{version}.tar.bz2
13 # Source0-md5:  de67df2944c1cccbc2d0b4a738e11050
14 Patch0:         %{name}-nognome.patch
15 URL:            http://www.gnome.org/
16 BuildRequires:  autoconf >= 2.53
17 BuildRequires:  automake
18 BuildRequires:  gnome-common >= 2.12.0
19 %{?with_gnome:BuildRequires:    gnome-vfs2-devel >= 2.17.91}
20 BuildRequires:  gtk+2-devel >= 2:2.10.9
21 BuildRequires:  gtk-doc >= 1.8
22 BuildRequires:  intltool >= 0.35.5
23 %{?with_gnome:BuildRequires:    libgnomeprintui-devel >= 2.17.92}
24 BuildRequires:  libtool
25 BuildRequires:  libxml2-devel >= 1:2.6.27
26 # sr@Latn vs. sr@latin
27 Conflicts:      glibc-misc < 6:2.7
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 GtkSourceView is a text widget that extends the standard GTK+ 2.x text
32 widget GtkTextView. It improves GtkTextView by implementing syntax
33 highlighting and other features typical of a source editor.
34
35 %description -l pl.UTF-8
36 GtkSourceView to widget tekstowy rozszerzający standardowy widget
37 tekstowy GtkTextView z GTK+ 2.x. Ulepsza GtkTextView poprzez
38 zaimplementowanie podświetlania składni i innych możliwości typowych
39 dla edytora źródeł.
40
41 %package apidocs
42 Summary:        GtkSourceView API documentation
43 Summary(pl.UTF-8):      Dokumentacja API GtkSourceView
44 Group:          Documentation
45 Requires:       gtk-doc-common
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.10.9
59 %{?with_gnome:Requires: libgnomeprint-devel >= 2.17.92}
60 Requires:       libxml2-devel >= 1:2.6.27
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
82 %{!?with_gnome:%patch0 -p1}
83
84 %build
85 %{__gtkdocize}
86 %{__intltoolize}
87 %{__libtoolize}
88 %{__aclocal}
89 %{__autoconf}
90 %{__automake}
91 %configure \
92         %{!?with_gnome:--disable-gnomeprint} \
93         --enable-gtk-doc \
94         --enable-static \
95         --with-html-dir=%{_gtkdocdir}
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
104         mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
105 %find_lang %{name}-1.0
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files -f %{name}-1.0.lang
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libgtksourceview-1.0.so.*.*.*
116 %{_datadir}/%{name}-1.0
117
118 %files apidocs
119 %defattr(644,root,root,755)
120 %{_gtkdocdir}/%{name}
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libgtksourceview-1.0.so
125 %{_libdir}/libgtksourceview-1.0.la
126 %{_includedir}/%{name}-1.0
127 %{_pkgconfigdir}/gtksourceview-1.0.pc
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libgtksourceview-1.0.a
This page took 0.050688 seconds and 2 git commands to generate.