fix rpath, tighten subpkg dependencies, use %license
This commit is contained in:
parent
079b4dc769
commit
d61409a38f
18
LibRaw.spec
18
LibRaw.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: Library for reading RAW files obtained from digital photo cameras
|
Summary: Library for reading RAW files obtained from digital photo cameras
|
||||||
Name: LibRaw
|
Name: LibRaw
|
||||||
Version: 0.18.2
|
Version: 0.18.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://www.libraw.org
|
URL: http://www.libraw.org
|
||||||
@ -28,7 +28,7 @@ drawbacks have already been eliminated and part will be fixed in future.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: LibRaw development libraries
|
Summary: LibRaw development libraries
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
LibRaw development libraries.
|
LibRaw development libraries.
|
||||||
@ -39,6 +39,7 @@ against LibRaw.
|
|||||||
%package static
|
%package static
|
||||||
Summary: LibRaw static development libraries
|
Summary: LibRaw static development libraries
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description static
|
%description static
|
||||||
LibRaw static development libraries.
|
LibRaw static development libraries.
|
||||||
@ -55,11 +56,16 @@ LibRaw sample programs
|
|||||||
|
|
||||||
%patch0 -p0 -b .pkgconfig
|
%patch0 -p0 -b .pkgconfig
|
||||||
%patch1 -p1 -b .CVE-2015-8366
|
%patch1 -p1 -b .CVE-2015-8366
|
||||||
#%patch2 -p0
|
#patch2 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-examples=yes --enable-jasper --enable-lcms \
|
%configure --enable-examples=yes --enable-jasper --enable-lcms \
|
||||||
--enable-demosaic-pack-gpl2 --enable-demosaic-pack-gpl3
|
--enable-demosaic-pack-gpl2 --enable-demosaic-pack-gpl3
|
||||||
|
|
||||||
|
# https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
|
||||||
|
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 %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -72,7 +78,8 @@ make install DESTDIR=%{buildroot}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE.CDDL LICENSE.LGPL COPYRIGHT Changelog.txt
|
%doc Changelog.txt
|
||||||
|
%license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
@ -98,6 +105,9 @@ make install DESTDIR=%{buildroot}
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 14 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.18.2-2
|
||||||
|
- fix rpath, tighten subpkg dependencies, use %%license
|
||||||
|
|
||||||
* Thu Mar 09 2017 Jon Ciesla <limburgher@gmail.com> - 0.18.2-1
|
* Thu Mar 09 2017 Jon Ciesla <limburgher@gmail.com> - 0.18.2-1
|
||||||
- 0.18.2.
|
- 0.18.2.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user