diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-17 02:49:23 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 02:49:23 +0000 |
commit | 743ebb617584df1c88e59b7abe7c0c806cc0cdca (patch) | |
tree | 5db1bb5dda478c9ceb15962744f79761bfeb0b65 /python-vsg.spec | |
parent | e62bd03c1d5ac0ccee238d6bd3e5ac927158e126 (diff) |
automatic import of python-vsg
Diffstat (limited to 'python-vsg.spec')
-rw-r--r-- | python-vsg.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/python-vsg.spec b/python-vsg.spec new file mode 100644 index 0000000..1feb153 --- /dev/null +++ b/python-vsg.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-vsg +Version: 3.15.0 +Release: 1 +Summary: VHDL Style Guide +License: GNU General Public License +URL: https://github.com/jeremiah-c-leary/vhdl-style-guide +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ea/a3/bec74c137b5978e51163cb76e5d21f75488bf6c9489f22af4b9fc7381128/vsg-3.15.0.tar.gz +BuildArch: noarch + + +%description +**Coding style enforcement for VHDL.** + +%package -n python3-vsg +Summary: VHDL Style Guide +Provides: python-vsg +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-vsg +**Coding style enforcement for VHDL.** + +%package help +Summary: Development documents and examples for vsg +Provides: python3-vsg-doc +%description help +**Coding style enforcement for VHDL.** + +%prep +%autosetup -n vsg-3.15.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-vsg -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 3.15.0-1 +- Package Spec generated |