]>
Commit | Line | Data |
---|---|---|
bab78db9 | 1 | |
bab78db9 | 2 | %include /usr/lib/rpm/macros.python |
bab78db9 | 3 | |
96e3afe2 | 4 | %define module rdflib |
bab78db9 | 5 | |
6 | Summary: Python library for working with RDF | |
7 | Summary(pl): Biblioteka Pythona do pracy z RDF | |
96e3afe2 | 8 | Name: python-%{module} |
bab78db9 | 9 | Version: 2.0.0 |
10 | Release: 1 | |
11 | License: UNKNOWN | |
12 | Vendor: Robin Dunn <robin@alldunn.com> | |
13 | Group: Development/Languages/Python | |
96e3afe2 | 14 | Source0: http://rdflib.net/2004/03/10/%{module}-%{version}.tgz |
bab78db9 | 15 | # Source0-md5: 0118a5b5b56bc3662ae96240440aba83 |
16 | URL: http://rdflib.net/ | |
17 | BuildRequires: python-devel >= 2.3 | |
18 | BuildRequires: rpm-pythonprov | |
19 | %pyrequires_eq python-modules | |
96e3afe2 | 20 | BuildArch: noarch |
bab78db9 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | RDFLib is a Python library for working with RDF, a simple yet powerful | |
25 | language for representing information. The library contains an RDF/XML | |
26 | parser/serializer, a TripleStore, an InformationStore and various store | |
27 | backends. It is being developed by Daniel Krech along with the help of | |
28 | a number of contributors. | |
29 | ||
30 | ||
31 | %prep | |
96e3afe2 | 32 | %setup -q -n %{module}-%{version} |
bab78db9 | 33 | |
34 | %build | |
35 | env CFLAGS="%{rpmcflags}" python setup.py build | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | python -- setup.py install --root=$RPM_BUILD_ROOT --optimize=2 | |
96e3afe2 | 40 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py | xargs rm -f |
bab78db9 | 41 | |
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc README TODO LICENSE doc example.py index.html | |
96e3afe2 | 48 | %{py_sitescriptdir}/%{module} |