nvidia-texture-tools/nvidia-texture-tools.spec

128 lines
3.7 KiB
RPMSpec
Raw Normal View History

2012-12-20 22:05:45 +00:00
%global soversion 2.0
Name: nvidia-texture-tools
Version: 2.0.8
2014-07-28 13:58:58 +00:00
Release: 8%{?dist}
2012-12-20 22:05:45 +00:00
Summary: Collection of image processing and texture manipulation tools
Group: System Environment/Libraries
License: MIT
URL: http://code.google.com/p/nvidia-texture-tools/
Source0: http://nvidia-texture-tools.googlecode.com/files/%{name}-%{version}-1.tar.gz
BuildRequires: cmake
BuildRequires: help2man
BuildRequires: libjpeg-turbo-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: openjpeg-devel
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
# g++ 4.7 does not include unistd.h by default to avoid namespace polution
Patch0: %{name}-%{version}-gcc4.7.patch
# use a saner type for int64 and uint64 generic typedefs that are unlikely
# to conflict with other headers that do not use long long on 64 bit
Patch1: %{name}-%{version}-wordsize.patch
# from 0ad sources
Patch2: %{name}-%{version}-png-api.patch
# add soversion to libraries
Patch3: %{name}-%{version}-soversion.patch
# install libraries in proper directory
Patch4: %{name}-%{version}-libdir.patch
2014-07-28 13:58:58 +00:00
# add arm support
Patch5: %{name}-arm.patch
# add aarch64 support
Patch6: %{name}-aarch64.patch
2012-12-20 22:05:45 +00:00
%description
The NVIDIA Texture Tools is a collection of image processing and texture
manipulation tools, designed to be integrated in game tools and asset
conditioning pipelines.
The primary features of the library are mipmap and normal map generation,
format conversion and DXT compression.
DXT compression is based on Simon Brown's squish library. The library also
contains an alternative GPU-accelerated compressor that uses CUDA and is
one order of magnitude faster.
%package devel
Summary: Development libraries/headers for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Headers and libraries for development with %{name}.
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
2013-07-30 15:34:37 +00:00
%patch5 -p1
2014-07-28 13:58:58 +00:00
%patch6 -p1
2012-12-20 22:05:45 +00:00
%build
mkdir -p build
pushd build
%cmake -DNVTT_SHARED=1 -DCMAKE_SKIP_RPATH=1 ..
make %{?_smp_mflags}
popd
sed -e 's/\r//' -i NVIDIA_*.txt
%install
make -C build install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
pushd $RPM_BUILD_ROOT/%{_bindir}
export LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir}:
for bin in *; do
help2man --no-info ./$bin > $RPM_BUILD_ROOT/%{_mandir}/man1/$bin.1
done
popd
%check
make -C build filtertest
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc NVIDIA_Texture_Tools_LICENSE.txt
%doc NVIDIA_Texture_Tools_README.txt
%{_bindir}/*
%{_libdir}/lib*.%{version}
%{_libdir}/lib*.%{soversion}
%{_mandir}/man1/*
%files devel
%doc ChangeLog
%{_includedir}/nvtt
%{_libdir}/lib*.so
%changelog
2014-07-28 13:58:58 +00:00
* Mon Jul 28 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.8-8
- add patch to fix ftbfs on aarch64
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2013-07-30 15:34:37 +00:00
* Tue Jul 30 2013 Dennis Gilmore <dennis@ausil.us> - 2.0.8-6
- fix build on arm
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 2.0.8-4
- rebuild due to "jpeg8-ABI" feature drop
2012-12-20 22:05:45 +00:00
* Wed Dec 19 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.0.8-3
- Correct source url (#823096).
- No need for a -progs subpackage (#823096).
* Wed May 30 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.0.8-2
- Rename tools subpackage to progs.
* Fri May 18 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.0.8-1
- Initial nvidia-texture-tools spec.