]> git.pld-linux.org Git - packages/libstaroffice.git/blob - libstaroffice.spec
- updated to 0.0.6
[packages/libstaroffice.git] / libstaroffice.spec
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
8 Version:        0.0.6
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
14 # Source0-md5:  3db5ccd618b67df20adc9555fe89560a
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
65 %if "%{_rpmversion}" >= "5"
66 BuildArch:      noarch
67 %endif
68
69 %description apidocs
70 API documentation for libstaroffice library.
71
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki libstaroffice.
74
75 %package tools
76 Summary:        Tools to transform StarOffice files into other formats
77 Summary(pl.UTF-8):      Narzędzia do przekształcania plików StarOffice'a do innych formatów
78 Group:          Applications/Publishing
79 Requires:       %{name} = %{version}-%{release}
80
81 %description tools
82 Tools to transform StarOffice files into other formats. Currently
83 supported: CSV, HTML, SVG, text, raw.
84
85 %description tools -l pl.UTF-8
86 Narzędzia do przekształcania plików StarOffice'a do innych formatów.
87 Obecnie obsługiwane są: CSV, HTML, SVG, tekstowy i surowy.
88
89 %prep
90 %setup -q
91
92 %build
93 %configure \
94         --disable-silent-rules \
95         %{?with_static_libs:--enable-static}
96
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
105
106 # we install API docs directly from build
107 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post   -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
114
115 %files
116 %defattr(644,root,root,755)
117 %doc CREDITS ChangeLog NEWS README
118 %attr(755,root,root) %{_libdir}/libstaroffice-0.0.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libstaroffice-0.0.so.0
120
121 %files devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libstaroffice-0.0.so
124 %{_includedir}/libstaroffice-0.0
125 %{_pkgconfigdir}/libstaroffice-0.0.pc
126
127 %if %{with static_libs}
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/libstaroffice-0.0.a
131 %endif
132
133 %files apidocs
134 %defattr(644,root,root,755)
135 %doc docs/doxygen/html/*
136
137 %files tools
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/sd2raw
140 %attr(755,root,root) %{_bindir}/sd2svg
141 %attr(755,root,root) %{_bindir}/sd2text
142 %attr(755,root,root) %{_bindir}/sdc2csv
143 %attr(755,root,root) %{_bindir}/sdw2html
This page took 0.061183 seconds and 3 git commands to generate.