SPECS: lib765.spec - added bcond_without static libs

Elan Ruusamäe glen at delfi.ee
Tue Jun 14 18:32:01 CEST 2005


why 'static_libs'?
why not 'static'?
earlier packages seem to have 'static' bcond


On Tuesday 14 June 2005 19:20, witekfl wrote:
> Author: witekfl                      Date: Tue Jun 14 16:20:54 2005 GMT
> Module: SPECS                         Tag: HEAD
> ---- Log message:
> - added bcond_without static libs
>
> ---- Files affected:
> SPECS:
>    lib765.spec (1.12 -> 1.13)
>
> ---- Diffs:
>
> ================================================================
> Index: SPECS/lib765.spec
> diff -u SPECS/lib765.spec:1.12 SPECS/lib765.spec:1.13
> --- SPECS/lib765.spec:1.12	Sun Feb  6 02:02:17 2005
> +++ SPECS/lib765.spec	Tue Jun 14 18:20:48 2005
> @@ -1,4 +1,5 @@
>  # $Revision$, $Date$
> +%bcond_without	static_libs	# don't build static library
>  Summary:	765 FDC library
>  Summary(pl):	Biblioteka FDC 765
>  Name:		lib765
> @@ -70,7 +71,8 @@
>  %{__autoconf}
>  %{__autoheader}
>  %{__automake}
> -%configure
> +%configure \
> +	%{!?with_static_libs:--disable-static}
>  %{__make}
>
>  %install
> @@ -97,9 +99,11 @@
>  %{_libdir}/lib765.la
>  %{_includedir}/*.h
>
> +%if %{with static_libs}
>  %files static
>  %defattr(644,root,root,755)
>  %{_libdir}/lib*.a
> +%endif
>
>  %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
>  %changelog
> @@ -107,6 +111,9 @@
>  All persons listed below can be reached at <cvs_login>@pld-linux.org
>
>  $Log$
> +Revision 1.13  2005/06/14 16:20:48  witekfl
> +- added bcond_without static libs
> +
>  Revision 1.12  2005/02/06 01:02:17  qboosh
>  - ...but soname has changed
>
> ================================================================
>
> ---- CVS-web:
>     http://cvs.pld-linux.org/SPECS/lib765.spec?r1=1.12&r2=1.13&f=u
>
> _______________________________________________
> pld-cvs-commit mailing list
> pld-cvs-commit at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

-- 
glen



More information about the pld-devel-en mailing list