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