File unshield.spec of Package unshield
#
# spec file for package unshield (Version 0.5)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: unshield
BuildRequires: zlib-devel
Summary: A Program to Extract InstallShield Cabinet Files
Version: 0.5
Release: 99
License: MIT License (or similar)
Url: http://synce.sourceforge.net/
Group: Productivity/Archiving/Compression
Source: %{name}-%{version}.tar.bz2
Patch0: unshield-zlib_test.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Cabinet (.CAB) files are a form of archive, which is used by the
InstallShield installer software. The unshield program simply unpacks
such files.
See http://synce.sourceforge.net/ for more information.
Authors:
--------
David Eriksson <twogood@users.sourceforge.net>
%package devel
License: MIT License (or similar)
Summary: A program to extract InstallShield cabinet files
Group: Development/Libraries/C and C++
Requires: %{name} = %{version} glibc-devel
%description devel
Cabinet (.CAB) files are a form of archive, which is used by the
InstallShield installer software. The unshield program simply unpacks
such files.
See http://synce.sourceforge.net/ for more information.
Authors:
--------
David Eriksson <twogood@users.sourceforge.net>
%prep
%setup -q
%patch0
%build
autoreconf -f -i
export CFLAGS="%optflags -DPROTOTYPES"
%configure --disable-static --with-pic
make %{?jobs:-j%jobs}
%install
make DESTDIR=%buildroot install
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README LICENSE
%{_bindir}/unshield
%{_libdir}/libunshield.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/libunshield.h
%{_libdir}/libunshield.so
%{_datadir}/aclocal/*
%exclude %{_libdir}/libunshield.la
%changelog