]>
Commit | Line | Data |
---|---|---|
e1c525d9 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
5 | Summary: Library for importing of StarOffice documents | |
6 | Summary(pl.UTF-8): Biblioteka do importowania dokumentów StarOffice'a | |
7 | Name: libstaroffice | |
be2af081 | 8 | Version: 0.0.7 |
e1c525d9 JB |
9 | Release: 1 |
10 | License: MPL v2.0 | |
11 | Group: Libraries | |
12 | #Source0Download: https://github.com/fosnola/libstaroffice/releases | |
13 | Source0: https://github.com/fosnola/libstaroffice/releases/download/%{version}/%{name}-%{version}.tar.xz | |
be2af081 | 14 | # Source0-md5: 340ace6dd1c0f95691a7dc554383c404 |
e1c525d9 JB |
15 | URL: https://github.com/fosnola/libstaroffice/wiki |
16 | BuildRequires: doxygen | |
17 | BuildRequires: librevenge-devel >= 0.0 | |
18 | BuildRequires: libstdc++-devel >= 6:4.7 | |
19 | BuildRequires: pkgconfig >= 1:0.20 | |
20 | BuildRequires: tar >= 1:1.22 | |
21 | BuildRequires: xz | |
22 | BuildRequires: zlib-devel | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | libstaroffice is a library for importing of StarOffice documents. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | libstaroffice to biblioteka do importowania i konwersji dokumentów | |
30 | StarOffice'a. | |
31 | ||
32 | %package devel | |
33 | Summary: Development files for libstaroffice | |
34 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libstaroffice | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: librevenge-devel >= 0.0 | |
38 | Requires: libstdc++-devel >= 6:4.7 | |
39 | Requires: zlib-devel | |
40 | ||
41 | %description devel | |
42 | This package contains the header files for developing applications | |
43 | that use libstaroffice. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Ten pakiet zawiera biblioteki i pliki nagłówkowe do tworzenia | |
47 | aplikacji wykorzystujących bibliotekę libstaroffice. | |
48 | ||
49 | %package static | |
50 | Summary: Static libstaroffice library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka libstaroffice | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static libstaroffice library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka libstaroffice. | |
60 | ||
61 | %package apidocs | |
62 | Summary: API documentation for libstaroffice library | |
63 | Summary(pl.UTF-8): Dokumentacja API biblioteki libstaroffice | |
64 | Group: Documentation | |
e1c525d9 | 65 | BuildArch: noarch |
e1c525d9 JB |
66 | |
67 | %description apidocs | |
68 | API documentation for libstaroffice library. | |
69 | ||
70 | %description apidocs -l pl.UTF-8 | |
71 | Dokumentacja API biblioteki libstaroffice. | |
72 | ||
73 | %package tools | |
74 | Summary: Tools to transform StarOffice files into other formats | |
75 | Summary(pl.UTF-8): Narzędzia do przekształcania plików StarOffice'a do innych formatów | |
76 | Group: Applications/Publishing | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | ||
79 | %description tools | |
80 | Tools to transform StarOffice files into other formats. Currently | |
81 | supported: CSV, HTML, SVG, text, raw. | |
82 | ||
83 | %description tools -l pl.UTF-8 | |
84 | Narzędzia do przekształcania plików StarOffice'a do innych formatów. | |
85 | Obecnie obsługiwane są: CSV, HTML, SVG, tekstowy i surowy. | |
86 | ||
87 | %prep | |
88 | %setup -q | |
89 | ||
90 | %build | |
91 | %configure \ | |
92 | --disable-silent-rules \ | |
5b537bca | 93 | %{?with_static_libs:--enable-static} |
e1c525d9 JB |
94 | |
95 | %{__make} | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
102 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
103 | ||
104 | # we install API docs directly from build | |
105 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | %doc CREDITS ChangeLog NEWS README | |
116 | %attr(755,root,root) %{_libdir}/libstaroffice-0.0.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libstaroffice-0.0.so.0 | |
118 | ||
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_libdir}/libstaroffice-0.0.so | |
122 | %{_includedir}/libstaroffice-0.0 | |
123 | %{_pkgconfigdir}/libstaroffice-0.0.pc | |
124 | ||
125 | %if %{with static_libs} | |
126 | %files static | |
127 | %defattr(644,root,root,755) | |
128 | %{_libdir}/libstaroffice-0.0.a | |
129 | %endif | |
130 | ||
131 | %files apidocs | |
132 | %defattr(644,root,root,755) | |
133 | %doc docs/doxygen/html/* | |
134 | ||
135 | %files tools | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_bindir}/sd2raw | |
138 | %attr(755,root,root) %{_bindir}/sd2svg | |
139 | %attr(755,root,root) %{_bindir}/sd2text | |
140 | %attr(755,root,root) %{_bindir}/sdc2csv | |
141 | %attr(755,root,root) %{_bindir}/sdw2html |