]> git.pld-linux.org Git - packages/gtksourceview.git/blame - gtksourceview.spec
- added -build-fix.patch
[packages/gtksourceview.git] / gtksourceview.spec
CommitLineData
e5b7e525
JB
1#
2# Conditional build:
3%bcond_without gnome # disable gnomeprint support, don't build tests
4#
3767ca08 5Summary: Text widget that extends the standard GTK+ 2.x
cca6c4a0 6Summary(pl.UTF-8): Widget tekstowy rozszerzający standardowy z GTK+ 2.x
eadd4641 7Name: gtksourceview
ac5fb000 8Version: 1.8.5
c4b3b8d8 9Release: 4
0cb4ff82 10License: GPL v2+
dafc1bdd 11Group: X11/Libraries
92dcc6b4 12Source0: http://ftp.gnome.org/pub/gnome/sources/gtksourceview/1.8/%{name}-%{version}.tar.bz2
ac5fb000 13# Source0-md5: de67df2944c1cccbc2d0b4a738e11050
e5b7e525 14Patch0: %{name}-nognome.patch
c4b3b8d8 15Patch1: %{name}-build-fix.patch
eadd4641 16URL: http://www.gnome.org/
5bc34b98 17BuildRequires: autoconf >= 2.53
66662f6b 18BuildRequires: automake
799d1226 19BuildRequires: gnome-common >= 2.12.0
e5b7e525 20%{?with_gnome:BuildRequires: gnome-vfs2-devel >= 2.17.91}
ac5fb000 21BuildRequires: gtk+2-devel >= 2:2.10.9
8e002384 22BuildRequires: gtk-doc >= 1.8
ac5fb000 23BuildRequires: intltool >= 0.35.5
e5b7e525 24%{?with_gnome:BuildRequires: libgnomeprintui-devel >= 2.17.92}
12009165 25BuildRequires: libtool
43cc863f 26BuildRequires: libxml2-devel >= 1:2.6.27
aa22c0ff 27# sr@Latn vs. sr@latin
28Conflicts: glibc-misc < 6:2.7
eadd4641 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
3767ca08 32GtkSourceView is a text widget that extends the standard GTK+ 2.x text
eadd4641 33widget GtkTextView. It improves GtkTextView by implementing syntax
34highlighting and other features typical of a source editor.
35
8a24753f
JR
36%description -l pl.UTF-8
37GtkSourceView to widget tekstowy rozszerzający standardowy widget
3767ca08 38tekstowy GtkTextView z GTK+ 2.x. Ulepsza GtkTextView poprzez
8a24753f
JR
39zaimplementowanie podświetlania składni i innych możliwości typowych
40dla edytora źródeł.
dafc1bdd 41
43cc863f
MB
42%package apidocs
43Summary: GtkSourceView API documentation
cca6c4a0 44Summary(pl.UTF-8): Dokumentacja API GtkSourceView
43cc863f
MB
45Group: Documentation
46Requires: gtk-doc-common
47
48%description apidocs
49GtkSourceView API documentation.
50
8a24753f 51%description apidocs -l pl.UTF-8
43cc863f
MB
52Dokumentacja API GtkSourceView.
53
eadd4641 54%package devel
55Summary: Header files for gtktextview
cca6c4a0 56Summary(pl.UTF-8): Pliki nagłówkowe dla gtktextview
dafc1bdd 57Group: X11/Development/Libraries
12009165 58Requires: %{name} = %{version}-%{release}
ac5fb000 59Requires: gtk+2-devel >= 2:2.10.9
e5b7e525 60%{?with_gnome:Requires: libgnomeprint-devel >= 2.17.92}
43cc863f 61Requires: libxml2-devel >= 1:2.6.27
eadd4641 62
63%description devel
dafc1bdd
JB
64Header files for gtktextview.
65
8a24753f
JR
66%description devel -l pl.UTF-8
67Pliki nagłówkowe dla gtktextview.
eadd4641 68
12009165 69%package static
70Summary: Static gtksourceview library
cca6c4a0 71Summary(pl.UTF-8): Statyczna biblioteka gtksourceview
12009165 72Group: Development/Libraries
73Requires: %{name}-devel = %{version}-%{release}
74
75%description static
76Static gtksourceview library.
77
8a24753f 78%description static -l pl.UTF-8
12009165 79Statyczna 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
101rm -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
110rm -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
This page took 0.094005 seconds and 4 git commands to generate.