diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-entropy.spec | 300 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 302 insertions, 0 deletions
@@ -0,0 +1 @@ +/entropy-0.1.5.tar.gz diff --git a/python-entropy.spec b/python-entropy.spec new file mode 100644 index 0000000..57ccf4b --- /dev/null +++ b/python-entropy.spec @@ -0,0 +1,300 @@ +%global _empty_manifest_terminate_build 0 +Name: python-entropy +Version: 0.1.5 +Release: 1 +Summary: entropy is a command line friend that helps you reduce entropy in your life +License: MIT +URL: https://github.com/h4ck3rk3y/entropy +Source0: https://mirrors.aliyun.com/pypi/web/packages/58/69/0417391d23a1407395e6b63ff7a38f2a4978eec18d0629b89b6e21eba1e3/entropy-0.1.5.tar.gz +BuildArch: noarch + + +%description +# entropy + + + +the natural state of entropy is to increase. we must fight against it. 💪 + +entropy is a command line friend that helps you reduce entropy +in your life + + +## Demo + + + +## Installation + +### 1: [PIP](https://pypi.python.org/pypi/entropy) + +```bash +$ pip install entropy +``` + +### 2: From source + +```bash +$ git clone https://github.com/h4ck3rk3y/entropy +$ cd entropy +$ python setup.py install +``` + +## Usage + +### Tell entropy how today went + +``` bash +$ entropy status add +``` + +### Ask entropy at how today, yesterday, week, month, year and lfie have been going + +```bash +$ entropy status view today +$ entropy status view yesterday +$ entropy status view week +$ entropy status view month +$ entropy status view year +$ entropy status view life +$ entropy status view YYYY-mm-dd +``` + +### Journal with entropy every morning + +```bash +$ entropy journal add +``` + +### Ask entropy to retrieve older journals for you + +```bash +$ entropy journal view today +$ entropy journal view yesterday +$ entropy journal view YYYY-mm-dd +``` + +### If you need help, don't be shy + +```bash +$ entropy --help +``` + +## Contributing + +Use the [Github](https://github.com/h4ck3rk3y/entropy) to file bugs or push new features. + +## License + +Open sourced under the **MIT License** + +%package -n python3-entropy +Summary: entropy is a command line friend that helps you reduce entropy in your life +Provides: python-entropy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-entropy +# entropy + + + +the natural state of entropy is to increase. we must fight against it. 💪 + +entropy is a command line friend that helps you reduce entropy +in your life + + +## Demo + + + +## Installation + +### 1: [PIP](https://pypi.python.org/pypi/entropy) + +```bash +$ pip install entropy +``` + +### 2: From source + +```bash +$ git clone https://github.com/h4ck3rk3y/entropy +$ cd entropy +$ python setup.py install +``` + +## Usage + +### Tell entropy how today went + +``` bash +$ entropy status add +``` + +### Ask entropy at how today, yesterday, week, month, year and lfie have been going + +```bash +$ entropy status view today +$ entropy status view yesterday +$ entropy status view week +$ entropy status view month +$ entropy status view year +$ entropy status view life +$ entropy status view YYYY-mm-dd +``` + +### Journal with entropy every morning + +```bash +$ entropy journal add +``` + +### Ask entropy to retrieve older journals for you + +```bash +$ entropy journal view today +$ entropy journal view yesterday +$ entropy journal view YYYY-mm-dd +``` + +### If you need help, don't be shy + +```bash +$ entropy --help +``` + +## Contributing + +Use the [Github](https://github.com/h4ck3rk3y/entropy) to file bugs or push new features. + +## License + +Open sourced under the **MIT License** + +%package help +Summary: Development documents and examples for entropy +Provides: python3-entropy-doc +%description help +# entropy + + + +the natural state of entropy is to increase. we must fight against it. 💪 + +entropy is a command line friend that helps you reduce entropy +in your life + + +## Demo + + + +## Installation + +### 1: [PIP](https://pypi.python.org/pypi/entropy) + +```bash +$ pip install entropy +``` + +### 2: From source + +```bash +$ git clone https://github.com/h4ck3rk3y/entropy +$ cd entropy +$ python setup.py install +``` + +## Usage + +### Tell entropy how today went + +``` bash +$ entropy status add +``` + +### Ask entropy at how today, yesterday, week, month, year and lfie have been going + +```bash +$ entropy status view today +$ entropy status view yesterday +$ entropy status view week +$ entropy status view month +$ entropy status view year +$ entropy status view life +$ entropy status view YYYY-mm-dd +``` + +### Journal with entropy every morning + +```bash +$ entropy journal add +``` + +### Ask entropy to retrieve older journals for you + +```bash +$ entropy journal view today +$ entropy journal view yesterday +$ entropy journal view YYYY-mm-dd +``` + +### If you need help, don't be shy + +```bash +$ entropy --help +``` + +## Contributing + +Use the [Github](https://github.com/h4ck3rk3y/entropy) to file bugs or push new features. + +## License + +Open sourced under the **MIT License** + +%prep +%autosetup -n entropy-0.1.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-entropy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.5-1 +- Package Spec generated @@ -0,0 +1 @@ +b6c305590da3af9a21e6a1339ed3453d entropy-0.1.5.tar.gz |