diff --git a/README.md b/README.md index f61d188..37a4797 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # 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. + diff --git a/libsquish.spec b/libsquish.spec new file mode 100644 index 0000000..3c6d559 --- /dev/null +++ b/libsquish.spec @@ -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 +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 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 1.15-1mamba +- package created using the webbuild interface