fix source link, x86_64: install in correct libdir; move .so link to -devel package [release 1.15-2mamba;Thu Apr 02 2020]
This commit is contained in:
parent
72bba43fdc
commit
b0e0392420
@ -1,2 +1,4 @@
|
|||||||
# libsquish
|
# libsquish
|
||||||
|
|
||||||
|
The libSquish library compresses images with the DXT standard (also known as S3TC). This standard is mainly used by OpenGL and DirectX for the lossy compression of RGBA textures.
|
||||||
|
|
||||||
|
72
libsquish.spec
Normal file
72
libsquish.spec
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
Name: libsquish
|
||||||
|
Version: 1.15
|
||||||
|
Release: 2mamba
|
||||||
|
Summary: A library for images compression in DXT standard
|
||||||
|
Group: System/Libraries
|
||||||
|
Vendor: openmamba
|
||||||
|
Distribution: openmamba
|
||||||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
|
URL: https://sourceforge.net/projects/libsquish/
|
||||||
|
Source: https://sourceforge.net/projects/libsquish/files/libsquish-%{version}.tgz
|
||||||
|
License: MIT
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: ldconfig
|
||||||
|
BuildRequires: libgcc
|
||||||
|
BuildRequires: libgomp-devel
|
||||||
|
BuildRequires: libstdc++6-devel
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
|
||||||
|
%description
|
||||||
|
The libSquish library compresses images with the DXT standard (also known as S3TC). This standard is mainly used by OpenGL and DirectX for the lossy compression of RGBA textures.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Group: Development/Libraries
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains libraries and header files for developing applications that use %{name}.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c %{name}-%{version}
|
||||||
|
%ifarch x86_64 aarch64
|
||||||
|
sed -i "s| DESTINATION lib$| DESTINATION %{_lib}|" CMakeLists.txt
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cmake -d build \
|
||||||
|
\
|
||||||
|
%ifnarch x86_64 %{ix86}
|
||||||
|
-DBUILD_SQUISH_WITH_SSE2=OFF
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%make
|
||||||
|
|
||||||
|
%install
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
%makeinstall -C build
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/libsquish.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/libsquish.so
|
||||||
|
%{_includedir}/squish.h
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Apr 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15-2mamba
|
||||||
|
- fix source link, x86_64: install in correct libdir; move .so link to -devel package
|
||||||
|
|
||||||
|
* Thu Apr 02 2020 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.15-1mamba
|
||||||
|
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user