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