File alchemy.spec of Package alchemy
#
# spec file for package alchemy
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: alchemy
URL: http://alchemy.cs.washington.edu/
Version: 0.beta.20100318
Release: 1
License: GPL
Group: System/Daemons
Summary: Tool for setting EXIF GPS data
Source: %{name}.tgz
Source1: html.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: make c++_compiler flex bison
%description
Alchemy is a software package providing a series of algorithms for statistical relational learning and probabilistic logic inference, based on the Markov logic representation. Alchemy allows you to easily develop a wide range of AI applications.
%prep
%setup -n %{name}
rm -rf doc/*
pushd doc
tar xvf "%{SOURCE1}"
popd
%build
pushd src
export CLFLAGS="%{optflags}"
make
popd
%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 bin/infer %{buildroot}%{_bindir}/
install -m 755 bin/learnstruct %{buildroot}%{_bindir}/
install -m 755 bin/learnwts %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -a doc/html %{buildroot}%{_docdir}/%{name}/
%clean
rm -fr %buildroot
%files
%defattr(-,root,root)
%doc license.txt README
%{_bindir}/infer
%{_bindir}/learnstruct
%{_bindir}/learnwts
%{_docdir}/%{name}/*
%changelog
* Thu Mar 18 2010 - Radomir Cernoch <radomir.cernoch@gmail.com> - 0.beta.20100318
- new package