]>
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 |
cd71c92b | 11 | Version: 0.10.11 |
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 |
cd71c92b | 16 | # Source0-md5: 855d536b0b61004b3ffada6b62440588 |
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 |
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 | |
41 | Requires: glib2 >= 1:2.28.0 | |
42 | Requires: gtk+3 >= 3.2.0 | |
43 | Requires: lasem >= 0.4.1 | |
44 | Requires: libgsf >= 1.14.23 | |
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 JB |
65 | Requires: cairo-devel >= 1.10.0 |
66 | Requires: glib2-devel >= 1:2.28.0 | |
67 | Requires: gtk+3-devel >= 3.2.0 | |
68 | Requires: lasem-devel >= 0.4.1 | |
69 | Requires: libgsf-devel >= 1.14.23 | |
70 | Requires: libspectre-devel >= 0.2.6 | |
1ceba3c1 | 71 | Requires: libxml2-devel >= 1:2.6.26 |
886a6a61 | 72 | Requires: pango-devel >= 1:1.24.0 |
14db5539 | 73 | |
74 | %description devel | |
49963bc4 JB |
75 | This is the package containing the header files for GOffice. |
76 | ||
a63767a9 JR |
77 | %description devel -l pl.UTF-8 |
78 | Ten pakiet zawiera pliki nagłówkowe GOffice. | |
14db5539 | 79 | |
80 | %package static | |
81 | Summary: Static GOffice library | |
3ab4cbf1 | 82 | Summary(pl.UTF-8): Statyczna biblioteka GOffice |
14db5539 | 83 | Group: Development/Libraries |
49963bc4 | 84 | Requires: %{name}-devel = %{version}-%{release} |
14db5539 | 85 | |
86 | %description static | |
87 | Static GOffice library. | |
88 | ||
a63767a9 | 89 | %description static -l pl.UTF-8 |
49963bc4 JB |
90 | Statyczna biblioteka GOffice. |
91 | ||
1ceba3c1 MB |
92 | %package apidocs |
93 | Summary: GOffice library API documentation | |
94 | Summary(pl.UTF-8): Dokumentacja API biblioteki GOffice | |
95 | Group: Documentation | |
96 | Requires: gtk-doc-common | |
97 | ||
98 | %description apidocs | |
99 | GOffice library API documentation. | |
100 | ||
101 | %description apidocs -l pl.UTF-8 | |
102 | Dokumentacja API biblioteki GOffice. | |
103 | ||
14db5539 | 104 | %prep |
105 | %setup -qn %{orgname}-%{version} | |
106 | ||
107 | %build | |
1ceba3c1 | 108 | %{__gtkdocize} |
14db5539 | 109 | %{__intltoolize} |
110 | %{__libtoolize} | |
111 | %{__aclocal} | |
112 | %{__autoconf} | |
113 | %{__autoheader} | |
114 | %{__automake} | |
115 | %configure \ | |
fa6a6f8c JB |
116 | --enable-introspection \ |
117 | --disable-silent-rules \ | |
118 | %{?with_static_libs:--enable-static} \ | |
119 | --with-html-dir=%{_gtkdocdir} | |
14db5539 | 120 | %{__make} |
121 | ||
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
e20a7f77 | 124 | install -d $RPM_BUILD_ROOT%{_libdir}/goffice/%{api_version}/plugins |
14db5539 | 125 | |
126 | %{__make} install \ | |
127 | DESTDIR=$RPM_BUILD_ROOT | |
128 | ||
220be6fb AF |
129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/goffice/%{version}/plugins/*/*.{a,la} \ |
130 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
e839da40 | 131 | |
2a91cc3b | 132 | %find_lang %{orgname}-%{version} |
14db5539 | 133 | |
134 | %clean | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %post -p /sbin/ldconfig | |
138 | %postun -p /sbin/ldconfig | |
139 | ||
2a91cc3b | 140 | %files -f %{orgname}-%{version}.lang |
14db5539 | 141 | %defattr(644,root,root,755) |
142 | %doc AUTHORS BUGS ChangeLog MAINTAINERS NEWS README | |
fb06fb58 | 143 | %attr(755,root,root) %{_libdir}/libgoffice-%{api_version}.so.*.*.* |
b5620cba | 144 | %attr(755,root,root) %ghost %{_libdir}/libgoffice-%{api_version}.so.10 |
e839da40 | 145 | %dir %{_libdir}/goffice |
e20a7f77 JR |
146 | %dir %{_libdir}/goffice/%{api_version} |
147 | %dir %{_libdir}/goffice/%{api_version}/plugins | |
1547b2f9 JB |
148 | %dir %{_libdir}/goffice/%{version} |
149 | %dir %{_libdir}/goffice/%{version}/plugins | |
150 | %dir %{_libdir}/goffice/%{version}/plugins/* | |
e839da40 | 151 | %attr(755,root,root) %{_libdir}/goffice/%{version}/plugins/*/*.so |
e839da40 | 152 | %{_libdir}/goffice/%{version}/plugins/*/*.xml |
fb06fb58 | 153 | %{_libdir}/girepository-1.0/GOffice-%{api_version}.typelib |
14db5539 | 154 | |
155 | %files devel | |
156 | %defattr(644,root,root,755) | |
fb06fb58 JR |
157 | %attr(755,root,root) %{_libdir}/libgoffice-%{api_version}.so |
158 | %{_includedir}/libgoffice-%{api_version} | |
159 | %{_pkgconfigdir}/libgoffice-%{api_version}.pc | |
160 | %{_datadir}/gir-1.0/GOffice-%{api_version}.gir | |
1ceba3c1 | 161 | |
fa6a6f8c | 162 | %if %{with static_libs} |
14db5539 | 163 | %files static |
164 | %defattr(644,root,root,755) | |
fb06fb58 | 165 | %{_libdir}/libgoffice-%{api_version}.a |
fa6a6f8c | 166 | %endif |
1ceba3c1 MB |
167 | |
168 | %files apidocs | |
169 | %defattr(644,root,root,755) | |
fb06fb58 | 170 | %{_gtkdocdir}/goffice-%{api_version} |