-#
-# Conditional build:
-%bcond_with tests # build with tests
-%bcond_without tests # build without tests
-#
-Summary: ayam
-Summary(pl): ayam
+Summary: Ayam - a free 3D modelling environment for the RenderMan interface
+Summary(pl): Ayam - darmowe ¶rodowisko do modelowania 3D dla interfejsu RenderMan
Name: ayam
Version: 1.8.2
Release: 0.1
Epoch: 0
-License: GPL
-#Vendor: -
-Group: -
-#Icon: -
-Source0: http://dl.sourceforge.net/%{name}/%{name}%{version}.src.tar.gz
-# Source0-md5:
-#Source1: -
-# Source1-md5: -
-#Patch0: %{name}-what.patch
-#URL: -
-#BuildRequires: -
-#PreReq: -
-#Requires(pre,post): -
-#Requires(preun): -
-#Requires(postun): -
-#Requires: -
-#Provides: -
-#Obsoletes: -
-#Conflicts: -
-#BuildArch: noarch
-#ExclusiveArch: %{ix86}
+License: BSD
+Group: Applications/Graphics
+Source0: http://dl.sourceforge.net/ayam/%{name}%{version}.src.tar.gz
+# Source0-md5: 98984c09e4582e2347e485df962aa499
+Patch0: %{name}-Makefile.shared.patch
+URL: http://ayam.sourceforge.net/
+BuildRequires: OpenGL-devel
+BuildRequires: tcl-devel
+BuildRequires: tk-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
+Ayam is a free (as in free speech, BSD-licensed) 3D modelling
+environment for the RenderMan interface. Free means that neither the
+author nor any contributors make money out of this software. We need
+your (yes your!) feedback to keep this project alive. If you use Ayam,
+please submit your pictures, bug reports, or feature requests.
+
+Ayam features at a glance:
+
+- RIB (RenderMan Interface Bytestream) export and import.
+- Support for NURBS curves and (trimmed) NURBS surfaces, Boxes,
+ Quadrics (Sphere, Disk, Cylinder, Cone, Hyperboloid, Paraboloid, and
+ Torus), CSG, MetaBalls, Patch Meshes, Polygonal Meshes, and
+ Subdivision Surfaces.
+- NURBS modelling includes normal and interpolating curves as well as
+ extrude, revolve, sweep, birail, skin and gordon objects with caps,
+ holes, and bevels.
+- Custom objects that may freely implement their representations
+ (using OpenGL and RIB) and even small GUIs to edit their type specific
+ parameters may be written by the user and dynamically loaded at
+ runtime.
+- Scripting interface: Tcl.
+- Misc: instancing, arbitrary number of modeling views, object
+ clipboard, independent property clipboard, console, n-level undo.
%description -l pl
-
-#%package subpackage
-#Summary: -
-#Summary(pl): -
-#Group: -
-
-#%description subpackage
-
-#%description subpackage -l pl
+Ayam to wolnodostêpne (na licencji BSD) ¶rodowisko do modelowania 3D
+dla interfejsu RenderMan. Wolnodostêpne oznacza, ¿e autor ani
+wspó³twórcy nie otrzymuj± pieniêdzy za to oprogramowanie; potrzebuj±
+natomiast sprzê¿enia zwrotnego od u¿ytkowników, aby utrzymaæ projekt
+przy ¿yciu. U¿ywaj±cy Ayama proszeni s± o wysy³anie obrazów, zg³oszeñ
+b³êdów i pró¶b o nowe mo¿liwo¶ci.
+
+Przegl±d mo¿liwo¶ci Ayama:
+- eksport i import RIB (RenderMan Interface Bytestream)
+- obs³uga krzywych NURBS i (obciêtych) powierzchni NURBS,
+ prostopad³o¶cianów, kwadryk (sfer, dysków, cylindrów, sto¿ków,
+ hiperboloid, paraboloid, torusów), CSG, metakul, siatek ³at, siatek
+ wielok±tnych oraz powierzchni podpodzia³u
+- modelowanie NURBS obejmuje krzywe normalne i interpolowane, a tak¿e
+ wyt³aczanie, obroty, odchylanie, obiekty pow³ok z czapami, dziurami
+ i szwami
+- u¿ytkownik mo¿e tworzyæ i wczytywaæ dynamicznie w czasie dzia³ania
+ programu w³asne obiekty ³atwo implementuj±ce swoje reprezentacje
+ (przy u¿yciu OpenGL i RIB), a nawet ma³e GUI do edycji specyficznych
+ dla obiektu parametrów
+- interfejs skryptowy: Tcl
+- ró¿ne: tworzenie instancji, dowolna liczba widoków modelowania,
+ schowek dla obiektów, niezale¿ny schowek dla w³asno¶ci, konsola,
+ n-poziomowe undo
%prep
%setup -q -n %{name}
-#%patch0 -p1
+%patch0 -p1
%build
-# if ac/am/* rebuilding is necessary, do it in this order and add
-# appropriate BuildRequires
-#%%{__gettextize}
-#%%{__libtoolize}
-#%%{__aclocal}
-#%%{__autoconf}
-#%%{__autoheader}
-#%%{__automake}
-%configure
-%{__make}
+# TODO: optflags
+%{__make} -C src -f Makefile.shared
%install
rm -rf $RPM_BUILD_ROOT
# create directories if necessary
#install -d $RPM_BUILD_ROOT
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+#%{__make} install \
+# DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%pre
-
-%post
-
-%preun
-
-%postun
-
%files
%defattr(644,root,root,755)
%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
# initscript and its config
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
-
-#%files subpackage
-#%defattr(644,root,root,755)
-#%doc extras/*.gz
-#%{_datadir}/%{name}-ext