]>
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/ |
ab9422ba | 14 | BuildRequires: rpmbuild(macros) >= 1.710 |
c0ec9cab | 15 | BuildRequires: python >= 2.0 |
c0ec9cab | 16 | Requires: python-4Suite |
76ccc2a8 | 17 | Requires: python-PyXML |
18 | Requires: python-modules | |
e241e2d7 | 19 | Requires: python-pygtk-gtk |
76ccc2a8 | 20 | Requires: python-xmltools |
4a751702 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c0ec9cab JK |
22 | |
23 | %description | |
41ab5956 JK |
24 | NARVAL is the first software agent available as free software (Gnu |
25 | Public License). | |
c0ec9cab | 26 | |
41ab5956 JK |
27 | Narval is the acronym of "Network Assistant Reasoning with a |
28 | Validating Agent Language". | |
c0ec9cab | 29 | |
41ab5956 JK |
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. | |
c0ec9cab | 34 | |
e54accbf JR |
35 | %description -l pl.UTF-8 |
36 | NARVAL to pierwszy programowy agent dostępny jako Wolne | |
41ab5956 | 37 | Oprogramowanie. |
76ccc2a8 | 38 | |
e54accbf | 39 | Narval to skrót od "Network Assistant Reasoning with a Validating |
41ab5956 | 40 | Agent Language". |
c0ec9cab | 41 | |
e54accbf JR |
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 | |
41ab5956 | 45 | informacji. |
c0ec9cab JK |
46 | |
47 | %prep | |
89d3627a | 48 | %setup -q -n %{_subname}-%{version} |
49 | #/%patch -p1 | |
c0ec9cab JK |
50 | |
51 | %build | |
08e45dc4 | 52 | CFLAGS="%{rpmcflags}" %py_build |
c0ec9cab JK |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
89d3627a | 56 | install -d $RPM_BUILD_ROOT{%{_datadir}/narval/apps,%{_desktopdir},%{py_sitedir}/narval/} |
4a751702 | 57 | |
08e45dc4 | 58 | %py_install \ |
4a751702 | 59 | --record=INSTALLED_FILES |
c0ec9cab | 60 | |
c7beafec | 61 | # these files seem missing after installation, so install them here |
89d3627a | 62 | cp -r share/data/* $RPM_BUILD_ROOT%{_datadir}/narval/data/ |
c7beafec | 63 | install share/dtd/* $RPM_BUILD_ROOT%{_datadir}/narval/dtd/ |
89d3627a | 64 | install share/recipes/* $RPM_BUILD_ROOT%{_datadir}/narval/recipes/ |
65 | cp -r share/tests/* $RPM_BUILD_ROOT%{_datadir}/narval/tests | |
66 | ||
67 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
c7beafec | 68 | |
89d3627a | 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/ | |
41ab5956 | 73 | |
c0ec9cab JK |
74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
89d3627a | 79 | %doc DEPENDS RECOMMENDS PKG-INFO README SUGGESTS |
80 | %doc doc/*.xml doc/technical_manual/*.xml doc/programmer_handbook/*.xml | |
97dd1623 | 81 | %doc doc/*.pdf doc/technical_manual/*.pdf doc/programmer_handbook/*.pdf |
c0ec9cab | 82 | %attr(755,root,root) %{_bindir}/* |
89d3627a | 83 | #%{python_sitepkgsdir}/narval |
84 | %dir %{py_sitedir}/narval | |
85 | %{py_sitedir}/narval/* | |
c0ec9cab | 86 | %{_datadir}/narval |
6f175288 | 87 | %{_desktopdir}/*.desktop |
97dd1623 | 88 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* |