summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-05-26 15:26:08 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-05-26 15:26:08 +0200
commit562a3e8e19eae922e978bee72cae75f4dafc0e77 (patch)
tree3ce3709a26f2f4bdae3a2490d08d7f4841a714c1
parentc61e5bc9082b0c38c91233b05f4f495510a69ba3 (diff)
Add libax25-static package for statically linked applications.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--libax25.spec.in15
1 files changed, 14 insertions, 1 deletions
diff --git a/libax25.spec.in b/libax25.spec.in
index c0a7d8c..d2a90bf 100644
--- a/libax25.spec.in
+++ b/libax25.spec.in
@@ -25,12 +25,21 @@ Requires: %{name} = %{version}-%{release}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
+%package static
+Summary: Static library files for %{name}
+Group: Development/Libraries
+Requires: %{name}-static = %{version}-%{release}
+
+%description static
+The %{name}-static package contains the libax25 and libax25io libraries
+for static linking. You only need these for static linking applications.
+
%prep
%setup -q -n %{name}-@VERSION@
%build
-%configure --disable-static
+%configure
make %{?_smp_mflags}
%install
@@ -61,6 +70,10 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/*
%{_libdir}/*.so
+%files static
+%defattr(-,root,root,-)
+%{_libdir}/*.a
+
%changelog
* Sat Jun 27 2009 Ralf Baechle <ralf@linux-mips.org>
- Initial version