[packages/libwapcaplet] - new

witekfl witekfl at pld-linux.org
Sat Apr 27 09:18:28 CEST 2013


commit 5766811a8895862c6db43e904614d9e8621e13e5
Author: witekfl <witekfl at poczta.onet.pl>
Date:   Sat Apr 27 09:17:37 2013 +0200

    - new

 libwapcaplet.spec | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 97 insertions(+)
---
diff --git a/libwapcaplet.spec b/libwapcaplet.spec
new file mode 100644
index 0000000..f467d74
--- /dev/null
+++ b/libwapcaplet.spec
@@ -0,0 +1,97 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
+Summary:	String internment library
+Name:		libwapcaplet
+Version:	0.2.0
+Release:	1
+License:	MIT
+Group:		Libraries
+Source0:	http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
+# Source0-md5:	9e0d838365e72d67723c96e0d315f73a
+URL:		http://www.netsurf-browser.org/projects/libwapcaplet/
+BuildRequires:	netsurf-buildsystem
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+LibWapcaplet is a string internment library, written in C. It provides
+reference counted string interment and rapid string comparison
+functionality. It was developed as part of the NetSurf project and is
+available for use by other software under the MIT licence.
+
+%package devel
+Summary:	libwapcaplet library headers
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libwapcaplet
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+This is the libraries, include files and other resources you can use
+to incorporate libwapcaplet into applications.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe pozwalające na używanie biblioteki libwapcaplet
+w swoich programach.
+
+%package static
+Summary:	libwapcaplet static libraries
+Summary(pl.UTF-8):	Statyczne biblioteki libwapcaplet
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+This is package with static libwapcaplet libraries.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libwapcaplet.
+
+%prep
+%setup -q
+
+%build
+%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q='' \
+	CFLAGS="%{rpmcflags} -Iinclude" LDFLAGS="%{rpmldflags}"
+%if %{with static_libs}
+%{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static Q='' \
+	CFLAGS="%{rpmcflags} -Iinclude" LDFLAGS="%{rpmldflags}"
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	PREFIX=%{_prefix} \
+	COMPONENT_TYPE=lib-shared \
+	Q=''
+
+%if %{with static_libs}
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	PREFIX=%{_prefix} \
+	COMPONENT_TYPE=lib-static \
+	Q=''
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/libwapcaplet
+%{_pkgconfigdir}/*pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libwapcaplet.git/commitdiff/5766811a8895862c6db43e904614d9e8621e13e5



More information about the pld-cvs-commit mailing list