]> git.pld-linux.org Git - packages/libbonoboui.git/blob - libbonoboui.spec
5f5e153a0d16c98ea93f2053358de4d1556e7533
[packages/libbonoboui.git] / libbonoboui.spec
1 #
2 # Conditional build:
3 %bcond_with     xlibs   # with xlibs
4 #
5 Summary:        Bonobo user interface components
6 Summary(pl):    Komponenty interfejsu u¿ytkownika do Bonobo
7 Name:           libbonoboui
8 Version:        2.8.1
9 Release:        2
10 License:        LGPL
11 Group:          X11/Libraries
12 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/2.8/%{name}-%{version}.tar.bz2
13 # Source0-md5:  b23daafa8344a88696d497f20285ef55
14 Patch0:         %{name}-desktop.patch
15 URL:            http://www.gnome.org/
16 %{?with_xlibs:BuildRequires:    libX11-devel}
17 BuildRequires:  GConf2-devel >= 2.8.0.1
18 BuildRequires:  ORBit2-devel >= 2.12.0
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  howl-devel >= 0.9.10
22 BuildRequires:  gnome-common >= 2.8.0
23 BuildRequires:  gtk+2-devel >= 2:2.4.1
24 BuildRequires:  gtk-doc >= 1.0
25 BuildRequires:  intltool >= 0.29
26 BuildRequires:  libbonobo-devel >= 2.8.1
27 BuildRequires:  libglade2-devel >= 1:2.4.0
28 BuildRequires:  libgnome-devel >= 2.8.0
29 BuildRequires:  libgnomecanvas-devel >= 2.8.0
30 BuildRequires:  libtool
31 BuildRequires:  libxml2-devel >= 2.6.13
32 BuildRequires:  pkgconfig
33 BuildRequires:  rpm-build >= 4.1-10
34 %{?with_xlibs:BuildRequires:    sed >= 4.0}
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 Bonobo is a component system based on CORBA, used by the GNOME
39 desktop. libbonoboui contains the user interface related components
40 that come with Bonobo.
41
42 %description -l pl
43 Bonobo jest systemem komponentów bazuj±cym na CORB-ie, u¿ywanym przez
44 ¶rodowisko GNOME. libbonoboui zawiera komponenty zwi±zane z
45 interfejsem u¿ytkownika, które przychodz± z Bonobo.
46
47 %package devel
48 Summary:        Headers for libbonoboui
49 Summary(pl):    Pliki nag³ówkowe libbonoboui
50 Group:          X11/Development/Libraries
51 Requires:       %{name} = %{version}-%{release}
52 Requires:       GConf2-devel >= 2.8.0.1
53 Requires:       libbonobo-devel >= 2.8.1
54 Requires:       libglade2-devel >= 1:2.4.0
55 Requires:       libgnome-devel >= 2.8.0
56 Requires:       libgnomecanvas-devel >= 2.8.0
57 Requires:       libxml2-devel >= 2.6.13
58
59 %description devel
60 Bonobo is a component system based on CORBA, used by the GNOME
61 desktop. libbonoboui contains GUI components that come with Bonobo.
62
63 This package contains header files used to compile programs that use
64 libbonoboui.
65
66 %description devel -l pl
67 Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilacji programów
68 u¿ywaj±cych libbonoboui.
69
70 %package static
71 Summary:        Static libbonoboui library
72 Summary(pl):    Statyczna biblioteka libbonoboui
73 Group:          X11/Development/Libraries
74 Requires:       %{name}-devel = %{version}-%{release}
75
76 %description static
77 This package contains static version of libbonoboui.
78
79 %description static -l pl
80 Ten pakiet zawiera statyczn± wersjê biblioteki libbonoboui.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %if %{with xlibs}
87 sed -ie \
88         's/AC_PATH_XTRA/PKG_CHECK_MODULES(X, [x11], [$x_no = no])/' \
89         configure.in
90 %endif
91
92 %build
93 %{__libtoolize}
94 %{__aclocal}
95 %{__autoconf}
96 %{__automake}
97 %configure \
98         --enable-gtk-doc \
99         --with-html-dir=%{_gtkdocdir}
100
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 # no static modules and *.la for glade modules
110 rm -f $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.{la,a}
111
112 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
113
114 %find_lang %{name} --with-gnome --all-name
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post   -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
121
122 %files -f %{name}.lang
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog NEWS README
125 %attr(755,root,root) %{_bindir}/*
126 %attr(755,root,root) %{_libdir}/lib*.so.*.*
127 %attr(755,root,root) %{_libdir}/libglade/2.0/*.so
128 %{_libdir}/bonobo/servers/*
129 %{_libdir}/bonobo-2.0/samples/*
130 %{_datadir}/gnome-2.0
131 %{_desktopdir}/*.desktop
132
133 %files devel
134 %defattr(644,root,root,755)
135 %doc doc/*.xml doc/*.txt doc/*.html doc/*.dtd
136 %attr(755,root,root) %{_libdir}/lib*.so
137 %{_libdir}/lib*.la
138 %{_pkgconfigdir}/*.pc
139 %{_includedir}/libbonoboui-2.0
140 %{_gtkdocdir}/%{name}
141
142 %files static
143 %defattr(644,root,root,755)
144 %{_libdir}/lib*.a
This page took 0.07992 seconds and 2 git commands to generate.