Группа :: Разработка/Python
Пакет: python-module-fiat
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define origname FIAT
%def_without new_package
Name: python-module-fiat
Version: 0.3.4
Release: alt3.hg20090831
Summary: FInite element Automatic Tabulator
Group: Development/Python
License: LGPL
URL: http://www.fenics.org/wiki/FIAT
Source: http://www.fenics.org/pub/software/fiat/FIAT-0.3.4.tar.gz
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
BuildArch: noarch
BuildRequires(pre): rpm-build-python
BuildPreReq: python-devel tetex-latex
%setup_python_module %origname
%description
FIAT is a FInite element Automatic Tabulator.
%package new
Summary: New experimental FIAT package
Group: Development/Python
BuildArch: noarch
%setup_python_module %{origname}_NEW
%description new
FIAT is a FInite element Automatic Tabulator.
This is a new experimental FIAT package.
%package manual
Summary: Documentation for FIAT
Group: Documentation
BuildArch: noarch
%description manual
FIAT is a FInite element Automatic Tabulator.
This package contains documentation for FIAT.
%prep
%setup
%build
%python_build
pushd doc
pdflatex manual.tex
popd
%install
CFLAGS="%optflags" python setup.py install \
--root=%buildroot --optimize=2
%if_with new_package
cp -fR %{origname}_NEW %buildroot%python_sitelibdir/
%endif
install -d %buildroot%_docdir/%origname
install -m644 doc/*.pdf %buildroot%_docdir/%origname
%files
%doc LICENSE change todo
%python_sitelibdir/*
%if_with new_package
%exclude %python_sitelibdir/%{origname}_NEW
%endif
%if_with new_package
%files new
%python_sitelibdir/%{origname}_NEW
%endif
%files manual
%_docdir/%origname
%changelog
…
Полный changelog можно просмотреть здесь
%def_without new_package
Name: python-module-fiat
Version: 0.3.4
Release: alt3.hg20090831
Summary: FInite element Automatic Tabulator
Group: Development/Python
License: LGPL
URL: http://www.fenics.org/wiki/FIAT
Source: http://www.fenics.org/pub/software/fiat/FIAT-0.3.4.tar.gz
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
BuildArch: noarch
BuildRequires(pre): rpm-build-python
BuildPreReq: python-devel tetex-latex
%setup_python_module %origname
%description
FIAT is a FInite element Automatic Tabulator.
%package new
Summary: New experimental FIAT package
Group: Development/Python
BuildArch: noarch
%setup_python_module %{origname}_NEW
%description new
FIAT is a FInite element Automatic Tabulator.
This is a new experimental FIAT package.
%package manual
Summary: Documentation for FIAT
Group: Documentation
BuildArch: noarch
%description manual
FIAT is a FInite element Automatic Tabulator.
This package contains documentation for FIAT.
%prep
%setup
%build
%python_build
pushd doc
pdflatex manual.tex
popd
%install
CFLAGS="%optflags" python setup.py install \
--root=%buildroot --optimize=2
%if_with new_package
cp -fR %{origname}_NEW %buildroot%python_sitelibdir/
%endif
install -d %buildroot%_docdir/%origname
install -m644 doc/*.pdf %buildroot%_docdir/%origname
%files
%doc LICENSE change todo
%python_sitelibdir/*
%if_with new_package
%exclude %python_sitelibdir/%{origname}_NEW
%endif
%if_with new_package
%files new
%python_sitelibdir/%{origname}_NEW
%endif
%files manual
%_docdir/%origname
%changelog
…
Полный changelog можно просмотреть здесь