File plochy.spec of Package plochy

# norootforbuild

Name:          plochy
License:       GPL
Group:         System/Libraries
Version:       1.1
Release:       0
Summary:       Sample application for surface modeling class
Source:        %name-%version.tar.gz
BuildRequires: libqt4-devel gcc-c++ cmake
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on

%description
Sample application for class 'Modelovanie kriviek a ploch (2)' (http://hark.sk/plochy). Implements Bezier tensor-product and triangle patches, tensor-product B-spline patches and Coons patch. Model of cyclide is used to connet cylinder and a plane.

%prep
%setup -q

%build
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make

%install
cd build && cmake -DCMAKE_INSTALL_PREFIX=%{buildroot}%{_prefix} .. && make install

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}

%changelog