[packages/librvngabw] - new

qboosh qboosh at pld-linux.org
Wed Jun 17 19:42:21 CEST 2015


commit bb6018e4af3389faaa7ff51e6543431ab383e185
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jun 17 19:43:31 2015 +0200

    - new

 librvngabw.spec | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 119 insertions(+)
---
diff --git a/librvngabw.spec b/librvngabw.spec
new file mode 100644
index 0000000..8a754a7
--- /dev/null
+++ b/librvngabw.spec
@@ -0,0 +1,119 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
+Summary:	Library for generating documents in AbiWord (ABW) format
+Summary(pl.UTF-8):	Biblioteka do generowania dokumentów w formacie AbiWorda (ABW)
+Name:		librvngabw
+Version:	0.0.0
+Release:	1
+License:	MPL v2.0 or LGPL v2.1+
+Group:		Libraries
+Source0:	http://downloads.sourceforge.net/librvngabw/%{name}-%{version}.tar.xz
+# Source0-md5:	bd2390d96a6818cf7191500da1f6db17
+URL:		http://librvngabw.sourceforge.net/
+BuildRequires:	doxygen
+BuildRequires:	librevenge-devel >= 0.0
+BuildRequires:	libstdc++-devel >= 6:4.3
+BuildRequires:	pkgconfig >= 1:0.20
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+librvngabw is a library for generating documents in AbiWord (ABW)
+format. It provides generator implementations for text document
+interfaces supported by librevenge.
+
+%description -l pl.UTF-8
+librvngabw to biblioteka do generowania dokumentów w formacie AbiWorda
+(ABW). Zawiera implementacje generatorów dla interfejsów dokumentów
+tekstowych obsługiwanych przez librevenge.
+
+%package devel
+Summary:	Header files for librvngabw library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki librvngabw
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	librevenge-devel >= 0.0
+Requires:	libstdc++-devel >= 6:4.3
+
+%description devel
+Header files for librvngabw library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki librvngabw.
+
+%package static
+Summary:	Static librvngabw library
+Summary(pl.UTF-8):	Statyczna biblioteka librvngabw
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static librvngabw library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka librvngabw.
+
+%package apidocs
+Summary:	librvngabw API documentation
+Summary(pl.UTF-8):	Dokumentacja API biblioteki librvngabw
+Group:		Documentation
+
+%description apidocs
+librvngabw API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki librvngabw.
+
+%prep
+%setup -q
+
+%build
+CXXFLAGS="%{rpmcxxflags} -std=c++0x"
+%configure \
+	%{?with_static_libs:--enable-static} \
+	--disable-silent-rules \
+	--disable-werror \
+	--with-sharedptr=c++11
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/librvngabw-*.la
+# packaged as %doc in -apidocs
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/librvngabw
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/librvngabw-0.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/librvngabw-0.0.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/librvngabw-0.0.so
+%{_includedir}/librvngabw-0.0
+%{_pkgconfigdir}/librvngabw-0.0.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/librvngabw-0.0.a
+%endif
+
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/doxygen/html/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/librvngabw.git/commitdiff/bb6018e4af3389faaa7ff51e6543431ab383e185



More information about the pld-cvs-commit mailing list