Fix scriptlets

i9ce
Matthias Clasen 18 years ago
parent cff9d38205
commit a483073442

@ -1,12 +1,12 @@
Summary: Library for parsing IDL (Interface Definition Language)
Name: libIDL
Version: 0.8.7
Release: 1%{?dist}
Release: 2%{?dist}
Source: ftp://ftp.gnome.org/pub/GNOME/sources/libIDL/%{name}-%{version}.tar.bz2
Patch0: libIDL-0.8.6-multilib.patch
Group: System Environment/Libraries
License: LGPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: pkgconfig >= 0.8
BuildRequires: glib2-devel >= 2.0
BuildRequires: flex bison
@ -18,7 +18,7 @@ It can be used for both COM-style and CORBA-style IDL.
%package devel
Summary: Development libraries and header files for libIDL
Group: Development/Libraries
Requires: libIDL = %{version}
Requires: libIDL = %{version}-%{release}
Requires: pkgconfig >= 1:0.8
Requires: glib2-devel >= 2.0
Prereq: /sbin/install-info
@ -50,11 +50,11 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*a
%postun -p /sbin/ldconfig
%post devel
/sbin/install-info --quiet %{_infodir}/libIDL2.info.gz %{_infodir}/dir
/sbin/install-info --quiet %{_infodir}/libIDL2.info.gz %{_infodir}/dir || :
%preun devel
if [ $1 = 0 ]; then
/sbin/install-info --quiet --delete %{_infodir}/libIDL2.info.gz %{_infodir}/dir
/sbin/install-info --quiet --delete %{_infodir}/libIDL2.info.gz %{_infodir}/dir || :
fi
%clean
@ -75,6 +75,9 @@ rm -rf %{buildroot}
%{_infodir}/libIDL2.info.gz
%changelog
* Tue Jan 30 2007 Matthias Clasen <mclasen@redhat.com> - 0.8.7-2
- Fix scriptlets to be failsafe (#223706)
* Wed Aug 2 2006 Matthias Clasen <mclasen@redhat.com> - 0.8.7-1.fc6
- Update to 0.8.7

Loading…
Cancel
Save