From 20661ff81ef5af7fbd4dbbb6e082158a26ab0c1e24a77cd964ca4218c0524c6d Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 1 Mar 2015 09:41:00 +0000 Subject: [PATCH] Accepting request 288276 from home:pluskalm:branches:devel:libraries:c_c++ - Cleanup spec file with spec-cleaner - Use url for source - Remove conditions dealing with unsupported releases of SLES - Update to 0.52.18 OBS-URL: https://build.opensuse.org/request/show/288276 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/newt?expand=0&rev=31 --- newt-0.52.16.tar.bz2 | 3 --- newt-0.52.18.tar.gz | 3 +++ newt.changes | 13 +++++++++++++ newt.spec | 45 ++++++++++++++++++++++---------------------- 4 files changed, 38 insertions(+), 26 deletions(-) delete mode 100644 newt-0.52.16.tar.bz2 create mode 100644 newt-0.52.18.tar.gz diff --git a/newt-0.52.16.tar.bz2 b/newt-0.52.16.tar.bz2 deleted file mode 100644 index 657db3d..0000000 --- a/newt-0.52.16.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c67f1020f88c2e8dceb49c13767a232a678eb640ba822e1a37ed3e82cb9e91e -size 150704 diff --git a/newt-0.52.18.tar.gz b/newt-0.52.18.tar.gz new file mode 100644 index 0000000..24109c3 --- /dev/null +++ b/newt-0.52.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:771b0e634ede56ae6a6acd910728bb5832ac13ddb0d1d27919d2498dab70c91e +size 180425 diff --git a/newt.changes b/newt.changes index b960ba9..5a4a808 100644 --- a/newt.changes +++ b/newt.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sun Mar 1 09:28:46 UTC 2015 - mpluskal@suse.com + +- Cleanup spec file with spec-cleaner +- Use url for source +- Remove conditions dealing with unsupported releases of SLES +- Update to 0.52.18 + * fix widget key collision in snack on 64-bit archs (#1151455) + * handle NEWT_EXIT_ERROR in snack + * fix preprocessor warnings in snack + * optimize textbox reflowing + * remove newtListitem declarations (#1074092) + ------------------------------------------------------------------- Wed Nov 6 19:13:27 UTC 2013 - lars@linux-schulserver.de diff --git a/newt.spec b/newt.spec index 8a4755c..5f17cce 100644 --- a/newt.spec +++ b/newt.spec @@ -1,7 +1,7 @@ # # spec file for package newt # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,32 +16,28 @@ # -Name: newt %define libname lib%{name} %define libsoname %{libname}0_52 - +Name: newt +Version: 0.52.18 +Release: 0 Summary: A library for text mode user interfaces License: LGPL-2.1+ Group: System/Libraries -Version: 0.52.16 -Release: 0 Url: https://fedorahosted.org/newt/ -Source: %{name}-%{version}.tar.bz2 +Source: https://fedorahosted.org/releases/n/e/newt/%{name}-%{version}.tar.gz Source2: baselibs.conf Source10: %{name}-rpmlintrc -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# needed for tutorial.pdf +BuildRequires: docbook-toys BuildRequires: pkg-config BuildRequires: popt-devel BuildRequires: python-devel BuildRequires: slang-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} < 1020 BuildRequires: libpng-devel %endif -# needed for tutorial.pdf -BuildRequires: docbook-toys -%if 0%{?sles_version} == 9 -BuildRequires: jadetex -%endif %if 0%{?suse_version} > 1220 BuildRequires: texlive-courier BuildRequires: texlive-dvips @@ -99,6 +95,9 @@ License: LGPL-2.1+ Group: Documentation/Howto # the examples need the main package: Recommends: %{name} = %{version} +%if 0%{?suse_version} > 1120 +BuildArch: noarch +%endif %description doc This package contains a tutorial about the Newt windowing toolkit. @@ -134,7 +133,7 @@ Group: System/Libraries Requires: %{name} = %{version} Provides: %{name}-python = %{version} Obsoletes: %{name}-python < %{version} -%{py_requires} +%py_requires %description -n python-%{name} The newt-python package contains the Python bindings for the newt @@ -148,31 +147,31 @@ library providing a python API for creating text mode interfaces. # --with-gpm-support %configure --without-tcl ## make depend -%{__make} CPPFLAGS="%{optflags} -fPIC" %{?_smp_mflags} all +make CPPFLAGS="%{optflags} -fPIC" %{?_smp_mflags} all #docbook2txt tutorial.sgml %install -%{__make} PYTHONVERS="python%{py_ver}" instroot="%{buildroot}" DESTDIR="%{buildroot}" install install-sh +make PYTHONVERS="python%{py_ver}" instroot=%{buildroot} DESTDIR=%{buildroot} install install-sh # currently we don't support these languages for lang in ast bal sr@latin wo; do - %{__rm} -rf %{buildroot}%{_datadir}/locale/$lang + rm -rf %{buildroot}%{_datadir}/locale/$lang done # prepare defaultdocdir with examples and scripts # -%{__install} -d -m 755 %{buildroot}%{_defaultdocdir}/%{name}/examples +install -d -m 755 %{buildroot}%{_defaultdocdir}/%{name}/examples # install COPYING file -%{__install} -m 644 COPYING %{buildroot}%{_defaultdocdir}/%{name}/ +install -m 644 COPYING %{buildroot}%{_defaultdocdir}/%{name}/ # install example scripts -%{__install} -m 755 peanuts.py %{buildroot}%{_defaultdocdir}/%{name}/examples/ -%{__install} -m 755 popcorn.py %{buildroot}%{_defaultdocdir}/%{name}/examples/ +install -m 755 peanuts.py %{buildroot}%{_defaultdocdir}/%{name}/examples/ +install -m 755 popcorn.py %{buildroot}%{_defaultdocdir}/%{name}/examples/ # # create tutorial.pdf documentation # -%{__install} -m 644 tutorial.sgml %{buildroot}%{_defaultdocdir}/%{name}/ +install -m 644 tutorial.sgml %{buildroot}%{_defaultdocdir}/%{name}/ pushd %{buildroot}%{_defaultdocdir}/%{name}/ 1>/dev/null db2pdf tutorial.sgml -%{__rm} tutorial.{aux,log,out} CATALOG.* *.dsl +rm tutorial.{aux,log,out} CATALOG.* *.dsl popd 1>/dev/null %find_lang %{name} @@ -213,7 +212,7 @@ popd 1>/dev/null %files -n python-%{name} %defattr(-,root,root) %dir %{_defaultdocdir}/%{name}/examples -%doc %{_defaultdocdir}/%{name}/examples/*.py +%doc %{_defaultdocdir}/%{name}/examples/*.py %{py_sitedir}/* %changelog