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