]> git.pld-linux.org Git - packages/libgnomecanvas.git/blob - libgnomecanvas.spec
- apidocs bcond
[packages/libgnomecanvas.git] / libgnomecanvas.spec
1
2 %bcond_without apidocs  #disable gtk-doc
3
4 Summary:        GnomeCanvas widget
5 Summary(pl):    Widget GnomeCanvas
6 Name:           libgnomecanvas
7 Version:        2.12.0
8 Release:        1
9 License:        LGPL
10 Group:          X11/Libraries
11 Source0:        http://ftp.gnome.org/pub/gnome/sources/libgnomecanvas/2.12/%{name}-%{version}.tar.bz2
12 # Source0-md5:  62c0edd3d27803d341662fd9088b2d9b
13 URL:            http://www.gnome.org/
14 BuildRequires:  autoconf >= 2.54
15 BuildRequires:  automake
16 BuildRequires:  gettext-devel
17 BuildRequires:  gnome-common >= 2.8.0
18 BuildRequires:  gtk+2-devel >= 2:2.8.3
19 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.3}
20 BuildRequires:  gtk-doc-automake >= 1.3
21 BuildRequires:  libart_lgpl-devel >= 2.3.14
22 BuildRequires:  libglade2-devel >= 1:2.5.0
23 BuildRequires:  libtool
24 BuildRequires:  perl-base >= 5.002
25 BuildRequires:  pkgconfig
26 BuildRequires:  rpmbuild(macros) >= 1.197
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 The canvas widget allows you to create custom displays using stock
31 items such as circles, lines, text, and so on. It was originally a
32 port of the Tk canvas widget but has evolved quite a bit over time.
33
34 %description -l pl
35 Widget canvas pozwala tworzyæ w³asne widoki przy u¿yciu zgromadzonych
36 rzeczy takich jak ko³a, linie, tekst itp. Oryginalnie by³ to port
37 widgetu Tk canvas, ale od tamtego czasu nieco wyewoluowa³.
38
39 %package devel
40 Summary:        libgnomecanvas header files
41 Summary(pl):    Pliki nag³ówkowe libgnomecanvas
42 Group:          X11/Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       gtk+2-devel >= 2:2.8.3
45 Requires:       gtk-doc-common
46 Requires:       libart_lgpl-devel >= 2.3.14
47 Requires:       libglade2-devel >= 1:2.5.0
48
49 %description devel
50 Development part of libgnomecanvas - header files.
51
52 %description devel -l pl
53 Czê¶æ libgnomecanvas dla programistów - pliki nag³ówkowe.
54
55 %package static
56 Summary:        Static libgnomecanvas library
57 Summary(pl):    Statyczna biblioteka libgnomecanvas
58 Group:          X11/Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static version of libgnomecanvas library.
63
64 %description static -l pl
65 Statyczna wersja biblioteki libgnomecanvas.
66
67 %prep
68 %setup -q
69
70 %build
71 %{__libtoolize}
72 %{__aclocal}
73 %{__autoconf}
74 %{__automake}
75 %configure \
76         %{?with_apidocs:--enable-gtk-doc} \
77         --with-html-dir=%{_gtkdocdir}
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 # no static modules and *.la for glade modules
87 rm -f $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.{la,a}
88
89 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
90
91 %find_lang %{name} --with-gnome --all-name
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files -f %{name}.lang
100 %defattr(644,root,root,755)
101 %doc AUTHORS ChangeLog NEWS README
102 %attr(755,root,root) %{_libdir}/lib*.so.*.*
103 %attr(755,root,root) %{_libdir}/libglade/2.0/libcanvas.so
104
105 %files devel
106 %defattr(644,root,root,755)
107 %{_gtkdocdir}/*
108 %{_includedir}/libgnomecanvas-2.0
109 %attr(755,root,root) %{_libdir}/lib*.so
110 %{_libdir}/lib*.la
111 %{_pkgconfigdir}/*.pc
112
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/lib*.a
This page took 0.071227 seconds and 4 git commands to generate.