]>
Commit | Line | Data |
---|---|---|
3e40e334 | 1 | # $Revision: 1.42 $, $Da1te: 2007/09/07 15:28:31 $ |
91bc4a88 | 2 | # |
0995e424 JB |
3 | # Conditional build: |
4 | %bcond_without gnome # disable all GNOME components | |
91bc4a88 | 5 | # |
14db5539 | 6 | %define orgname goffice |
91bc4a88 | 7 | # |
14db5539 | 8 | Summary: Glib/Gtk+ set of document centric objects and utilities |
3ab4cbf1 | 9 | Summary(pl.UTF-8): Zestaw zorientowanych dokumentowo obiektów i narzędzi Glib/Gtk+ |
14db5539 | 10 | Name: libgoffice |
3e40e334 | 11 | Version: 0.8.5 |
560e3d4f | 12 | Release: 1 |
13 | License: GPL v2+ | |
14db5539 | 14 | Group: Libraries |
560e3d4f | 15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/goffice/0.8/%{orgname}-%{version}.tar.bz2 |
3e40e334 | 16 | # Source0-md5: 3dda09fa540c947d45384b53713e49d5 |
282eb196 | 17 | URL: http://www.gtk.org/ |
1ceba3c1 | 18 | BuildRequires: GConf2-devel >= 2.20.0 |
038f5fc4 | 19 | BuildRequires: autoconf >= 2.54 |
14db5539 | 20 | BuildRequires: automake |
038f5fc4 | 21 | BuildRequires: cairo-devel >= 1.2.4 |
1ceba3c1 | 22 | BuildRequires: gettext-devel |
91bc4a88 | 23 | %{?with_gnome:BuildRequires: gnome-common >= 2.20.0} |
1ceba3c1 MB |
24 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
25 | BuildRequires: gtk-doc >= 1.4 | |
26 | BuildRequires: intltool >= 0.35.0 | |
27 | BuildRequires: libart_lgpl-devel >= 2.3.11 | |
28 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
91bc4a88 | 29 | %{?with_gnome:BuildRequires: libgnomeui-devel >= 2.20.0} |
30 | %{?with_gnome:BuildRequires: libgsf-gnome-devel >= 1.14.6} | |
1ceba3c1 | 31 | BuildRequires: libtool |
ca6ee2f9 | 32 | BuildRequires: libxml2-devel >= 1:2.6.26 |
14db5539 | 33 | BuildRequires: pkgconfig |
91bc4a88 | 34 | %{?with_gnome:Requires: libgsf-gnome >= 1.14.6} |
1ceba3c1 MB |
35 | # sr@Latn vs. sr@latin |
36 | Conflicts: glibc-misc < 6:2.7 | |
14db5539 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | GOffice - a Glib/Gtk+ set of document centric objects and utilities. | |
41 | ||
a63767a9 JR |
42 | %description -l pl.UTF-8 |
43 | GOffice - Zestaw zorientowanych dokumentowo obiektów i narzędzi | |
14db5539 | 44 | Glib/Gtk+. |
45 | ||
46 | %package devel | |
49963bc4 | 47 | Summary: Header files for GOffice library |
3ab4cbf1 | 48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GOffice |
14db5539 | 49 | Group: Development/Libraries |
49963bc4 | 50 | Requires: %{name} = %{version}-%{release} |
1ceba3c1 MB |
51 | Requires: gtk+2-devel >= 2:2.12.0 |
52 | Requires: libart_lgpl-devel >= 2.3.11 | |
53 | Requires: libglade2-devel >= 1:2.6.2 | |
69f309c5 | 54 | Requires: libgsf-gnome-devel >= 1.14.6 |
1ceba3c1 | 55 | Requires: libxml2-devel >= 1:2.6.26 |
14db5539 | 56 | |
57 | %description devel | |
49963bc4 JB |
58 | This is the package containing the header files for GOffice. |
59 | ||
a63767a9 JR |
60 | %description devel -l pl.UTF-8 |
61 | Ten pakiet zawiera pliki nagłówkowe GOffice. | |
14db5539 | 62 | |
63 | %package static | |
64 | Summary: Static GOffice library | |
3ab4cbf1 | 65 | Summary(pl.UTF-8): Statyczna biblioteka GOffice |
14db5539 | 66 | Group: Development/Libraries |
49963bc4 | 67 | Requires: %{name}-devel = %{version}-%{release} |
14db5539 | 68 | |
69 | %description static | |
70 | Static GOffice library. | |
71 | ||
a63767a9 | 72 | %description static -l pl.UTF-8 |
49963bc4 JB |
73 | Statyczna biblioteka GOffice. |
74 | ||
1ceba3c1 MB |
75 | %package apidocs |
76 | Summary: GOffice library API documentation | |
77 | Summary(pl.UTF-8): Dokumentacja API biblioteki GOffice | |
78 | Group: Documentation | |
79 | Requires: gtk-doc-common | |
80 | ||
81 | %description apidocs | |
82 | GOffice library API documentation. | |
83 | ||
84 | %description apidocs -l pl.UTF-8 | |
85 | Dokumentacja API biblioteki GOffice. | |
86 | ||
14db5539 | 87 | %prep |
88 | %setup -qn %{orgname}-%{version} | |
89 | ||
90 | %build | |
1ceba3c1 | 91 | %{__gtkdocize} |
14db5539 | 92 | %{__intltoolize} |
93 | %{__libtoolize} | |
94 | %{__aclocal} | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
98 | %configure \ | |
99 | --enable-static \ | |
91bc4a88 | 100 | %{?with_gnome:--with-gnome} \ |
2a91cc3b | 101 | --with-html-dir=%{_gtkdocdir} |
14db5539 | 102 | %{__make} |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
e839da40 | 110 | rm -f $RPM_BUILD_ROOT%{_libdir}/goffice/%{version}/plugins/*/*.{a,la} |
111 | ||
2a91cc3b | 112 | %find_lang %{orgname}-%{version} |
14db5539 | 113 | |
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post -p /sbin/ldconfig | |
118 | %postun -p /sbin/ldconfig | |
119 | ||
2a91cc3b | 120 | %files -f %{orgname}-%{version}.lang |
14db5539 | 121 | %defattr(644,root,root,755) |
122 | %doc AUTHORS BUGS ChangeLog MAINTAINERS NEWS README | |
560e3d4f | 123 | %attr(755,root,root) %{_libdir}/libgoffice-0.8.so.*.*.* |
124 | %attr(755,root,root) %ghost %{_libdir}/libgoffice-0.8.so.8 | |
e839da40 | 125 | %dir %{_libdir}/goffice |
1547b2f9 JB |
126 | %dir %{_libdir}/goffice/%{version} |
127 | %dir %{_libdir}/goffice/%{version}/plugins | |
128 | %dir %{_libdir}/goffice/%{version}/plugins/* | |
e839da40 | 129 | %attr(755,root,root) %{_libdir}/goffice/%{version}/plugins/*/*.so |
e839da40 | 130 | %{_libdir}/goffice/%{version}/plugins/*/*.xml |
560e3d4f | 131 | %{_libdir}/goffice/%{version}/plugins/*/*.ui |
1ceba3c1 | 132 | %{_datadir}/goffice |
14db5539 | 133 | %{_pixmapsdir}/goffice |
134 | ||
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
560e3d4f | 137 | %attr(755,root,root) %{_libdir}/libgoffice-0.8.so |
138 | %{_libdir}/libgoffice-0.8.la | |
139 | %{_includedir}/libgoffice-0.8 | |
140 | %{_pkgconfigdir}/libgoffice-0.8.pc | |
1ceba3c1 | 141 | |
14db5539 | 142 | %files static |
143 | %defattr(644,root,root,755) | |
560e3d4f | 144 | %{_libdir}/libgoffice-0.8.a |
1ceba3c1 MB |
145 | |
146 | %files apidocs | |
147 | %defattr(644,root,root,755) | |
560e3d4f | 148 | %{_gtkdocdir}/goffice-0.8 |