]> git.pld-linux.org Git - packages/libmwaw.git/blob - libmwaw.spec
ea0a5117e16a4a5498f788f4a7c2de6c9d338a99
[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.15
9 Release:        1
10 License:        MPL v2.0 or LGPL v2+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libmwaw/%{name}-%{version}.tar.xz
13 # Source0-md5:  ffe1479ecde9afd8ce86b791183183fd
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:  tar >= 1:1.22
20 BuildRequires:  xz
21 BuildRequires:  zlib-devel
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}
37 Requires:       librevenge-devel >= 0.0
38 Requires:       libstdc++-devel >= 6:4.7
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
62 %if "%{_rpmversion}" >= "5"
63 BuildArch:      noarch
64 %endif
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
94 %configure \
95         --disable-silent-rules \
96         %{?with_static_libs:--enable-static}
97
98 %{__make}
99
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
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.061775 seconds and 2 git commands to generate.