]> git.pld-linux.org Git - packages/libmwaw.git/blob - libmwaw.spec
- rpm version for noarch subpackages
[packages/libmwaw.git] / libmwaw.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4
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
8 Version:        0.3.20
9 Release:        1
10 License:        MPL v2.0 or LGPL v2+
11 Group:          Libraries
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
21 BuildRequires:  xz
22 BuildRequires:  zlib-devel
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Library for reading and converting ClarisWorks, MacWrite, WriteNow
27 word processor documents.
28
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.
32
33 %package devel
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
40
41 %description devel
42 Header files for libmwaw.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki libmwaw.
46
47 %package static
48 Summary:        Static libmwaw library
49 Summary(pl.UTF-8):      Statyczna biblioteka libmwaw
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static libmwaw library.
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka libmwaw.
58
59 %package apidocs
60 Summary:        libmwaw API documentation
61 Summary(pl.UTF-8):      Dokumentacja API biblioteki libmwaw
62 Group:          Documentation
63 BuildArch:      noarch
64
65 %description apidocs
66 API and internal documentation for libmwaw library.
67
68 %description apidocs -l pl.UTF-8
69 Dokumentacja API biblioteki libmwaw.
70
71 %package tools
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}
76
77 %description tools
78 Tools to transform ClarisWorks, MacWrite, WriteNow word processor
79 documents into other formats.
80
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.
84
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.
88
89 %prep
90 %setup -q
91
92 %build
93 %configure \
94         --disable-silent-rules \
95         %{?with_static_libs:--enable-static}
96
97 %{__make}
98
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 # obsoleted by pkg-config
107 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
108
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)
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
120
121 %files devel
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
126
127 %if %{with static_libs}
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/libmwaw-0.3.a
131 %endif
132
133 %files apidocs
134 %defattr(644,root,root,755)
135 %{_docdir}/%{name}
136
137 %files tools
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
This page took 0.082513 seconds and 3 git commands to generate.