File s2tc.spec of Package s2tc
#
# spec file for package s2tc
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define libname libtxc_dxtn0
Name: s2tc
Version: 20130202
Release: 0
License: MIT
Summary: Super Simple Texture Compression
Url: https://github.com/divVerent/s2tc/wiki
Group: System/X11/Utilities
Source0: %name-%version.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: Mesa-devel
BuildRequires: xz
%description
Library that decompress s2tc compressed textures.
Contrary s3tc this algorithm is not patented and even faster.
It can be used to decompress s3tc textures with few artefacts,
because the patented codepaths are not implemented.
%package -n %libname
Summary: Super Simple Texture Compression
Group: System/Libraries
%description -n %libname
Library that decompress s2tc compressed textures.
Contrary s3tc this algorithm is not patented and even faster.
It can be used to decompress s3tc textures with few artefacts,
because the patented codepaths are not implemented.
%package devel
Summary: Super Simple Texture Compression devel libs
Group: Development/Libraries/C and C++
Requires: %libname = %version
%description devel
Development libraries for %libname texture compression algorithm
%prep
%setup -q
%build
%configure \
--disable-static \
--disable-runtime-linking
make %{?_smp_mflags}
%install
make DESTDIR=%buildroot install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
%files -n %libname
%defattr(-,root,root)
%doc COPYING README.txt
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog