[packages/libmwaw] - new

qboosh qboosh at pld-linux.org
Fri Apr 26 16:22:13 CEST 2013


commit 4d95bda02650a8e2efa403905e415ed4e107a59e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Apr 26 16:21:38 2013 +0200

    - new

 libmwaw.spec | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 143 insertions(+)
---
diff --git a/libmwaw.spec b/libmwaw.spec
new file mode 100644
index 0000000..a32616e
--- /dev/null
+++ b/libmwaw.spec
@@ -0,0 +1,143 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static library
+#
+Summary:	Library for reading and converting ClarisWorks, MacWrite, WriteNow word processor documents
+Summary(pl.UTF-8):	Biblioteka do odczytu i konwersji dokumentów tekstowych ClarisWorks, MacWrite i WriteNow
+Name:		libmwaw
+Version:	0.1.7
+Release:	1
+License:	MPL v2.0 or LGPL v2+
+Group:		Libraries
+Source0:	http://downloads.sourceforge.net/libmwaw/%{name}-%{version}.tar.xz
+# Source0-md5:	a485d0ce4271e72ebffdc2daae678da9
+URL:		http://sourceforge.net/projects/libmwaw
+BuildRequires:	boost-devel
+BuildRequires:	doxygen
+BuildRequires:	libstdc++-devel
+BuildRequires:	libwpd-devel >= 0.9
+BuildRequires:	pkgconfig >= 1:0.20
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
+BuildRequires:	zlib-devel
+Requires:	libwpd >= 0.9
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Library for reading and converting ClarisWorks, MacWrite, WriteNow
+word processor documents.
+
+%description -l pl.UTF-8
+Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z
+procesorów tekstu ClarisWorks, MacWrite i WriteNow.
+
+%package devel
+Summary:	Header files for libmwaw
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libmwaw
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libstdc++-devel
+Requires:	libwpd-devel >= 0.9
+
+%description devel
+Header files for libmwaw.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libmwaw.
+
+%package static
+Summary:	Static libmwaw library
+Summary(pl.UTF-8):	Statyczna biblioteka libmwaw
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libmwaw library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libmwaw.
+
+%package apidocs
+Summary:	libmwaw API documentation
+Summary(pl.UTF-8):	Dokumentacja API biblioteki libmwaw
+Group:		Documentation
+
+%description apidocs
+API and internal documentation for libmwaw library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libmwaw.
+
+%package tools
+Summary:	Tools to transform Macintosh documents into other formats
+Summary(pl.UTF-8):	Programy przekształcania dokumentów z Macintosha do innych formatów
+Group:		Applications/Publishing
+Requires:	%{name} = %{version}-%{release}
+
+%description tools
+Tools to transform ClarisWorks, MacWrite, WriteNow word processor
+documents into other formats.
+
+%description -l pl.UTF-8
+Biblioteka do odczytu i konwersji dokumentów tekstowych pochodzących z
+procesorów tekstu ClarisWorks, MacWrite i WriteNow.
+
+%description tools -l pl.UTF-8
+Narzędzia do przekształcania dokumentów tekstowych z procesorów tekstu
+ClarisWorks, MacWrite i WriteNow do innych formatów.
+
+%prep
+%setup -q
+
+%build
+%configure \
+	--disable-silent-rules \
+	%{!?with_static_libs:--disable-static} \
+	--disable-werror
+
+%{__make}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES CREDITS README
+%attr(755,root,root) %{_libdir}/libmwaw-0.1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libmwaw-0.1.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmwaw-0.1.so
+%{_includedir}/libmwaw-0.1
+%{_pkgconfigdir}/libmwaw-0.1.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libmwaw-0.1.a
+%endif
+
+%files apidocs
+%defattr(644,root,root,755)
+%doc %{_docdir}/%{name}
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/mwaw2html
+%attr(755,root,root) %{_bindir}/mwaw2raw
+%attr(755,root,root) %{_bindir}/mwaw2text
+%attr(755,root,root) %{_bindir}/mwawFile
+%attr(755,root,root) %{_bindir}/mwawZip
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmwaw.git/commitdiff/4d95bda02650a8e2efa403905e415ed4e107a59e



More information about the pld-cvs-commit mailing list