diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:17:22 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 05:17:22 +0000 |
| commit | bb485e930a5c13c13d24aa29b9c824d14af414d0 (patch) | |
| tree | 75d1359937ff0ba3f71e35acae3a4ddba9849499 | |
| parent | 3051e260f510b95a62713ea3e2ea2acebc465271 (diff) | |
automatic import of python-stellaropeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-stellar.spec | 84 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/stellar-0.4.5.tar.gz diff --git a/python-stellar.spec b/python-stellar.spec new file mode 100644 index 0000000..395c5c2 --- /dev/null +++ b/python-stellar.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-stellar +Version: 0.4.5 +Release: 1 +Summary: stellar is a tool for creating and restoring database snapshots +License: BSD +URL: https://github.com/fastmonkeys/stellar +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f8/31/091f71810f010241544e9fd0ff794937f86a342693ccbbd542cba205f335/stellar-0.4.5.tar.gz +BuildArch: noarch + + +%description +[](https://travis-ci.org/fastmonkeys/stellar) + + +Stellar allows you to quickly restore database when you are e.g. writing database migrations, switching branches or messing with SQL. PostgreSQL and MySQL (partially) are supported. + + +%package -n python3-stellar +Summary: stellar is a tool for creating and restoring database snapshots +Provides: python-stellar +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-stellar +[](https://travis-ci.org/fastmonkeys/stellar) + + +Stellar allows you to quickly restore database when you are e.g. writing database migrations, switching branches or messing with SQL. PostgreSQL and MySQL (partially) are supported. + + +%package help +Summary: Development documents and examples for stellar +Provides: python3-stellar-doc +%description help +[](https://travis-ci.org/fastmonkeys/stellar) + + +Stellar allows you to quickly restore database when you are e.g. writing database migrations, switching branches or messing with SQL. PostgreSQL and MySQL (partially) are supported. + + +%prep +%autosetup -n stellar-0.4.5 + +%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-stellar -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.5-1 +- Package Spec generated @@ -0,0 +1 @@ +2f6841e1ee739f88addf49c98638a017 stellar-0.4.5.tar.gz |
