]>
Commit | Line | Data |
---|---|---|
75eff29e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | Summary: Library to generate ODF documents from libwpd and libwpg API calls | |
6 | Summary(pl.UTF-8): Biblioteka do generowania dokumentów ODF z wywołań API libwpd i libwpg | |
7 | Name: libodfgen | |
141b7f33 | 8 | Version: 0.0.4 |
75eff29e JB |
9 | Release: 1 |
10 | License: MPL v2.0 or LGPL v2.1+ | |
11 | Group: Libraries | |
12 | Source0: http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz | |
141b7f33 | 13 | # Source0-md5: e41ac9a624d528c92fa465de3c46dc59 |
75eff29e JB |
14 | URL: http://libwpd.sourceforge.net/ |
15 | BuildRequires: autoconf >= 2.65 | |
16 | BuildRequires: automake >= 1:1.11 | |
17 | BuildRequires: boost-devel | |
777bd056 | 18 | BuildRequires: libetonyek-devel |
75eff29e JB |
19 | BuildRequires: libstdc++-devel |
20 | BuildRequires: libtool >= 2:2 | |
21 | BuildRequires: libwpd-devel >= 0.9 | |
22 | BuildRequires: libwpg-devel >= 0.2 | |
23 | BuildRequires: pkgconfig >= 1:0.20 | |
24 | BuildRequires: tar >= 1:1.22 | |
25 | BuildRequires: xz | |
26 | Requires: libwpd >= 0.9 | |
27 | Requires: libwpg >= 0.2 | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Library to generate ODF documents from libwpd and libwpg API calls. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Biblioteka do generowania dokumentów ODF z wywołań API libwpd i | |
35 | libwpg. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for libodfgen library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libodfgen | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
777bd056 | 42 | Requires: libetonyek-devel |
75eff29e JB |
43 | Requires: libstdc++-devel |
44 | Requires: libwpd-devel >= 0.9 | |
45 | Requires: libwpg-devel >= 0.2 | |
46 | ||
47 | %description devel | |
48 | Header files for libodfgen library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki libodfgen. | |
52 | ||
53 | %package static | |
54 | Summary: Static libodfgen library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka libodfgen | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static libodfgen library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka libodfgen. | |
64 | ||
777bd056 JB |
65 | %package apidocs |
66 | Summary: libodfgen API documentation | |
67 | Summary(pl.UTF-8): Dokumentacja API biblioteki libodfgen | |
68 | Group: Documentation | |
69 | ||
70 | %description apidocs | |
71 | libodfgen API documentation. | |
72 | ||
73 | %description apidocs -l pl.UTF-8 | |
74 | Dokumentacja API biblioteki libodfgen. | |
75 | ||
75eff29e JB |
76 | %prep |
77 | %setup -q | |
78 | ||
79 | %build | |
80 | %{__libtoolize} | |
81 | %{__aclocal} | |
82 | %{__autoconf} | |
83 | %{__autoheader} | |
84 | %{__automake} | |
85 | %configure \ | |
86 | %{?with_static_libs:--enable-static} \ | |
87 | --disable-silent-rules | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
777bd056 | 96 | # obsoleted by pkg-config |
75eff29e | 97 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libodfgen-*.la |
777bd056 JB |
98 | # packaged as %doc in -apidocs |
99 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libodfgen | |
75eff29e JB |
100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %post -p /sbin/ldconfig | |
104 | %postun -p /sbin/ldconfig | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc ChangeLog README | |
109 | %attr(755,root,root) %{_libdir}/libodfgen-0.0.so.*.*.* | |
110 | %attr(755,root,root) %ghost %{_libdir}/libodfgen-0.0.so.0 | |
111 | ||
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libodfgen-0.0.so | |
115 | %{_includedir}/libodfgen-0.0 | |
116 | %{_pkgconfigdir}/libodfgen-0.0.pc | |
117 | ||
118 | %if %{with static_libs} | |
119 | %files static | |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libodfgen-0.0.a | |
122 | %endif | |
777bd056 JB |
123 | |
124 | %files apidocs | |
125 | %defattr(644,root,root,755) | |
126 | %doc docs/doxygen/html/* |