]> git.pld-linux.org Git - packages/libserialport.git/commitdiff
- pl, added bconditional -static
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 21 Jul 2014 16:08:04 +0000 (18:08 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 21 Jul 2014 16:08:04 +0000 (18:08 +0200)
libserialport.spec

index 34c548c1da77391ddfc60fd934636aefd5491c38..6c9f71e54e8ae276ffe98756683287a39433341c 100644 (file)
@@ -1,4 +1,9 @@
+#
+# Conditional build:
+%bcond_without static_libs     # static library build
+#
 Summary:       Cross-platform serial port access library
+Summary(pl.UTF-8):     Wieloplatformowa biblioteka dostępu do portu szeregowego
 Name:          libserialport
 Version:       0.1
 Release:       1
@@ -19,14 +24,37 @@ Minimal, cross-platform shared library written in C that is intended
 to take care of the OS-specific details when writing software that
 uses serial ports.
 
+%description -l pl.UTF-8
+Minimalna, wieloplatformowa, napisana w C biblioteka współdzielona
+mająca na celu zadbać o wszystkie specyficzne dla systemu operacyjnego
+szczegóły przy pisaniu oprogramowania wykorzystującego porty
+szeregowe.
+
 %package devel
-Summary:       Development files for %{name}
+Summary:       Development files for libserialport
+Summary(pl.UTF-8):     Pliki programistyczne biblioteki libserialport
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
 %description devel
-The %{name}-devel package contains libraries and header files for
-developing applications that use %{name}.
+This package contains the header files for developing applications
+that use libserialport.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
+wykorzystujących bibliotekę libserialport.
+
+%package static
+Summary:       Static libserialport library
+Summary(pl.UTF-8):     Statyczna biblioteka libserialport
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libserialport library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libserialport.
 
 %prep
 %setup -q
@@ -38,9 +66,9 @@ developing applications that use %{name}.
 %{__automake}
 %{__autoconf}
 %configure \
-       --disable-static \
-       --disable-silent-rules \
        --enable-all-drivers \
+       --disable-silent-rules \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -51,12 +79,12 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
-%postun        -p /sbin/ldconfig
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc README NEWS
@@ -69,3 +97,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libserialport.so
 %{_includedir}/libserialport.h
 %{_pkgconfigdir}/libserialport.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libserialport.a
+%endif
This page took 0.143317 seconds and 4 git commands to generate.