]>
Commit | Line | Data |
---|---|---|
fa6a6f8c JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
14db5539 | 5 | %define orgname goffice |
fb06fb58 | 6 | %define api_version 0.10 |
14db5539 | 7 | Summary: Glib/Gtk+ set of document centric objects and utilities |
3ab4cbf1 | 8 | Summary(pl.UTF-8): Zestaw zorientowanych dokumentowo obiektów i narzędzi Glib/Gtk+ |
14db5539 | 9 | Name: libgoffice |
2e3c08b3 | 10 | Version: 0.10.33 |
d5136ce3 | 11 | Release: 1 |
560e3d4f | 12 | License: GPL v2+ |
14db5539 | 13 | Group: Libraries |
b5620cba | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/goffice/0.10/%{orgname}-%{version}.tar.xz |
2e3c08b3 | 15 | # Source0-md5: 02b1cacd147fae05f635f3ebab33c03e |
282eb196 | 16 | URL: http://www.gtk.org/ |
038f5fc4 | 17 | BuildRequires: autoconf >= 2.54 |
b0b12119 | 18 | BuildRequires: automake >= 1:1.7.2 |
92bd383b JR |
19 | BuildRequires: cairo-devel >= 1.10.0 |
20 | BuildRequires: gdk-pixbuf2-devel >= 2.22.0 | |
d3cb2ae9 | 21 | BuildRequires: gettext-tools |
886a6a61 | 22 | BuildRequires: ghostscript-devel >= 9.06 |
b0b12119 | 23 | BuildRequires: glib2-devel >= 1:2.38.0 |
92bd383b | 24 | BuildRequires: gobject-introspection-devel >= 1.0.0 |
b0b12119 | 25 | BuildRequires: gtk+3-devel >= 3.8.7 |
886a6a61 | 26 | BuildRequires: gtk-doc >= 1.12 |
1ceba3c1 | 27 | BuildRequires: intltool >= 0.35.0 |
886a6a61 | 28 | BuildRequires: lasem-devel >= 0.4.1 |
b0b12119 | 29 | BuildRequires: libgsf-devel >= 1.14.24 |
92bd383b | 30 | BuildRequires: librsvg-devel >= 2.22.0 |
886a6a61 JB |
31 | BuildRequires: libspectre-devel >= 0.2.6 |
32 | BuildRequires: libtool >= 2:2.2.6 | |
ca6ee2f9 | 33 | BuildRequires: libxml2-devel >= 1:2.6.26 |
3eb2a51d | 34 | BuildRequires: libxslt-devel |
886a6a61 | 35 | BuildRequires: pango-devel >= 1:1.24.0 |
14db5539 | 36 | BuildRequires: pkgconfig |
8dfab9a1 JB |
37 | BuildRequires: pkgconfig(cairo-pdf) >= 1.10.0 |
38 | BuildRequires: pkgconfig(cairo-ps) >= 1.10.0 | |
39 | BuildRequires: pkgconfig(cairo-svg) >= 1.10.0 | |
886a6a61 JB |
40 | BuildRequires: xorg-lib-libXext-devel |
41 | BuildRequires: xorg-lib-libXrender-devel | |
42 | Requires: cairo >= 1.10.0 | |
43 | Requires: gdk-pixbuf2 >= 2.22.0 | |
b0b12119 JB |
44 | Requires: glib2 >= 1:2.38.0 |
45 | Requires: gtk+3 >= 3.8.7 | |
886a6a61 | 46 | Requires: lasem >= 0.4.1 |
b0b12119 | 47 | Requires: libgsf >= 1.14.24 |
886a6a61 JB |
48 | Requires: librsvg >= 2.22.0 |
49 | Requires: libspectre >= 0.2.6 | |
50 | Requires: libxml2 >= 1:2.6.26 | |
51 | Requires: pango >= 1:1.24.0 | |
1ceba3c1 MB |
52 | # sr@Latn vs. sr@latin |
53 | Conflicts: glibc-misc < 6:2.7 | |
14db5539 | 54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
55 | ||
56 | %description | |
57 | GOffice - a Glib/Gtk+ set of document centric objects and utilities. | |
58 | ||
a63767a9 JR |
59 | %description -l pl.UTF-8 |
60 | GOffice - Zestaw zorientowanych dokumentowo obiektów i narzędzi | |
14db5539 | 61 | Glib/Gtk+. |
62 | ||
63 | %package devel | |
49963bc4 | 64 | Summary: Header files for GOffice library |
3ab4cbf1 | 65 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GOffice |
14db5539 | 66 | Group: Development/Libraries |
49963bc4 | 67 | Requires: %{name} = %{version}-%{release} |
886a6a61 | 68 | Requires: cairo-devel >= 1.10.0 |
b0b12119 JB |
69 | Requires: glib2-devel >= 1:2.38.0 |
70 | Requires: gtk+3-devel >= 3.8.7 | |
886a6a61 | 71 | Requires: lasem-devel >= 0.4.1 |
b0b12119 | 72 | Requires: libgsf-devel >= 1.14.24 |
886a6a61 | 73 | Requires: libspectre-devel >= 0.2.6 |
1ceba3c1 | 74 | Requires: libxml2-devel >= 1:2.6.26 |
3eb2a51d | 75 | Requires: libxslt-devel |
886a6a61 | 76 | Requires: pango-devel >= 1:1.24.0 |
14db5539 | 77 | |
78 | %description devel | |
49963bc4 JB |
79 | This is the package containing the header files for GOffice. |
80 | ||
a63767a9 JR |
81 | %description devel -l pl.UTF-8 |
82 | Ten pakiet zawiera pliki nagłówkowe GOffice. | |
14db5539 | 83 | |
84 | %package static | |
85 | Summary: Static GOffice library | |
3ab4cbf1 | 86 | Summary(pl.UTF-8): Statyczna biblioteka GOffice |
14db5539 | 87 | Group: Development/Libraries |
49963bc4 | 88 | Requires: %{name}-devel = %{version}-%{release} |
14db5539 | 89 | |
90 | %description static | |
91 | Static GOffice library. | |
92 | ||
a63767a9 | 93 | %description static -l pl.UTF-8 |
49963bc4 JB |
94 | Statyczna biblioteka GOffice. |
95 | ||
1ceba3c1 MB |
96 | %package apidocs |
97 | Summary: GOffice library API documentation | |
98 | Summary(pl.UTF-8): Dokumentacja API biblioteki GOffice | |
99 | Group: Documentation | |
100 | Requires: gtk-doc-common | |
62d7274f ER |
101 | %if "%{_rpmversion}" >= "5" |
102 | BuildArch: noarch | |
103 | %endif | |
1ceba3c1 MB |
104 | |
105 | %description apidocs | |
106 | GOffice library API documentation. | |
107 | ||
108 | %description apidocs -l pl.UTF-8 | |
109 | Dokumentacja API biblioteki GOffice. | |
110 | ||
14db5539 | 111 | %prep |
112 | %setup -qn %{orgname}-%{version} | |
113 | ||
114 | %build | |
1ceba3c1 | 115 | %{__gtkdocize} |
14db5539 | 116 | %{__intltoolize} |
117 | %{__libtoolize} | |
118 | %{__aclocal} | |
119 | %{__autoconf} | |
120 | %{__autoheader} | |
121 | %{__automake} | |
122 | %configure \ | |
fa6a6f8c JB |
123 | --enable-introspection \ |
124 | --disable-silent-rules \ | |
125 | %{?with_static_libs:--enable-static} \ | |
126 | --with-html-dir=%{_gtkdocdir} | |
14db5539 | 127 | %{__make} |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
e20a7f77 | 131 | install -d $RPM_BUILD_ROOT%{_libdir}/goffice/%{api_version}/plugins |
14db5539 | 132 | |
133 | %{__make} install \ | |
134 | DESTDIR=$RPM_BUILD_ROOT | |
135 | ||
220be6fb AF |
136 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/goffice/%{version}/plugins/*/*.{a,la} \ |
137 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
e839da40 | 138 | |
2a91cc3b | 139 | %find_lang %{orgname}-%{version} |
14db5539 | 140 | |
141 | %clean | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %post -p /sbin/ldconfig | |
145 | %postun -p /sbin/ldconfig | |
146 | ||
2a91cc3b | 147 | %files -f %{orgname}-%{version}.lang |
14db5539 | 148 | %defattr(644,root,root,755) |
149 | %doc AUTHORS BUGS ChangeLog MAINTAINERS NEWS README | |
fb06fb58 | 150 | %attr(755,root,root) %{_libdir}/libgoffice-%{api_version}.so.*.*.* |
b5620cba | 151 | %attr(755,root,root) %ghost %{_libdir}/libgoffice-%{api_version}.so.10 |
3eb2a51d | 152 | %{_libdir}/girepository-1.0/GOffice-%{api_version}.typelib |
e839da40 | 153 | %dir %{_libdir}/goffice |
e20a7f77 JR |
154 | %dir %{_libdir}/goffice/%{api_version} |
155 | %dir %{_libdir}/goffice/%{api_version}/plugins | |
1547b2f9 JB |
156 | %dir %{_libdir}/goffice/%{version} |
157 | %dir %{_libdir}/goffice/%{version}/plugins | |
158 | %dir %{_libdir}/goffice/%{version}/plugins/* | |
e839da40 | 159 | %attr(755,root,root) %{_libdir}/goffice/%{version}/plugins/*/*.so |
e839da40 | 160 | %{_libdir}/goffice/%{version}/plugins/*/*.xml |
3eb2a51d | 161 | %{_datadir}/goffice |
14db5539 | 162 | |
163 | %files devel | |
164 | %defattr(644,root,root,755) | |
fb06fb58 JR |
165 | %attr(755,root,root) %{_libdir}/libgoffice-%{api_version}.so |
166 | %{_includedir}/libgoffice-%{api_version} | |
167 | %{_pkgconfigdir}/libgoffice-%{api_version}.pc | |
168 | %{_datadir}/gir-1.0/GOffice-%{api_version}.gir | |
1ceba3c1 | 169 | |
fa6a6f8c | 170 | %if %{with static_libs} |
14db5539 | 171 | %files static |
172 | %defattr(644,root,root,755) | |
fb06fb58 | 173 | %{_libdir}/libgoffice-%{api_version}.a |
fa6a6f8c | 174 | %endif |
1ceba3c1 MB |
175 | |
176 | %files apidocs | |
177 | %defattr(644,root,root,755) | |
fb06fb58 | 178 | %{_gtkdocdir}/goffice-%{api_version} |