]>
Commit | Line | Data |
---|---|---|
c0ec9cab | 1 | Summary: Python XMLTools |
c6f19f91 | 2 | Summary(pl.UTF-8): Narzędzia XML dla Pythona |
c0ec9cab | 3 | Name: Narval |
89d3627a | 4 | %define _subname narval |
5 | Version: 2.0.2 | |
6 | Release: 0.1 | |
c0ec9cab | 7 | License: GPL |
41ab5956 | 8 | Group: Applications |
89d3627a | 9 | Source0: ftp://ftp.logilab.org/pub/narval/%{_subname}-%{version}.tar.gz |
10 | # Source0-md5: b996c2eb0eaf20a0569b311fecabd1e3 | |
7aa8cd50 JB |
11 | Source1: horn.desktop |
12 | Patch0: %{name}-apps_dir.patch | |
402886c6 | 13 | URL: http://www.logilab.org/narval/ |
c0ec9cab | 14 | BuildRequires: python >= 2.0 |
c0ec9cab | 15 | Requires: python-4Suite |
76ccc2a8 | 16 | Requires: python-PyXML |
17 | Requires: python-modules | |
e241e2d7 | 18 | Requires: python-pygtk-gtk |
76ccc2a8 | 19 | Requires: python-xmltools |
4a751702 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c0ec9cab JK |
21 | |
22 | %description | |
41ab5956 JK |
23 | NARVAL is the first software agent available as free software (Gnu |
24 | Public License). | |
c0ec9cab | 25 | |
41ab5956 JK |
26 | Narval is the acronym of "Network Assistant Reasoning with a |
27 | Validating Agent Language". | |
c0ec9cab | 28 | |
41ab5956 JK |
29 | Narval is a framework (language + interpreter + GUI/IDE) dedicated to |
30 | the setting up of intelligent personal assistants (IPAs). An | |
31 | Intelligent Personal Assitant is a companion that will help you in | |
32 | your daily work in the information world. | |
c0ec9cab | 33 | |
e54accbf JR |
34 | %description -l pl.UTF-8 |
35 | NARVAL to pierwszy programowy agent dostępny jako Wolne | |
41ab5956 | 36 | Oprogramowanie. |
76ccc2a8 | 37 | |
e54accbf | 38 | Narval to skrót od "Network Assistant Reasoning with a Validating |
41ab5956 | 39 | Agent Language". |
c0ec9cab | 40 | |
e54accbf JR |
41 | Narval to szkielet (język + interpreter + GUI/IDE) dedykowany |
42 | tworzeniu inteligentnych osobistych asystentów. Inteligentny osobisty | |
43 | asystent to towarzysz, który pomoże ci w codziennej pracy w świecie | |
41ab5956 | 44 | informacji. |
c0ec9cab JK |
45 | |
46 | %prep | |
89d3627a | 47 | %setup -q -n %{_subname}-%{version} |
48 | #/%patch -p1 | |
c0ec9cab JK |
49 | |
50 | %build | |
08e45dc4 | 51 | CFLAGS="%{rpmcflags}" %py_build |
c0ec9cab JK |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
89d3627a | 55 | install -d $RPM_BUILD_ROOT{%{_datadir}/narval/apps,%{_desktopdir},%{py_sitedir}/narval/} |
4a751702 | 56 | |
08e45dc4 | 57 | %py_install \ |
4a751702 | 58 | --record=INSTALLED_FILES |
c0ec9cab | 59 | |
c7beafec | 60 | # these files seem missing after installation, so install them here |
89d3627a | 61 | cp -r share/data/* $RPM_BUILD_ROOT%{_datadir}/narval/data/ |
c7beafec | 62 | install share/dtd/* $RPM_BUILD_ROOT%{_datadir}/narval/dtd/ |
89d3627a | 63 | install share/recipes/* $RPM_BUILD_ROOT%{_datadir}/narval/recipes/ |
64 | cp -r share/tests/* $RPM_BUILD_ROOT%{_datadir}/narval/tests | |
65 | ||
66 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
c7beafec | 67 | |
89d3627a | 68 | # move files to proper directories |
69 | cp -r $RPM_BUILD_ROOT%{_datadir}/python2.4/ $RPM_BUILD_ROOT%{_libdir} | |
70 | cp -r $RPM_BUILD_ROOT/usr/etc/ $RPM_BUILD_ROOT | |
71 | rm -frd $RPM_BUILD_ROOT/usr/etc/ $RPM_BUILD_ROOT%{_datadir}/python2.4/ | |
41ab5956 | 72 | |
c0ec9cab JK |
73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
89d3627a | 78 | %doc DEPENDS RECOMMENDS PKG-INFO README SUGGESTS |
79 | %doc doc/*.xml doc/technical_manual/*.xml doc/programmer_handbook/*.xml | |
97dd1623 | 80 | %doc doc/*.pdf doc/technical_manual/*.pdf doc/programmer_handbook/*.pdf |
c0ec9cab | 81 | %attr(755,root,root) %{_bindir}/* |
89d3627a | 82 | #%{python_sitepkgsdir}/narval |
83 | %dir %{py_sitedir}/narval | |
84 | %{py_sitedir}/narval/* | |
c0ec9cab | 85 | %{_datadir}/narval |
6f175288 | 86 | %{_desktopdir}/*.desktop |
97dd1623 | 87 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* |