]>
Commit | Line | Data |
---|---|---|
4d95bda0 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
786aef49 | 4 | |
4d95bda0 JB |
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 | |
7 | Name: libmwaw | |
656013b4 | 8 | Version: 0.3.4 |
ffa207d2 | 9 | Release: 1 |
4d95bda0 JB |
10 | License: MPL v2.0 or LGPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://downloads.sourceforge.net/libmwaw/%{name}-%{version}.tar.xz | |
656013b4 | 13 | # Source0-md5: 402e8af2bda6e8f2b5e68af44648820f |
4d95bda0 | 14 | URL: http://sourceforge.net/projects/libmwaw |
4d95bda0 | 15 | BuildRequires: doxygen |
3cae79bd | 16 | BuildRequires: librevenge-devel >= 0.0 |
656013b4 | 17 | BuildRequires: libstdc++-devel >= 6:4.3 |
4d95bda0 JB |
18 | BuildRequires: pkgconfig >= 1:0.20 |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: xz | |
21 | BuildRequires: zlib-devel | |
4d95bda0 JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Library for reading and converting ClarisWorks, MacWrite, WriteNow | |
26 | word processor documents. | |
27 | ||
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. | |
31 | ||
32 | %package devel | |
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} | |
3cae79bd | 37 | Requires: librevenge-devel >= 0.0 |
4d95bda0 | 38 | Requires: libstdc++-devel |
4d95bda0 JB |
39 | |
40 | %description devel | |
41 | Header files for libmwaw. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki libmwaw. | |
45 | ||
46 | %package static | |
47 | Summary: Static libmwaw library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka libmwaw | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static libmwaw library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka libmwaw. | |
57 | ||
58 | %package apidocs | |
59 | Summary: libmwaw API documentation | |
60 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmwaw | |
61 | Group: Documentation | |
786aef49 ER |
62 | %if "%{_rpmversion}" >= "5" |
63 | BuildArch: noarch | |
64 | %endif | |
4d95bda0 JB |
65 | |
66 | %description apidocs | |
67 | API and internal documentation for libmwaw library. | |
68 | ||
69 | %description apidocs -l pl.UTF-8 | |
70 | Dokumentacja API biblioteki libmwaw. | |
71 | ||
72 | %package tools | |
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} | |
77 | ||
78 | %description tools | |
79 | Tools to transform ClarisWorks, MacWrite, WriteNow word processor | |
80 | documents into other formats. | |
81 | ||
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. | |
85 | ||
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. | |
89 | ||
90 | %prep | |
91 | %setup -q | |
92 | ||
93 | %build | |
656013b4 | 94 | CXXFLAGS="%{rpmcxxflags} -std=c++0x" |
4d95bda0 JB |
95 | %configure \ |
96 | --disable-silent-rules \ | |
656013b4 JB |
97 | %{?with_static_libs:--enable-static} \ |
98 | --with-sharedptr=c++11 | |
4d95bda0 JB |
99 | |
100 | %{__make} | |
101 | ||
102 | ||
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
108 | # obsoleted by pkg-config | |
109 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
110 | ||
111 | %clean | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %post -p /sbin/ldconfig | |
115 | %postun -p /sbin/ldconfig | |
116 | ||
117 | %files | |
118 | %defattr(644,root,root,755) | |
119 | %doc CHANGES CREDITS README | |
3cae79bd JB |
120 | %attr(755,root,root) %{_libdir}/libmwaw-0.3.so.*.*.* |
121 | %attr(755,root,root) %ghost %{_libdir}/libmwaw-0.3.so.3 | |
4d95bda0 JB |
122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
3cae79bd JB |
125 | %attr(755,root,root) %{_libdir}/libmwaw-0.3.so |
126 | %{_includedir}/libmwaw-0.3 | |
127 | %{_pkgconfigdir}/libmwaw-0.3.pc | |
4d95bda0 JB |
128 | |
129 | %if %{with static_libs} | |
130 | %files static | |
131 | %defattr(644,root,root,755) | |
3cae79bd | 132 | %{_libdir}/libmwaw-0.3.a |
4d95bda0 JB |
133 | %endif |
134 | ||
135 | %files apidocs | |
136 | %defattr(644,root,root,755) | |
3cae79bd | 137 | %{_docdir}/%{name} |
4d95bda0 JB |
138 | |
139 | %files tools | |
140 | %defattr(644,root,root,755) | |
bbb23a54 | 141 | %attr(755,root,root) %{_bindir}/mwaw2csv |
4d95bda0 JB |
142 | %attr(755,root,root) %{_bindir}/mwaw2html |
143 | %attr(755,root,root) %{_bindir}/mwaw2raw | |
3cae79bd | 144 | %attr(755,root,root) %{_bindir}/mwaw2svg |
4d95bda0 JB |
145 | %attr(755,root,root) %{_bindir}/mwaw2text |
146 | %attr(755,root,root) %{_bindir}/mwawFile | |
147 | %attr(755,root,root) %{_bindir}/mwawZip |