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