summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-10-10 11:43:54 +0200
committerMichael Schroeder <mls@suse.de>2011-10-10 11:43:54 +0200
commitff870bb9efbb1b9928e4bab6e42874878db77622 (patch)
tree61923bff2e7418f0e83babb3a79bdfbaf16fd872 /package
parent234ec8f5cce92d4a28a47da27621405c44a90ef3 (diff)
downloadlibsolv-ff870bb9efbb1b9928e4bab6e42874878db77622.tar.gz
libsolv-ff870bb9efbb1b9928e4bab6e42874878db77622.tar.bz2
libsolv-ff870bb9efbb1b9928e4bab6e42874878db77622.zip
fix specfile so that static builds work
Diffstat (limited to 'package')
-rw-r--r--package/libsolv.spec.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in
index 8d73267..9d32251 100644
--- a/package/libsolv.spec.in
+++ b/package/libsolv.spec.in
@@ -223,8 +223,14 @@ rm -rf "$RPM_BUILD_ROOT"
%files devel
%defattr(-,root,root)
+%if %{with enable_static}
+%{_libdir}/libsolv.a
+%{_libdir}/libsolvext.a
+%endif
+%if !%{with disable_shared}
%{_libdir}/libsolv.so
%{_libdir}/libsolvext.so
+%endif
%{_includedir}/solv
%{_bindir}/helix2solv
%{_datadir}/cmake/Modules/*