File libtex3dbuilder.spec of Package libtex3dbuilder

#
# spec file for package librawbuilder (Version 1.0)
#

# norootforbuild

Name:          libtex3dbuilder
License:       GPL
Group:         System/Libraries
Version:       0.931
Release:       0
Summary:       Builder for storing volume data as a 3D texture
Source:        %name-%version.tar.gz
BuildRequires: cmake gcc-c++ libvre-devel >= 0.931 Mesa-devel
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on

%description
Tex3D builder is a plugin for volume rendering engine (VRE) which adds support for storing loaded volume data in a graphics memory in a 3D texture. Bricking is supported.

%package       -n %{name}0
Summary:       Builder for storing volume data as a 3D texture
Group:         System/Libraries

%description   -n %{name}0
Tex3D builder is a plugin for volume rendering engine (VRE) which adds support for storing loaded volume data in a graphics memory in a 3D texture. Bricking is supported.

%package       devel
Summary:       Include Files and Libraries mandatory for Development
Group:         Development/Libraries/C and C++
Requires:      %{name}0 = %{version} libvre-devel >= 0.931 Mesa-devel

%description   devel
The libtex3dbuilder-devel package contains libraries and header files for developing applications that use libtex3dbuilder builder plugin.

%prep
%setup -q

%build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make %{?_smp_mflags}
cd ..

%install
cd build
mkdir -p %{buildroot}%{_prefix}/lib64
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{buildroot}%{_prefix} ..
make install
cd ..

%clean
rm -rf %{buildroot}

%post -n %{name}0 -p /sbin/ldconfig

%postun -n %{name}0 -p /sbin/ldconfig

%files -n %{name}0
%defattr(-,root,root,-)
%{_libdir}/%{name}.so.*

%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/vre/builders/tex3DBuilder/
%{_includedir}/vre/builders/tex3DBuilder/*.h
%{_libdir}/%{name}.so

%changelog