]>
Commit | Line | Data |
---|---|---|
75f2a654 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
f9480b1a | 4 | |
2332aec5 JB |
5 | Summary: Library for importing and converting Corel WordPerfect(TM) Graphics images |
6 | Summary(pl.UTF-8): Biblioteka do importowania i konwersji obrazów Corel WordPerfect Graphics | |
289c145e | 7 | Name: libwpg |
41320e9d | 8 | Version: 0.3.4 |
f1100439 | 9 | Release: 1 |
1277ee90 | 10 | License: MPL v2.0 or LGPL v2.1+ |
289c145e | 11 | Group: Libraries |
41320e9d JB |
12 | Source0: https://downloads.sourceforge.net/libwpg/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 8f3ef77c8f650b299693c4b79c59483a | |
14 | URL: https://libwpg.sourceforge.net/ | |
35ac1d78 | 15 | BuildRequires: doxygen |
75f2a654 | 16 | BuildRequires: librevenge-devel >= 0.0.1 |
b552a394 | 17 | BuildRequires: libstdc++-devel >= 6:4.7 |
35ac1d78 | 18 | BuildRequires: libwpd-devel >= 0.10 |
1277ee90 JB |
19 | BuildRequires: pkgconfig >= 1:0.20 |
20 | BuildRequires: tar >= 1:1.22 | |
21 | BuildRequires: xz | |
75f2a654 | 22 | Requires: librevenge >= 0.0.1 |
35ac1d78 | 23 | Requires: libwpd >= 0.10 |
289c145e ER |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Libwpg project is a collection of library and tools to work with | |
28 | graphics in WPG (WordPerfect Graphics) format. WPG is the format used | |
2332aec5 JB |
29 | among others in Corel software, such as WordPerfect(TM) and |
30 | Presentations(TM). | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Projekt libwpg to zestaw biblioteki i narzędzi do pracy z obrazami w | |
34 | formacie WPG (WordPerfect Graphics). WPG to format używany między | |
35 | innymi w programach firmy Corel, takich jak WordPerfect(TM) i | |
36 | Presentations(TM). | |
289c145e ER |
37 | |
38 | %package devel | |
39 | Summary: Header files for libwpg library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwpg | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
75f2a654 | 43 | Requires: librevenge-devel >= 0.0.1 |
b552a394 | 44 | Requires: libstdc++-devel >= 6:4.7 |
35ac1d78 | 45 | Requires: libwpd-devel >= 0.10 |
289c145e ER |
46 | |
47 | %description devel | |
48 | Header files for libwpg library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki libwpg. | |
52 | ||
53 | %package static | |
54 | Summary: Static libwpg library | |
40ac4dc7 | 55 | Summary(pl.UTF-8): Statyczna biblioteka libwpg |
289c145e ER |
56 | Group: Development/Libraries |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static libwpg library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka libwpg. | |
64 | ||
35ac1d78 JB |
65 | %package apidocs |
66 | Summary: API documentation for libwpg library | |
67 | Summary(pl.UTF-8): Dokumentacja API biblioteki libwpg | |
68 | Group: Documentation | |
f9480b1a | 69 | BuildArch: noarch |
35ac1d78 JB |
70 | |
71 | %description apidocs | |
72 | API documentation for libwpg library. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API biblioteki libwpg. | |
76 | ||
289c145e ER |
77 | %package tools |
78 | Summary: Tools to transform WordPerfect Graphics into other formats | |
2332aec5 | 79 | Summary(pl.UTF-8): Narzędzia do konwersji plików z formatu WordPerfect Graphics do innych |
289c145e ER |
80 | Group: Applications/Publishing |
81 | Requires: %{name} = %{version}-%{release} | |
82 | ||
83 | %description tools | |
84 | Tools to transform WordPerfect Graphics (WPG) into other formats. | |
85 | ||
2332aec5 JB |
86 | %description tools -l pl.UTF-8 |
87 | Narzędzia do konwersji plików z formatu WordPerfect Graphics do innych | |
88 | formatów. | |
89 | ||
289c145e ER |
90 | %prep |
91 | %setup -q | |
92 | ||
93 | %build | |
289c145e | 94 | %configure \ |
1277ee90 | 95 | --disable-silent-rules \ |
75f2a654 | 96 | %{?with_static_libs:--enable-static} |
289c145e ER |
97 | %{__make} |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
d2b1dc60 | 105 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
b552a394 | 106 | # packages as %doc in -devel |
1277ee90 | 107 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html |
d2b1dc60 | 108 | |
289c145e ER |
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) | |
40ac4dc7 | 117 | %doc AUTHORS ChangeLog NEWS |
35ac1d78 JB |
118 | %attr(755,root,root) %{_libdir}/libwpg-0.3.so.*.*.* |
119 | %attr(755,root,root) %ghost %{_libdir}/libwpg-0.3.so.3 | |
9589eee9 | 120 | |
289c145e ER |
121 | %files devel |
122 | %defattr(644,root,root,755) | |
35ac1d78 JB |
123 | %attr(755,root,root) %{_libdir}/libwpg-0.3.so |
124 | %{_includedir}/libwpg-0.3 | |
125 | %{_pkgconfigdir}/libwpg-0.3.pc | |
289c145e | 126 | |
75f2a654 | 127 | %if %{with static_libs} |
289c145e ER |
128 | %files static |
129 | %defattr(644,root,root,755) | |
35ac1d78 | 130 | %{_libdir}/libwpg-0.3.a |
75f2a654 | 131 | %endif |
35ac1d78 JB |
132 | |
133 | %files apidocs | |
134 | %defattr(644,root,root,755) | |
135 | %doc docs/doxygen/html/* | |
289c145e ER |
136 | |
137 | %files tools | |
138 | %defattr(644,root,root,755) | |
139 | %attr(755,root,root) %{_bindir}/wpg2raw | |
140 | %attr(755,root,root) %{_bindir}/wpg2svg | |
141 | %attr(755,root,root) %{_bindir}/wpg2svgbatch.pl |