[packages/cfitsio] add static_libs bcond
atler
atler at pld-linux.org
Fri Jan 31 20:34:59 CET 2025
commit 1876474f8ea11915cb11bb8dbc148050b77085ca
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Jan 31 20:21:31 2025 +0100
add static_libs bcond
cfitsio.spec | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/cfitsio.spec b/cfitsio.spec
index 3f7c76e..a740754 100644
--- a/cfitsio.spec
+++ b/cfitsio.spec
@@ -1,4 +1,8 @@
# TODO: gsiftp support?
+#
+# Conditional build:
+%bcond_without static_libs # static library
+
Summary: CFITSIO Interface Library
Summary(pl.UTF-8): Biblioteka interfejsu CFITSIO
Name: cfitsio
@@ -12,6 +16,7 @@ URL: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
BuildRequires: bzip2-devel
BuildRequires: curl-devel
BuildRequires: gcc-g77
+BuildRequires: rpmbuild(macros) >= 1.527
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -55,6 +60,7 @@ Statyczna wersja biblioteki CFITSIO.
%build
%configure \
+ %{__enable_disable static_libs static} \
--with-bzip2
%{__make}
@@ -101,6 +107,8 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/region.h
%{_pkgconfigdir}/cfitsio.pc
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libcfitsio.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cfitsio.git/commitdiff/1876474f8ea11915cb11bb8dbc148050b77085ca
More information about the pld-cvs-commit
mailing list