diff --git a/gap.spec b/gap.spec index 7cf7ec2..71a544b 100644 --- a/gap.spec +++ b/gap.spec @@ -6,10 +6,9 @@ Name: gap Version: %(sed -r "s/r|p/./g" <<< %upstreamver) -Release: 2%{?dist} +Release: 3%{?dist} Summary: Computational discrete algebra -Group: Applications/Engineering License: GPLv2+ URL: http://www.gap-system.org/ Source0: ftp://ftp.gap-system.org/pub/gap/gap47/tar.bz2/%{name}%{upstreamver}_%{pkgdate}.tar.bz2 @@ -62,7 +61,6 @@ This is a metapackage that requires the standard GAP components. %package libs Summary: Essential GAP libraries -Group: Applications/Engineering BuildArch: noarch # These obsoletes and provides can be removed once Fedora 20 is EOL, or if @@ -82,7 +80,6 @@ the primitive, small, and transitive group databases. %package core Summary: GAP core components -Group: Applications/Engineering Requires: %{name}-libs = %{version}-%{release} Requires: GAPDoc # The gap binary executes gunzip @@ -94,7 +91,6 @@ This package contains the core GAP system. %package online-help Summary: Online help for GAP -Group: Documentation Requires: %{name}-core = %{version}-%{release} BuildArch: noarch @@ -104,7 +100,6 @@ online help system. %package devel Summary: GAP compiler and development files -Group: Development/Languages Requires: %{name}-core%{?isa} = %{version}-%{release} Requires: gcc Requires: gmp-devel%{?_isa} @@ -115,7 +110,6 @@ for developing GAP programs. %package vim Summary: Edit GAP files with VIM -Group: Applications/Engineering Requires: %{name}-core = %{version}-%{release}, vim-filesystem BuildArch: noarch @@ -268,7 +262,12 @@ cp -p %{SOURCE8} %{buildroot}%{_mandir}/man1 %posttrans /usr/bin/gtk-update-icon-cache %{icondir} >&/dev/null ||: /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : -%{_bindir}/update-gap-workspace ||: +%{_bindir}/update-gap-workspace &> /dev/null || : + +%preun +if [ $1 -eq 0 ]; then + {_bindir}/update-gap-workspace delete &> /dev/null || : +fi %postun core /usr/bin/update-desktop-database %{_datadir}/applications &>/dev/null ||: @@ -338,6 +337,10 @@ make testinstall %{_datadir}/vim/vimfiles/syntax/gap.vim %changelog +* Fri Jan 23 2015 Jerry James - 4.7.6-3 +- Fix scriptlets so they don't complain when uninstalling +- Drop obsolete Group tags + * Thu Jan 15 2015 Jerry James - 4.7.6-2 - Fix crash with nameless TTYs, such as in mock shell environments