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: http://downloads.sourceforge.net/libmwaw/%{name}-%{version}.tar.xz
13 # Source0-md5: 402e8af2bda6e8f2b5e68af44648820f
14 URL: http://sourceforge.net/projects/libmwaw
15 BuildRequires: doxygen
16 BuildRequires: librevenge-devel >= 0.0
17 BuildRequires: libstdc++-devel >= 6:4.3
18 BuildRequires: pkgconfig >= 1:0.20
19 BuildRequires: tar >= 1:1.22
21 BuildRequires: zlib-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Library for reading and converting ClarisWorks, MacWrite, WriteNow
26 word processor documents.
28 %description -l pl.UTF-8
29 Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z
30 procesorów tekstu ClarisWorks, MacWrite i WriteNow.
33 Summary: Header files for libmwaw
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmwaw
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
37 Requires: librevenge-devel >= 0.0
38 Requires: libstdc++-devel
41 Header files for libmwaw.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki libmwaw.
47 Summary: Static libmwaw library
48 Summary(pl.UTF-8): Statyczna biblioteka libmwaw
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
53 Static libmwaw library.
55 %description static -l pl.UTF-8
56 Statyczna biblioteka libmwaw.
59 Summary: libmwaw API documentation
60 Summary(pl.UTF-8): Dokumentacja API biblioteki libmwaw
62 %if "%{_rpmversion}" >= "5"
67 API and internal documentation for libmwaw library.
69 %description apidocs -l pl.UTF-8
70 Dokumentacja API biblioteki libmwaw.
73 Summary: Tools to transform Macintosh documents into other formats
74 Summary(pl.UTF-8): Programy przekształcania dokumentów z Macintosha do innych formatów
75 Group: Applications/Publishing
76 Requires: %{name} = %{version}-%{release}
79 Tools to transform ClarisWorks, MacWrite, WriteNow word processor
80 documents into other formats.
82 %description -l pl.UTF-8
83 Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z
84 procesorów tekstu ClarisWorks, MacWrite i WriteNow.
86 %description tools -l pl.UTF-8
87 Narzędzia do przekształcania dokumentów tekstowych z procesorów tekstu
88 ClarisWorks, MacWrite i WriteNow do innych formatów.
94 CXXFLAGS="%{rpmcxxflags} -std=c++0x"
96 --disable-silent-rules \
97 %{?with_static_libs:--enable-static} \
98 --with-sharedptr=c++11
104 rm -rf $RPM_BUILD_ROOT
106 DESTDIR=$RPM_BUILD_ROOT
108 # obsoleted by pkg-config
109 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
112 rm -rf $RPM_BUILD_ROOT
114 %post -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
118 %defattr(644,root,root,755)
119 %doc CHANGES CREDITS README
120 %attr(755,root,root) %{_libdir}/libmwaw-0.3.so.*.*.*
121 %attr(755,root,root) %ghost %{_libdir}/libmwaw-0.3.so.3
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libmwaw-0.3.so
126 %{_includedir}/libmwaw-0.3
127 %{_pkgconfigdir}/libmwaw-0.3.pc
129 %if %{with static_libs}
131 %defattr(644,root,root,755)
132 %{_libdir}/libmwaw-0.3.a
136 %defattr(644,root,root,755)
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_bindir}/mwaw2csv
142 %attr(755,root,root) %{_bindir}/mwaw2html
143 %attr(755,root,root) %{_bindir}/mwaw2raw
144 %attr(755,root,root) %{_bindir}/mwaw2svg
145 %attr(755,root,root) %{_bindir}/mwaw2text
146 %attr(755,root,root) %{_bindir}/mwawFile
147 %attr(755,root,root) %{_bindir}/mwawZip