]>
Commit | Line | Data |
---|---|---|
eaac2cae JB |
1 | # |
2 | # Conditional build: | |
9ed3bd84 | 3 | %bcond_without apidocs # disable gtk-doc |
2f1526ab | 4 | %bcond_without static_libs # don't build static libraries |
132eee7a | 5 | |
066e79a1 | 6 | Summary: GNOME Structured File library |
ca583b26 | 7 | Summary(pl.UTF-8): Biblioteka plików strukturalnych dla GNOME |
066e79a1 | 8 | Name: libgsf |
3ab46737 JB |
9 | Version: 1.14.38 |
10 | Release: 1 | |
b633c6ae | 11 | License: LGPL v2.1 |
f1bb66e2 | 12 | Group: Libraries |
04e70d17 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgsf/1.14/%{name}-%{version}.tar.xz |
3ab46737 | 14 | # Source0-md5: d115fd0e973023d5d47bf9f0f76911e0 |
65f0f5f5 | 15 | URL: http://www.gnumeric.org/ |
af45f0ab | 16 | BuildRequires: autoconf >= 2.54 |
ea223a19 | 17 | BuildRequires: automake >= 1:1.7.1 |
c5110746 | 18 | BuildRequires: bzip2-devel |
5ea6af3c | 19 | BuildRequires: docbook-dtd412-xml |
04e70d17 | 20 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
518be601 | 21 | BuildRequires: gettext-tools |
04e70d17 JB |
22 | BuildRequires: glib2-devel >= 1:2.26.0 |
23 | BuildRequires: gobject-introspection-devel >= 1.0.0 | |
24 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.12} | |
25 | %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.12} | |
8cd7ce8e | 26 | BuildRequires: intltool >= 0.35.0 |
aa3839d5 | 27 | BuildRequires: libtool >= 2:2.2.6 |
43a7035a | 28 | BuildRequires: libxml2-devel >= 1:2.6.26 |
8811fe8d | 29 | BuildRequires: pkgconfig |
04e70d17 JB |
30 | BuildRequires: tar >= 1:1.22 |
31 | BuildRequires: xz | |
36551389 | 32 | BuildRequires: zlib-devel |
04e70d17 JB |
33 | Requires: glib2 >= 1:2.26.0 |
34 | Requires: libxml2 >= 1:2.6.26 | |
35 | Obsoletes: libgsf-gnome | |
5dce760e | 36 | Obsoletes: python-gsf |
6bb45620 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
066e79a1 | 38 | |
39 | %description | |
65f0f5f5 JB |
40 | A library for reading and writing structured files (e.g. MS OLE and |
41 | Zip). | |
42 | ||
b46d3bb1 JR |
43 | %description -l pl.UTF-8 |
44 | Biblioteka do odczytu i zapisu plików strukturalnych (np. MS OLE lub | |
65f0f5f5 | 45 | Zip). |
066e79a1 | 46 | |
47 | %package devel | |
65f0f5f5 | 48 | Summary: Support files necessary to compile applications with libgsf |
ca583b26 | 49 | Summary(pl.UTF-8): Pliki do kompilowania aplikacji używających libgsf |
066e79a1 | 50 | Group: Development/Libraries |
25d7c0be | 51 | Requires: %{name} = %{version}-%{release} |
c5110746 | 52 | Requires: bzip2-devel |
04e70d17 | 53 | Requires: glib2-devel >= 1:2.26.0 |
43a7035a | 54 | Requires: libxml2-devel >= 1:2.6.26 |
04e70d17 | 55 | Obsoletes: libgsf-gnome-devel |
066e79a1 | 56 | |
57 | %description devel | |
65f0f5f5 JB |
58 | Headers, and support files necessary to compile applications using |
59 | libgsf. | |
60 | ||
b46d3bb1 JR |
61 | %description devel -l pl.UTF-8 |
62 | Pliki nagłówkowe i inne potrzebne do kompilowania aplikacji | |
63 | używających libgsf. | |
066e79a1 | 64 | |
65 | %package static | |
65f0f5f5 | 66 | Summary: libgsf static libraries |
ca583b26 | 67 | Summary(pl.UTF-8): Statyczne biblioteki libgsf |
066e79a1 | 68 | Group: Development/Libraries |
25d7c0be | 69 | Requires: %{name}-devel = %{version}-%{release} |
04e70d17 | 70 | Obsoletes: libgsf-gnome-static |
066e79a1 | 71 | |
72 | %description static | |
73 | Package contains static libraries. | |
74 | ||
b46d3bb1 | 75 | %description static -l pl.UTF-8 |
65f0f5f5 JB |
76 | Statyczne biblioteki libgsf. |
77 | ||
3a2b9fee MB |
78 | %package apidocs |
79 | Summary: libgsf API documentation | |
80 | Summary(pl.UTF-8): Dokumentacja API libgsf | |
81 | Group: Documentation | |
82 | Requires: gtk-doc-common | |
132eee7a ER |
83 | %if "%{_rpmversion}" >= "5" |
84 | BuildArch: noarch | |
85 | %endif | |
3a2b9fee MB |
86 | |
87 | %description apidocs | |
88 | libgsf API documentation. | |
89 | ||
90 | %description apidocs -l pl.UTF-8 | |
91 | Dokumentacja API libgsf. | |
92 | ||
af45f0ab | 93 | %package -n gsf-office-thumbnailer |
94 | Summary: Simple document thumbnailer | |
ca583b26 | 95 | Summary(pl.UTF-8): Prosty generator miniatur dokumentów |
af45f0ab | 96 | Group: X11/Applications |
04e70d17 | 97 | Requires: %{name} = %{version}-%{release} |
af45f0ab | 98 | |
99 | %description -n gsf-office-thumbnailer | |
100 | Simple document thumbnailer. | |
101 | ||
b46d3bb1 JR |
102 | %description -n gsf-office-thumbnailer -l pl.UTF-8 |
103 | Prosty program tworzący miniaturki dokumentów. | |
af45f0ab | 104 | |
066e79a1 | 105 | %prep |
106 | %setup -q | |
066e79a1 | 107 | |
108 | %build | |
11d41094 | 109 | %{?with_apidocs:%{__gtkdocize}} |
066e79a1 | 110 | %{__libtoolize} |
93ea9808 | 111 | %{__aclocal} -I m4 |
066e79a1 | 112 | %{__autoconf} |
862508f7 | 113 | %{__autoheader} |
066e79a1 | 114 | %{__automake} |
30857fd1 | 115 | %configure \ |
8cd7ce8e | 116 | --disable-silent-rules \ |
862508f7 | 117 | %{!?with_static_libs:--disable-static} \ |
ef3882c3 | 118 | %{?with_apidocs:--enable-gtk-doc} \ |
04e70d17 | 119 | --enable-introspection \ |
5dce760e JB |
120 | --with-html-dir=%{_gtkdocdir} |
121 | ||
066e79a1 | 122 | %{__make} |
123 | ||
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %{__make} install \ | |
128 | DESTDIR=$RPM_BUILD_ROOT | |
129 | ||
93ea9808 | 130 | %find_lang %{name} |
bc2dec13 | 131 | |
066e79a1 | 132 | %clean |
5a0935a9 | 133 | rm -rf $RPM_BUILD_ROOT |
066e79a1 | 134 | |
f1bb66e2 | 135 | %post -p /sbin/ldconfig |
136 | %postun -p /sbin/ldconfig | |
fcf0d6d7 | 137 | |
93ea9808 | 138 | %files -f %{name}.lang |
066e79a1 | 139 | %defattr(644,root,root,755) |
5dce760e | 140 | %doc AUTHORS ChangeLog README NEWS |
93ea9808 | 141 | %attr(755,root,root) %{_bindir}/gsf |
142 | %attr(755,root,root) %{_bindir}/gsf-vba-dump | |
11984e03 JB |
143 | %attr(755,root,root) %{_libdir}/libgsf-1.so.*.*.* |
144 | %attr(755,root,root) %ghost %{_libdir}/libgsf-1.so.114 | |
04e70d17 | 145 | %{_libdir}/girepository-1.0/Gsf-1.typelib |
28ec3b96 | 146 | %{_mandir}/man1/gsf.1* |
0ebe3c7a | 147 | %{_mandir}/man1/gsf-vba-dump.1* |
066e79a1 | 148 | |
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
11984e03 JB |
151 | %attr(755,root,root) %{_libdir}/libgsf-1.so |
152 | %{_libdir}/libgsf-1.la | |
a80f7326 JB |
153 | %dir %{_includedir}/libgsf-1 |
154 | %{_includedir}/libgsf-1/gsf | |
04e70d17 | 155 | %{_datadir}/gir-1.0/Gsf-1.gir |
11984e03 | 156 | %{_pkgconfigdir}/libgsf-1.pc |
066e79a1 | 157 | |
2f1526ab | 158 | %if %{with static_libs} |
066e79a1 | 159 | %files static |
160 | %defattr(644,root,root,755) | |
11984e03 | 161 | %{_libdir}/libgsf-1.a |
2f1526ab | 162 | %endif |
a80f7326 | 163 | |
3a2b9fee MB |
164 | %if %{with apidocs} |
165 | %files apidocs | |
166 | %defattr(644,root,root,755) | |
167 | %{_gtkdocdir}/gsf | |
168 | %endif | |
169 | ||
af45f0ab | 170 | %files -n gsf-office-thumbnailer |
171 | %defattr(644,root,root,755) | |
172 | %attr(755,root,root) %{_bindir}/gsf-office-thumbnailer | |
04e70d17 | 173 | %{_datadir}/thumbnailers/gsf-office.thumbnailer |
af45f0ab | 174 | %{_mandir}/man1/gsf-office-thumbnailer.1* |