diff --git a/python-xml2rfc.spec b/python-xml2rfc.spec new file mode 100644 index 0000000000000000000000000000000000000000..3358483b199db7c2ec0075084cb5f29dee81a069 --- /dev/null +++ b/python-xml2rfc.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-xml2rfc +Version: 3.0.0 +Release: 1 +Summary: Xml2rfc generates RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies. +License: BSD-3-Clause +URL: https://tools.ietf.org/tools/xml2rfc/trac/ +Source0: https://files.pythonhosted.org/packages/1a/6a/8fd3e8acd01518f04b33152f1bdf8d02d26d89dc01c3ba19c15ad7dbab53/xml2rfc-3.0.0.tar.gz +BuildArch: noarch + + +%global _description\ +The IETF uses a specific format for the standards and other documents it\ +publishes as RFCs, and for the draft documents which are produced when\ +developing documents for publications. There exists a number of different\ +tools to facilitate the formatting of drafts and RFCs according to the\ +existing rules, and this tool, xml2rfc, is one of them. It takes as input\ +an xml file which contains the text and meta-information about author names\ +etc., and transforms it into suitably formatted output. The input xml file\ +should follow the grammars in RFC7749 (for v2 documents) or RFC7991 (for \ +v3 documents). Note that the grammar for v3 is still being refined, and \ +changes will eventually be captured in the `bis draft for 7991`. \ +Changes not yet captured can be seen in the xml2rfc source `v3.rng`.\ +xml2rfc provides a variety of output formats. See the command line\ +help for a full list of formats. It also provides conversion from v2 to\ +v3, and can run the preptool on its input. +%description %_description + +%package -n python3-xml2rfc +Summary: Xml2rfc generates RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies. +Provides: python-xml2rfc +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-xml2rfc %_description + +%package help +Summary: Development documents and examples for xml2rfc +Provides: python3-xml2rfc-doc +%description help %_description + +%prep +%autosetup -n xml2rfc-3.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-xml2rfc -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Sep 02 2020 Python_Bot +- Package Spec generated diff --git a/python-xml2rfc.yaml b/python-xml2rfc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c0ab8f90f67f825f6e34e3e341302005a474f271 --- /dev/null +++ b/python-xml2rfc.yaml @@ -0,0 +1,4 @@ +version_control: svn +src_repo: https://svn.tools.ietf.org/svn/tools/xml2rfc +tag_prefix: +separator: "." diff --git a/xml2rfc-3.0.0.tar.gz b/xml2rfc-3.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2ede9ca87bbed699d75f89cb084eebf5fc69f589 Binary files /dev/null and b/xml2rfc-3.0.0.tar.gz differ