]>
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 | |
ffa207d2 JB |
8 | Version: 0.2.1 |
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 | |
ffa207d2 | 13 | # Source0-md5: 9f60734bf42b74131ada487d732b8a9e |
4d95bda0 JB |
14 | URL: http://sourceforge.net/projects/libmwaw |
15 | BuildRequires: boost-devel | |
16 | BuildRequires: doxygen | |
17 | BuildRequires: libstdc++-devel | |
237ae1fc | 18 | BuildRequires: libwpd-devel >= 0.9.5 |
bbb23a54 | 19 | BuildRequires: libwpg-devel >= 0.2.2 |
4d95bda0 JB |
20 | BuildRequires: pkgconfig >= 1:0.20 |
21 | BuildRequires: tar >= 1:1.22 | |
22 | BuildRequires: xz | |
23 | BuildRequires: zlib-devel | |
237ae1fc | 24 | Requires: libwpd >= 0.9.5 |
bbb23a54 | 25 | Requires: libwpg >= 0.2.2 |
4d95bda0 JB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | Library for reading and converting ClarisWorks, MacWrite, WriteNow | |
30 | word processor documents. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z | |
34 | procesorów tekstu ClarisWorks, MacWrite i WriteNow. | |
35 | ||
36 | %package devel | |
37 | Summary: Header files for libmwaw | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmwaw | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | Requires: libstdc++-devel | |
237ae1fc | 42 | Requires: libwpd-devel >= 0.9.5 |
4d95bda0 JB |
43 | |
44 | %description devel | |
45 | Header files for libmwaw. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki libmwaw. | |
49 | ||
50 | %package static | |
51 | Summary: Static libmwaw library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka libmwaw | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static libmwaw library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka libmwaw. | |
61 | ||
62 | %package apidocs | |
63 | Summary: libmwaw API documentation | |
64 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmwaw | |
65 | Group: Documentation | |
786aef49 ER |
66 | %if "%{_rpmversion}" >= "5" |
67 | BuildArch: noarch | |
68 | %endif | |
4d95bda0 JB |
69 | |
70 | %description apidocs | |
71 | API and internal documentation for libmwaw library. | |
72 | ||
73 | %description apidocs -l pl.UTF-8 | |
74 | Dokumentacja API biblioteki libmwaw. | |
75 | ||
76 | %package tools | |
77 | Summary: Tools to transform Macintosh documents into other formats | |
78 | Summary(pl.UTF-8): Programy przekształcania dokumentów z Macintosha do innych formatów | |
79 | Group: Applications/Publishing | |
80 | Requires: %{name} = %{version}-%{release} | |
81 | ||
82 | %description tools | |
83 | Tools to transform ClarisWorks, MacWrite, WriteNow word processor | |
84 | documents into other formats. | |
85 | ||
86 | %description -l pl.UTF-8 | |
87 | Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z | |
88 | procesorów tekstu ClarisWorks, MacWrite i WriteNow. | |
89 | ||
90 | %description tools -l pl.UTF-8 | |
91 | Narzędzia do przekształcania dokumentów tekstowych z procesorów tekstu | |
92 | ClarisWorks, MacWrite i WriteNow do innych formatów. | |
93 | ||
94 | %prep | |
95 | %setup -q | |
96 | ||
97 | %build | |
98 | %configure \ | |
99 | --disable-silent-rules \ | |
f8429908 | 100 | %{?with_static_libs:--enable-static} \ |
4d95bda0 JB |
101 | --disable-werror |
102 | ||
103 | %{__make} | |
104 | ||
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | %{__make} install \ | |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
111 | # obsoleted by pkg-config | |
112 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
113 | ||
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post -p /sbin/ldconfig | |
118 | %postun -p /sbin/ldconfig | |
119 | ||
120 | %files | |
121 | %defattr(644,root,root,755) | |
122 | %doc CHANGES CREDITS README | |
bbb23a54 JB |
123 | %attr(755,root,root) %{_libdir}/libmwaw-0.2.so.*.*.* |
124 | %attr(755,root,root) %ghost %{_libdir}/libmwaw-0.2.so.2 | |
4d95bda0 JB |
125 | |
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
bbb23a54 JB |
128 | %attr(755,root,root) %{_libdir}/libmwaw-0.2.so |
129 | %{_includedir}/libmwaw-0.2 | |
130 | %{_pkgconfigdir}/libmwaw-0.2.pc | |
4d95bda0 JB |
131 | |
132 | %if %{with static_libs} | |
133 | %files static | |
134 | %defattr(644,root,root,755) | |
bbb23a54 | 135 | %{_libdir}/libmwaw-0.2.a |
4d95bda0 JB |
136 | %endif |
137 | ||
138 | %files apidocs | |
139 | %defattr(644,root,root,755) | |
140 | %doc %{_docdir}/%{name} | |
141 | ||
142 | %files tools | |
143 | %defattr(644,root,root,755) | |
bbb23a54 | 144 | %attr(755,root,root) %{_bindir}/mwaw2csv |
4d95bda0 JB |
145 | %attr(755,root,root) %{_bindir}/mwaw2html |
146 | %attr(755,root,root) %{_bindir}/mwaw2raw | |
147 | %attr(755,root,root) %{_bindir}/mwaw2text | |
148 | %attr(755,root,root) %{_bindir}/mwawFile | |
149 | %attr(755,root,root) %{_bindir}/mwawZip |