diff options
Diffstat (limited to 'python-freegames.spec')
-rw-r--r-- | python-freegames.spec | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/python-freegames.spec b/python-freegames.spec new file mode 100644 index 0000000..365e2b7 --- /dev/null +++ b/python-freegames.spec @@ -0,0 +1,138 @@ +%global _empty_manifest_terminate_build 0 +Name: python-freegames +Version: 2.5.3 +Release: 1 +Summary: Free Python Games +License: Apache 2.0 +URL: https://pypi.org/project/freegames/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/28/64/954007440f54bc98578976f7d1ce1a4f95ae3890d7197871d52b9f98f6f9/freegames-2.5.3.tar.gz +BuildArch: noarch + + +%description +`Free Python Games`_ is an Apache2 licensed collection of free Python games +intended for education and fun. The games are written in simple Python code and +designed for experimentation and changes. Simplified versions of several +classic arcade games are included. +Python is one of the top-five most popular programming languages in the world +and available for free from `Python.org <https://www.python.org/>`_. Python +includes an extensive Standard Library distributed with your installation. The +Standard Library has a module called Turtle which is a popular way to introduce +programming to kids. Turtle was part of the original Logo programming language +developed by Wally Feurzig and Seymour Papert in 1966. All of the games in +`Free Python Games`_ are implemented using Python and its Turtle module. +Starting in 2012, `Free Python Games`_ began as an after school program to +teach programming to inner-city youth. The goal was to have fun as much as it +was to learn. Since then the games have been improved and used in a variety of +settings ranging from classrooms to summer day-camps. +The games run anywhere Python can be installed which includes desktop computers +running Windows, Mac OS, or Linux and older or low-power hardware such as the +Raspberry Pi. Kids across the United States in grades 6th-12th have enjoyed +learning about topics such as encryption and projectile motion through games. +Each game is entirely independent from the others and includes comments along +with a list of exercises to work through with students. Creativity and +flexibility is important. There is no right or wrong way to implement a new +feature or behavior! You never know which games students will engage with best. + +%package -n python3-freegames +Summary: Free Python Games +Provides: python-freegames +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-freegames +`Free Python Games`_ is an Apache2 licensed collection of free Python games +intended for education and fun. The games are written in simple Python code and +designed for experimentation and changes. Simplified versions of several +classic arcade games are included. +Python is one of the top-five most popular programming languages in the world +and available for free from `Python.org <https://www.python.org/>`_. Python +includes an extensive Standard Library distributed with your installation. The +Standard Library has a module called Turtle which is a popular way to introduce +programming to kids. Turtle was part of the original Logo programming language +developed by Wally Feurzig and Seymour Papert in 1966. All of the games in +`Free Python Games`_ are implemented using Python and its Turtle module. +Starting in 2012, `Free Python Games`_ began as an after school program to +teach programming to inner-city youth. The goal was to have fun as much as it +was to learn. Since then the games have been improved and used in a variety of +settings ranging from classrooms to summer day-camps. +The games run anywhere Python can be installed which includes desktop computers +running Windows, Mac OS, or Linux and older or low-power hardware such as the +Raspberry Pi. Kids across the United States in grades 6th-12th have enjoyed +learning about topics such as encryption and projectile motion through games. +Each game is entirely independent from the others and includes comments along +with a list of exercises to work through with students. Creativity and +flexibility is important. There is no right or wrong way to implement a new +feature or behavior! You never know which games students will engage with best. + +%package help +Summary: Development documents and examples for freegames +Provides: python3-freegames-doc +%description help +`Free Python Games`_ is an Apache2 licensed collection of free Python games +intended for education and fun. The games are written in simple Python code and +designed for experimentation and changes. Simplified versions of several +classic arcade games are included. +Python is one of the top-five most popular programming languages in the world +and available for free from `Python.org <https://www.python.org/>`_. Python +includes an extensive Standard Library distributed with your installation. The +Standard Library has a module called Turtle which is a popular way to introduce +programming to kids. Turtle was part of the original Logo programming language +developed by Wally Feurzig and Seymour Papert in 1966. All of the games in +`Free Python Games`_ are implemented using Python and its Turtle module. +Starting in 2012, `Free Python Games`_ began as an after school program to +teach programming to inner-city youth. The goal was to have fun as much as it +was to learn. Since then the games have been improved and used in a variety of +settings ranging from classrooms to summer day-camps. +The games run anywhere Python can be installed which includes desktop computers +running Windows, Mac OS, or Linux and older or low-power hardware such as the +Raspberry Pi. Kids across the United States in grades 6th-12th have enjoyed +learning about topics such as encryption and projectile motion through games. +Each game is entirely independent from the others and includes comments along +with a list of exercises to work through with students. Creativity and +flexibility is important. There is no right or wrong way to implement a new +feature or behavior! You never know which games students will engage with best. + +%prep +%autosetup -n freegames-2.5.3 + +%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-freegames -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 2.5.3-1 +- Package Spec generated |