diff options
Diffstat (limited to 'python-honeybee-core.spec')
-rw-r--r-- | python-honeybee-core.spec | 249 |
1 files changed, 249 insertions, 0 deletions
diff --git a/python-honeybee-core.spec b/python-honeybee-core.spec new file mode 100644 index 0000000..7bffb49 --- /dev/null +++ b/python-honeybee-core.spec @@ -0,0 +1,249 @@ +%global _empty_manifest_terminate_build 0 +Name: python-honeybee-core +Version: 1.55.5 +Release: 1 +Summary: A library to create 3D building geometry for various types of environmental simulation. +License: AGPL-3.0 +URL: https://github.com/ladybug-tools/honeybee-core +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3c/86/945c83672086bef2711ac372b15ab16782d1cc1f3e868c7642bd120f5e42/honeybee-core-1.55.5.tar.gz +BuildArch: noarch + +Requires: python3-ladybug-core +Requires: python3-ladybug-geometry-polyskel +Requires: python3-honeybee-schema + +%description + + +[](https://travis-ci.com/ladybug-tools/honeybee-core) +[](https://coveralls.io/github/ladybug-tools/honeybee-core) + +[](https://www.python.org/downloads/release/python-370/) [](https://www.python.org/downloads/release/python-270/) [](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/) + +# honeybee-core + +Honeybee is a collection of Python libraries to create representations of buildings +following [honeybee-schema](https://github.com/ladybug-tools/honeybee-schema/wiki). + +This package is the core library that provides honeybee's common functionalities. +To extend these functionalities you should install available Honeybee extensions or write +your own. + +Here are a number of frequently used extensions for Honeybee: + +- [honeybee-energy](https://github.com/ladybug-tools/honeybee-energy): Adds Energy simulation to Honeybee. +- [honeybee-radiance](https://github.com/ladybug-tools/honeybee-radiance): Adds daylight simulation to Honeybee. + +# Installation + +To install the core library use: + +`pip install -U honeybee-core` + +To check if Honeybee command line interface is installed correctly use `honeybee viz` and you +should get a `viiiiiiiiiiiiizzzzzzzzz!` back in response! :bee: + +# [API Documentation](https://www.ladybug.tools/honeybee-core/docs/) + +## Local Development +1. Clone this repo locally +```console +git clone git@github.com:ladybug-tools/honeybee-core.git + +# or + +git clone https://github.com/ladybug-tools/honeybee-core.git +``` +2. Install dependencies: +```console +cd honeybee-core +pip install -r dev-requirements.txt +pip install -r requirements.txt +``` + +3. Run Tests: +```console +python -m pytest ./tests +``` + +4. Generate Documentation: +```console +sphinx-apidoc -f -e -d 4 -o ./docs ./honeybee +sphinx-build -b html ./docs ./docs/_build/docs +``` + + +%package -n python3-honeybee-core +Summary: A library to create 3D building geometry for various types of environmental simulation. +Provides: python-honeybee-core +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-honeybee-core + + +[](https://travis-ci.com/ladybug-tools/honeybee-core) +[](https://coveralls.io/github/ladybug-tools/honeybee-core) + +[](https://www.python.org/downloads/release/python-370/) [](https://www.python.org/downloads/release/python-270/) [](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/) + +# honeybee-core + +Honeybee is a collection of Python libraries to create representations of buildings +following [honeybee-schema](https://github.com/ladybug-tools/honeybee-schema/wiki). + +This package is the core library that provides honeybee's common functionalities. +To extend these functionalities you should install available Honeybee extensions or write +your own. + +Here are a number of frequently used extensions for Honeybee: + +- [honeybee-energy](https://github.com/ladybug-tools/honeybee-energy): Adds Energy simulation to Honeybee. +- [honeybee-radiance](https://github.com/ladybug-tools/honeybee-radiance): Adds daylight simulation to Honeybee. + +# Installation + +To install the core library use: + +`pip install -U honeybee-core` + +To check if Honeybee command line interface is installed correctly use `honeybee viz` and you +should get a `viiiiiiiiiiiiizzzzzzzzz!` back in response! :bee: + +# [API Documentation](https://www.ladybug.tools/honeybee-core/docs/) + +## Local Development +1. Clone this repo locally +```console +git clone git@github.com:ladybug-tools/honeybee-core.git + +# or + +git clone https://github.com/ladybug-tools/honeybee-core.git +``` +2. Install dependencies: +```console +cd honeybee-core +pip install -r dev-requirements.txt +pip install -r requirements.txt +``` + +3. Run Tests: +```console +python -m pytest ./tests +``` + +4. Generate Documentation: +```console +sphinx-apidoc -f -e -d 4 -o ./docs ./honeybee +sphinx-build -b html ./docs ./docs/_build/docs +``` + + +%package help +Summary: Development documents and examples for honeybee-core +Provides: python3-honeybee-core-doc +%description help + + +[](https://travis-ci.com/ladybug-tools/honeybee-core) +[](https://coveralls.io/github/ladybug-tools/honeybee-core) + +[](https://www.python.org/downloads/release/python-370/) [](https://www.python.org/downloads/release/python-270/) [](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.8/) + +# honeybee-core + +Honeybee is a collection of Python libraries to create representations of buildings +following [honeybee-schema](https://github.com/ladybug-tools/honeybee-schema/wiki). + +This package is the core library that provides honeybee's common functionalities. +To extend these functionalities you should install available Honeybee extensions or write +your own. + +Here are a number of frequently used extensions for Honeybee: + +- [honeybee-energy](https://github.com/ladybug-tools/honeybee-energy): Adds Energy simulation to Honeybee. +- [honeybee-radiance](https://github.com/ladybug-tools/honeybee-radiance): Adds daylight simulation to Honeybee. + +# Installation + +To install the core library use: + +`pip install -U honeybee-core` + +To check if Honeybee command line interface is installed correctly use `honeybee viz` and you +should get a `viiiiiiiiiiiiizzzzzzzzz!` back in response! :bee: + +# [API Documentation](https://www.ladybug.tools/honeybee-core/docs/) + +## Local Development +1. Clone this repo locally +```console +git clone git@github.com:ladybug-tools/honeybee-core.git + +# or + +git clone https://github.com/ladybug-tools/honeybee-core.git +``` +2. Install dependencies: +```console +cd honeybee-core +pip install -r dev-requirements.txt +pip install -r requirements.txt +``` + +3. Run Tests: +```console +python -m pytest ./tests +``` + +4. Generate Documentation: +```console +sphinx-apidoc -f -e -d 4 -o ./docs ./honeybee +sphinx-build -b html ./docs ./docs/_build/docs +``` + + +%prep +%autosetup -n honeybee-core-1.55.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-honeybee-core -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.55.5-1 +- Package Spec generated |