diff --git a/envisage-6.0.1.tar.gz b/envisage-6.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..57d6d93131cc27e44fe638182139d2f7411d9903 Binary files /dev/null and b/envisage-6.0.1.tar.gz differ diff --git a/python-envisage.spec b/python-envisage.spec new file mode 100644 index 0000000000000000000000000000000000000000..c1f009b6613c6f82aad2103e1c74f74d6a7d8adf --- /dev/null +++ b/python-envisage.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-envisage +Version: 6.0.1 +Release: 1 +Summary: Extensible application framework +License: BSD +URL: https://github.com/enthought/envisage +Source0: https://files.pythonhosted.org/packages/e5/9e/34e059bb69b5510247ea3c1a6589fcd5b302ad097726806c10ea40b10b87/envisage-6.0.1.tar.gz +BuildArch: noarch + + +%description +Envisage is a Python-based framework for building extensible applications, that is, applications whose functionality can be extended by adding "plug-ins". Envisage provides a standard mechanism for features to be added to an application, whether by the original developer or by someone else. + +%package -n python3-envisage +Summary: Extensible application framework +Provides: python-envisage +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-envisage + + +%package help +Summary: Development documents and examples for envisage +Provides: python3-envisage-doc +%description help +Development documents and examples for envisage. + +%prep +%autosetup -n envisage-6.0.1 + +%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 . +sed -i 's/\(^.*$\)/"\1"/g' filelist.lst doclist.lst +find %{buildroot} -type f -exec file {} ';' | grep "\" | awk -F ':' '{print $1}' | xargs -i chrpath --delete "{}" + +%files -n python3-envisage -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Oct 15 2021 yinzehao - 6.0.1-1 +- Package Spec generated