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