commit 7127597e66d4ec0c86384d6769eb716ea5590249 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:09:48 2019 -0400 Package init diff --git a/newt-0.52.21.tar.gz b/newt-0.52.21.tar.gz new file mode 100644 index 0000000..1a46589 Binary files /dev/null and b/newt-0.52.21.tar.gz differ diff --git a/newt.spec b/newt.spec new file mode 100644 index 0000000..f404949 --- /dev/null +++ b/newt.spec @@ -0,0 +1,114 @@ +Name: newt +Version: 0.52.21 +Release: 2 +Summary: A library for text mode user interfaces +License: LGPLv2 +URL: https://pagure.io/newt +Source: https://pagure.io/releases/newt/newt-%{version}.tar.gz + +BuildRequires: gcc popt-devel python3-devel slang-devel +BuildRequires: python2-devel docbook-utils lynx + +Provides: snack = %{version}-%{release} +Obsoletes: %{name}-static + +%description +Newt is a programming library for color text-mode, widget-based user +interfaces. Newt can be used to add stacked windows, entry widgets, +checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., +to text mode user interfaces. + +This package also contains a Dialog replacement called whiptail. Newt +is based on the slang library. + +%package devel +Summary: Development files for %{name} +Requires: slang-devel %{name}%{?_isa} = %{version}-%{release} + +%description devel +The devel for %{name}. Install %{name}-devel can help you develop +applications. + +%package -n python2-newt +%{?python_provide:%python_provide python2-newt} +Provides: %{name}-python = %{version}-%{release} +Provides: %{name}-python%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python < %{version}-%{release} +Summary: Python 2 bindings for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description -n python2-newt +The python2-%{name} package contains the Python 2 bindings for the %{name} library +providing a python API for creating text mode interfaces. + +%package -n python3-newt +%{?python_provide:%python_provide python3-newt} +Provides: %{name}-python3 = %{version}-%{release} +Provides: %{name}-python3%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-python3 < %{version}-%{release} +Summary: Python 3 bindings for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description -n python3-newt +The python3-%{name} package contains the Python 3 bindings for the %{name} library +providing a python API for creating text mode interfaces. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure --without-tcl +%make_build all + +%install +%make_install +chmod 0755 peanuts.py popcorn.py +docbook2txt tutorial.sgml + + +%check +make test + +%ldconfig_scriptlets + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING README +%{_bindir}/* +%{_datadir}/locale +%{_libdir}/libnewt.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/newt* +%{_libdir}/libnewt.so +%{_libdir}/libnewt.a +%{_libdir}/pkgconfig/* + +%files -n python2-newt +%defattr(-,root,root) +%doc peanuts.py popcorn.py +%{python2_sitearch}/* + +%files -n python3-newt +%defattr(-,root,root) +%doc peanuts.py popcorn.py +%{python3_sitearch}/*.* +%{python3_sitearch}/__pycache__/*.py* + +%files help +%defattr(-,root,root) +%doc tutorial.* CHANGES +%{_mandir}/man1/whiptail.1* + +%changelog +* Tue Sep 24 2019 wangli - 0.52.21-2 +- Type:Enhance +- ID:NA +- SUG:NA +- DESC: openEuler Debranding + +* Wed Sep 04 2019 openEuler Buildteam - 0.52.21-1 +- Package init