3 %bcond_without static_libs # static library
5 Summary: Library for reading and converting ClarisWorks, MacWrite, WriteNow word processor documents
6 Summary(pl.UTF-8): Biblioteka do odczytu i konwersji dokumentów tekstowych ClarisWorks, MacWrite i WriteNow
10 License: MPL v2.0 or LGPL v2+
12 Source0: https://downloads.sourceforge.net/libmwaw/%{name}-%{version}.tar.xz
13 # Source0-md5: 742a62aaa7164eb07a4f83acd585fe31
14 URL: https://sourceforge.net/projects/libmwaw/
15 BuildRequires: doxygen
16 BuildRequires: librevenge-devel >= 0.0
17 BuildRequires: libstdc++-devel >= 6:4.7
18 BuildRequires: pkgconfig >= 1:0.20
19 BuildRequires: rpm-build >= 4.6
20 BuildRequires: tar >= 1:1.22
22 BuildRequires: zlib-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Library for reading and converting ClarisWorks, MacWrite, WriteNow
27 word processor documents.
29 %description -l pl.UTF-8
30 Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z
31 procesorów tekstu ClarisWorks, MacWrite i WriteNow.
34 Summary: Header files for libmwaw
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmwaw
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
38 Requires: librevenge-devel >= 0.0
39 Requires: libstdc++-devel >= 6:4.7
42 Header files for libmwaw.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki libmwaw.
48 Summary: Static libmwaw library
49 Summary(pl.UTF-8): Statyczna biblioteka libmwaw
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 Static libmwaw library.
56 %description static -l pl.UTF-8
57 Statyczna biblioteka libmwaw.
60 Summary: libmwaw API documentation
61 Summary(pl.UTF-8): Dokumentacja API biblioteki libmwaw
66 API and internal documentation for libmwaw library.
68 %description apidocs -l pl.UTF-8
69 Dokumentacja API biblioteki libmwaw.
72 Summary: Tools to transform Macintosh documents into other formats
73 Summary(pl.UTF-8): Programy przekształcania dokumentów z Macintosha do innych formatów
74 Group: Applications/Publishing
75 Requires: %{name} = %{version}-%{release}
78 Tools to transform ClarisWorks, MacWrite, WriteNow word processor
79 documents into other formats.
81 %description -l pl.UTF-8
82 Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z
83 procesorów tekstu ClarisWorks, MacWrite i WriteNow.
85 %description tools -l pl.UTF-8
86 Narzędzia do przekształcania dokumentów tekstowych z procesorów tekstu
87 ClarisWorks, MacWrite i WriteNow do innych formatów.
94 --disable-silent-rules \
95 %{?with_static_libs:--enable-static}
101 rm -rf $RPM_BUILD_ROOT
104 DESTDIR=$RPM_BUILD_ROOT
106 # obsoleted by pkg-config
107 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
110 rm -rf $RPM_BUILD_ROOT
112 %post -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
116 %defattr(644,root,root,755)
117 %doc CHANGES CREDITS README
118 %attr(755,root,root) %{_libdir}/libmwaw-0.3.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libmwaw-0.3.so.3
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libmwaw-0.3.so
124 %{_includedir}/libmwaw-0.3
125 %{_pkgconfigdir}/libmwaw-0.3.pc
127 %if %{with static_libs}
129 %defattr(644,root,root,755)
130 %{_libdir}/libmwaw-0.3.a
134 %defattr(644,root,root,755)
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/mwaw2csv
140 %attr(755,root,root) %{_bindir}/mwaw2html
141 %attr(755,root,root) %{_bindir}/mwaw2raw
142 %attr(755,root,root) %{_bindir}/mwaw2svg
143 %attr(755,root,root) %{_bindir}/mwaw2text
144 %attr(755,root,root) %{_bindir}/mwawFile
145 %attr(755,root,root) %{_bindir}/mwawZip