diff --git a/LibRaw.spec b/LibRaw.spec index 518f595..c0d1c52 100644 --- a/LibRaw.spec +++ b/LibRaw.spec @@ -1,7 +1,7 @@ Summary: Library for reading RAW files obtained from digital photo cameras Name: LibRaw Version: 0.19.0 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ URL: http://www.libraw.org @@ -57,7 +57,7 @@ LibRaw sample programs sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -make %{?_smp_mflags} +%make_build %install cp -pr doc manual @@ -65,33 +65,41 @@ chmod 644 LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt chmod 644 manual/*.html # The Libraries -make install DESTDIR=%{buildroot} +%make_install + +rm -fv %{buildroot}%{_libdir}/lib*.la + +%ldconfig_scriptlets %files %doc Changelog.txt %license LICENSE.CDDL LICENSE.LGPL COPYRIGHT -%{_libdir}/*.so.* +%{_libdir}/libraw.so.19* +%{_libdri}/libraw_r.so.19* %files static -%{_libdir}/*.a +%{_libdir}/libraw.a +%{_libdir}/libraw_r.a %files devel %doc manual %doc samples -%dir %{_includedir}/libraw -%{_includedir}/libraw/*.h -%{_libdir}/*.so -%{_libdir}/pkgconfig/*.pc -%exclude %{_libdir}/*.la +%{_includedir}/libraw/ +%{_libdir}/libraw.so +%{_libdir}/libraw_r.so +%{_libdir}/pkgconfig/libraw.pc +%{_libdir}/pkgconfig/libraw_r.pc %exclude %{_docdir}/libraw/* %files samples %{_bindir}/* -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig %changelog +* Thu Jul 19 2018 Rex Dieter - 0.19.0-3 +- tighten %%files, mostly so api/soname changes will no longer be a surpise +- use %%make_build %%ldconfig_scriptlets + * Thu Jul 12 2018 Fedora Release Engineering - 0.19.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild