Fix scriptlets

i9ce
Matthias Clasen 18 years ago
parent cff9d38205
commit a483073442

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

Loading…
Cancel
Save