package init
This commit is contained in:
parent
7fab2d3f8b
commit
a3de18e0ba
BIN
5.0.0.tar.gz
Normal file
BIN
5.0.0.tar.gz
Normal file
Binary file not shown.
84
python-rdflib.spec
Normal file
84
python-rdflib.spec
Normal file
@ -0,0 +1,84 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-rdflib
|
||||
Version: 5.0.0
|
||||
Release: 1
|
||||
Summary: RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/RDFLib/rdflib
|
||||
Source0: https://github.com/RDFLib/rdflib/archive/5.0.0.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: python3-si
|
||||
Requires: python3-isodat
|
||||
Requires: python3-pyparsin
|
||||
Requires: python3-sphinx
|
||||
Requires: python3-sphinxcontrib-apidoc
|
||||
Requires: python3-html5lib
|
||||
Requires: python3-requests
|
||||
Requires: python3-html5lib
|
||||
Requires: python3-networkx
|
||||
Requires: python3-nose
|
||||
Requires: python3-doctest-ignore-unicode
|
||||
|
||||
%description
|
||||
RDFLib is a Python library for working with
|
||||
RDF, a simple yet powerful language for representing information.
|
||||
|
||||
%package -n python3-rdflib
|
||||
Summary: RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
|
||||
Provides: python-rdflib
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
%description -n python3-rdflib
|
||||
RDFLib is a Python library for working with
|
||||
RDF, a simple yet powerful language for representing information.
|
||||
|
||||
%package help
|
||||
Summary: Development documents and examples for rdflib
|
||||
Provides: python3-rdflib-doc
|
||||
%description help
|
||||
Development documents and examples for rdflib
|
||||
|
||||
%prep
|
||||
%autosetup -n rdflib-5.0.0
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||
pushd %{buildroot}
|
||||
if [ -d usr/lib ]; then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ]; then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/bin ]; then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ]; then
|
||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
touch doclist.lst
|
||||
if [ -d usr/share/man ]; then
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%files -n python3-rdflib -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_pkgdocdir}
|
||||
|
||||
%changelog
|
||||
* Sat Feb 20 2021 Python_Bot <Python_Bot@openeuler.org>
|
||||
- Package Spec generated
|
||||
Loading…
x
Reference in New Issue
Block a user