1 Summary: Python XMLTools
2 Summary(pl.UTF-8): Narzędzia XML dla Pythona
4 %define _subname narval
9 Source0: ftp://ftp.logilab.org/pub/narval/%{_subname}-%{version}.tar.gz
10 # Source0-md5: b996c2eb0eaf20a0569b311fecabd1e3
12 Patch0: %{name}-apps_dir.patch
13 URL: http://www.logilab.org/narval/
14 BuildRequires: rpmbuild(macros) >= 1.710
15 BuildRequires: python >= 2.0
16 Requires: python-4Suite
17 Requires: python-PyXML
18 Requires: python-modules
19 Requires: python-pygtk-gtk
20 Requires: python-xmltools
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 NARVAL is the first software agent available as free software (Gnu
27 Narval is the acronym of "Network Assistant Reasoning with a
28 Validating Agent Language".
30 Narval is a framework (language + interpreter + GUI/IDE) dedicated to
31 the setting up of intelligent personal assistants (IPAs). An
32 Intelligent Personal Assitant is a companion that will help you in
33 your daily work in the information world.
35 %description -l pl.UTF-8
36 NARVAL to pierwszy programowy agent dostępny jako Wolne
39 Narval to skrót od "Network Assistant Reasoning with a Validating
42 Narval to szkielet (język + interpreter + GUI/IDE) dedykowany
43 tworzeniu inteligentnych osobistych asystentów. Inteligentny osobisty
44 asystent to towarzysz, który pomoże ci w codziennej pracy w świecie
48 %setup -q -n %{_subname}-%{version}
52 CFLAGS="%{rpmcflags}" %py_build
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_datadir}/narval/apps,%{_desktopdir},%{py_sitedir}/narval/}
59 --record=INSTALLED_FILES
61 # these files seem missing after installation, so install them here
62 cp -r share/data/* $RPM_BUILD_ROOT%{_datadir}/narval/data/
63 install share/dtd/* $RPM_BUILD_ROOT%{_datadir}/narval/dtd/
64 install share/recipes/* $RPM_BUILD_ROOT%{_datadir}/narval/recipes/
65 cp -r share/tests/* $RPM_BUILD_ROOT%{_datadir}/narval/tests
67 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
69 # move files to proper directories
70 cp -r $RPM_BUILD_ROOT%{_datadir}/python2.4/ $RPM_BUILD_ROOT%{_libdir}
71 cp -r $RPM_BUILD_ROOT/usr/etc/ $RPM_BUILD_ROOT
72 rm -frd $RPM_BUILD_ROOT/usr/etc/ $RPM_BUILD_ROOT%{_datadir}/python2.4/
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc DEPENDS RECOMMENDS PKG-INFO README SUGGESTS
80 %doc doc/*.xml doc/technical_manual/*.xml doc/programmer_handbook/*.xml
81 %doc doc/*.pdf doc/technical_manual/*.pdf doc/programmer_handbook/*.pdf
82 %attr(755,root,root) %{_bindir}/*
83 #%{python_sitepkgsdir}/narval
84 %dir %{py_sitedir}/narval
85 %{py_sitedir}/narval/*
87 %{_desktopdir}/*.desktop
88 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*