diff --git a/e2fsprogs.changes b/e2fsprogs.changes index ecbda57..ed606de 100644 --- a/e2fsprogs.changes +++ b/e2fsprogs.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Aug 7 00:00:00 CEST 2015 - dsterba@suse.com + +- spec: add static library dependencies + +------------------------------------------------------------------- +Mon Jul 27 00:00:00 CEST 2015 - dsterba@suse.com + +- enable static build and package static libraries + ------------------------------------------------------------------- Sat Jun 20 23:33:05 UTC 2015 - crrodriguez@opensuse.org diff --git a/e2fsprogs.spec b/e2fsprogs.spec index 958c099..039dada 100644 --- a/e2fsprogs.spec +++ b/e2fsprogs.spec @@ -137,6 +137,19 @@ Requires: libext2fs2 = %version %endif Development files for libext2fs. +%if ! %{build_mini} +%package -n libext2fs-devel-static +Summary: Development files for libext2fs +License: LGPL-2.0 +Group: Development/Libraries/C and C++ +Requires: libext2fs-devel = %{version} +Provides: libext2fs-devel:%{_libdir}/libe2p.a +Provides: libext2fs-devel:%{_libdir}/libext2fs.a + +%description -n libext2fs-devel-static +Development files for libext2fs. Static libraries. +%endif + %if %{build_mini} %package -n libcom_err2-mini %else @@ -184,6 +197,24 @@ Requires: libcom_err2 = %version %endif Development files for the com_err error message display library. +%if ! %{build_mini} +%package -n libcom_err-devel-static +Summary: Development files for libcom_err, static libraries +License: MIT +Group: Development/Libraries/C and C++ +Requires: libcom_err-devel = %{version} +Provides: libcom_err-devel:%{_libdir}/libcom_err.a +Provides: libcom_err-devel:%{_libdir}/libss.a +# bug437293 +%ifarch ppc64 +Obsoletes: libcom_err-devel-64bit +%endif +# + +%description -n libcom_err-devel-static +Development files for the com_err error message display library. Static libraries. +%endif + %prep %setup -q -n e2fsprogs-%{version} # e2fsprogs patches @@ -203,6 +234,7 @@ autoreconf --force --install --disable-libuuid \ --disable-uuidd \ --disable-fsck \ + --enable-static \ CFLAGS="$RPM_OPT_FLAGS" %if %{build_mini} rm -rf doc @@ -222,12 +254,6 @@ rm -f $RPM_BUILD_ROOT/%{_sbindir}/fsck.ext4dev rm -f $RPM_BUILD_ROOT/usr/share/man/man8/mkfs.ext4dev.8* rm -f $RPM_BUILD_ROOT/usr/share/man/man8/fsck.ext4dev.8* -# Need libext2fs.a for silo -find "%buildroot/%_libdir" -type f -name "*.a" \ -%ifarch %sparc - ! -name libext2fs.a \ -%endif - -print -delete #UsrMerge mkdir %{buildroot}/sbin ln -s %{_sbindir}/badblocks %{buildroot}/sbin/badblocks @@ -371,9 +397,6 @@ done %endif %defattr(-, root, root) %{_libdir}/libext2fs.so -%ifarch %sparc -%{_libdir}/libext2fs.a -%endif %{_libdir}/libe2p.so /usr/include/ext2fs /usr/include/e2p @@ -414,4 +437,16 @@ done %{_mandir}/man1/mk_cmds.1.gz %{_mandir}/man3/com_err.3.gz +%if ! %{build_mini} +%files -n libcom_err-devel-static +%defattr(-, root, root) +%{_libdir}/libcom_err.a +%{_libdir}/libss.a + +%files -n libext2fs-devel-static +%defattr(-, root, root) +%{_libdir}/libext2fs.a +%{_libdir}/libe2p.a +%endif + %changelog