]> git.pld-linux.org Git - packages/libmwaw.git/blame - libmwaw.spec
- up to 0.2.1
[packages/libmwaw.git] / libmwaw.spec
CommitLineData
4d95bda0
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
786aef49 4
4d95bda0
JB
5Summary: Library for reading and converting ClarisWorks, MacWrite, WriteNow word processor documents
6Summary(pl.UTF-8): Biblioteka do odczytu i konwersji dokumentów tekstowych ClarisWorks, MacWrite i WriteNow
7Name: libmwaw
ffa207d2
JB
8Version: 0.2.1
9Release: 1
4d95bda0
JB
10License: MPL v2.0 or LGPL v2+
11Group: Libraries
12Source0: http://downloads.sourceforge.net/libmwaw/%{name}-%{version}.tar.xz
ffa207d2 13# Source0-md5: 9f60734bf42b74131ada487d732b8a9e
4d95bda0
JB
14URL: http://sourceforge.net/projects/libmwaw
15BuildRequires: boost-devel
16BuildRequires: doxygen
17BuildRequires: libstdc++-devel
237ae1fc 18BuildRequires: libwpd-devel >= 0.9.5
bbb23a54 19BuildRequires: libwpg-devel >= 0.2.2
4d95bda0
JB
20BuildRequires: pkgconfig >= 1:0.20
21BuildRequires: tar >= 1:1.22
22BuildRequires: xz
23BuildRequires: zlib-devel
237ae1fc 24Requires: libwpd >= 0.9.5
bbb23a54 25Requires: libwpg >= 0.2.2
4d95bda0
JB
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Library for reading and converting ClarisWorks, MacWrite, WriteNow
30word processor documents.
31
32%description -l pl.UTF-8
33Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z
34procesorów tekstu ClarisWorks, MacWrite i WriteNow.
35
36%package devel
37Summary: Header files for libmwaw
38Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmwaw
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41Requires: libstdc++-devel
237ae1fc 42Requires: libwpd-devel >= 0.9.5
4d95bda0
JB
43
44%description devel
45Header files for libmwaw.
46
47%description devel -l pl.UTF-8
48Pliki nagłówkowe biblioteki libmwaw.
49
50%package static
51Summary: Static libmwaw library
52Summary(pl.UTF-8): Statyczna biblioteka libmwaw
53Group: Development/Libraries
54Requires: %{name}-devel = %{version}-%{release}
55
56%description static
57Static libmwaw library.
58
59%description static -l pl.UTF-8
60Statyczna biblioteka libmwaw.
61
62%package apidocs
63Summary: libmwaw API documentation
64Summary(pl.UTF-8): Dokumentacja API biblioteki libmwaw
65Group: Documentation
786aef49
ER
66%if "%{_rpmversion}" >= "5"
67BuildArch: noarch
68%endif
4d95bda0
JB
69
70%description apidocs
71API and internal documentation for libmwaw library.
72
73%description apidocs -l pl.UTF-8
74Dokumentacja API biblioteki libmwaw.
75
76%package tools
77Summary: Tools to transform Macintosh documents into other formats
78Summary(pl.UTF-8): Programy przekształcania dokumentów z Macintosha do innych formatów
79Group: Applications/Publishing
80Requires: %{name} = %{version}-%{release}
81
82%description tools
83Tools to transform ClarisWorks, MacWrite, WriteNow word processor
84documents into other formats.
85
86%description -l pl.UTF-8
87Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z
88procesorów tekstu ClarisWorks, MacWrite i WriteNow.
89
90%description tools -l pl.UTF-8
91Narzędzia do przekształcania dokumentów tekstowych z procesorów tekstu
92ClarisWorks, 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
107rm -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
115rm -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
This page took 0.107692 seconds and 4 git commands to generate.