Accepting request 840284 from home:jengelh:branches:devel:libraries:c_c++

- Remove/replace old specfile constructs.

OBS-URL: https://build.opensuse.org/request/show/840284
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aspell?expand=0&rev=41
This commit is contained in:
Petr Gajdos 2020-10-08 14:19:15 +00:00 committed by Git OBS Bridge
parent b1a190347d
commit 50c95aba61
2 changed files with 11 additions and 20 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 8 13:55:21 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Remove/replace old specfile constructs.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 15 07:42:20 UTC 2019 - pgajdos@suse.com Tue Oct 15 07:42:20 UTC 2019 - pgajdos@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package aspell # spec file for package aspell
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -22,7 +22,7 @@ Release: 0
Summary: A Spell Checker Summary: A Spell Checker
License: GFDL-1.1-or-later AND LGPL-2.1-only AND HPND AND SUSE-BSD-Mark-Modifications License: GFDL-1.1-or-later AND LGPL-2.1-only AND HPND AND SUSE-BSD-Mark-Modifications
Group: Productivity/Text/Spell Group: Productivity/Text/Spell
Url: http://aspell.net/ URL: http://aspell.net/
Source0: ftp://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz Source0: ftp://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz
Source1: ftp://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz.sig Source1: ftp://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz.sig
Source2: %{name}.keyring Source2: %{name}.keyring
@ -42,7 +42,6 @@ Suggests: aspell-ispell
Suggests: aspell-spell Suggests: aspell-spell
Provides: pspell = %{version} Provides: pspell = %{version}
Obsoletes: pspell < %{version} Obsoletes: pspell < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
GNU Aspell is a spell checker planned to eventually replace Ispell. It GNU Aspell is a spell checker planned to eventually replace Ispell. It
@ -117,9 +116,7 @@ can be used as a library or as an independent spell checker.
This package contains the pspell compatibility library. This package contains the pspell compatibility library.
%prep %prep
%setup -q %autosetup -p0
%patch0
%patch1
%build %build
autoreconf -fiv autoreconf -fiv
@ -127,19 +124,13 @@ export CXXFLAGS="%{optflags} `ncursesw6-config --cflags`"
#this is an ugly kludge , don't look :-) #this is an ugly kludge , don't look :-)
export LDFLAGS="`ncursesw6-config --libs`" export LDFLAGS="`ncursesw6-config --libs`"
%configure \ %configure \
%if 0%{?suse_version} > 1210
--enable-curses="-lncursesw" \ --enable-curses="-lncursesw" \
%endif
--disable-rpath --disable-rpath
make %{?_smp_mflags} %make_build
%install %install
%if 0%{?suse_version} >= 1120
%make_install %make_install
%else
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%endif
# Links for compatibility reasons (ispell and spell) # Links for compatibility reasons (ispell and spell)
ln -s %{_libdir}/aspell-0.60/ispell %{buildroot}%{_bindir} ln -s %{_libdir}/aspell-0.60/ispell %{buildroot}%{_bindir}
ln -s %{_libdir}/aspell-0.60/spell %{buildroot}%{_bindir} ln -s %{_libdir}/aspell-0.60/spell %{buildroot}%{_bindir}
@ -169,8 +160,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%postun -n libpspell15 -p /sbin/ldconfig %postun -n libpspell15 -p /sbin/ldconfig
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root,-) %license COPYING
%doc COPYING README TODO %doc README TODO
%doc manual/aspell.html/ %doc manual/aspell.html/
%{_bindir}/aspell %{_bindir}/aspell
%{_bindir}/aspell-import %{_bindir}/aspell-import
@ -182,7 +173,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
%exclude %{_mandir}/man1/pspell-config.1%{ext_man} %exclude %{_mandir}/man1/pspell-config.1%{ext_man}
%files devel %files devel
%defattr(-,root,root,-)
%doc manual/aspell-dev.html/ %doc manual/aspell-dev.html/
%{_bindir}/pspell-config %{_bindir}/pspell-config
%{_includedir}/pspell/ %{_includedir}/pspell/
@ -193,20 +183,16 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_mandir}/man1/pspell-config.1%{ext_man} %{_mandir}/man1/pspell-config.1%{ext_man}
%files ispell %files ispell
%defattr(-,root,root,-)
%{_bindir}/ispell %{_bindir}/ispell
%files spell %files spell
%defattr(-,root,root,-)
%{_bindir}/spell %{_bindir}/spell
%files -n libaspell15 %files -n libaspell15
%defattr(-,root,root,-)
%{_libdir}/aspell-0.60/ %{_libdir}/aspell-0.60/
%{_libdir}/libaspell.so.15* %{_libdir}/libaspell.so.15*
%files -n libpspell15 %files -n libpspell15
%defattr(-,root,root,-)
%{_libdir}/libpspell.so.15* %{_libdir}/libpspell.so.15*
%changelog %changelog