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