File orange.spec of Package orange
#
# spec file for package orange (Version 0.4)
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define major 0
%define libname liborange
Name: orange
Version: 0.4
Release: 0
License: MIT
Summary: Tool to extract CAB files from self-extracting installers
Url: http://www.synce.org/
Group: Productivity/Archiving/Compression
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libdynamite-devel
BuildRequires: libsynce-devel
BuildRequires: unshield-devel
BuildRequires: pkg-config
BuildRequires: zlib-devel
Source0: %{libname}-%{version}.tar.bz2
%description
Orange is a tool and library for squeezing out juicy installable Microsoft Cabinet Files from self-extracting
installers for Microsoft Windows. This is the binary executable.
%package -n %{libname}%{major}
Summary: Library to extract CAB files from self-extracting installers
Group: System/Libraries
Provides: %{libname}
Obsoletes: %{libname} < %{version}
%description -n %{libname}%{major}
Orange is a tool and library for squeezing out juicy installable Microsoft Cabinet Files from self-extracting
installers for Microsoft Windows. This is the shared library.
%package -n %{libname}-devel
Summary: Header files, libraries and development documentation for %{libname}
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: libdynamite-devel
Requires: libsynce-devel
Requires: libunshield-devel
Requires: zlib-devel
%description -n %{libname}-devel
This package contains the header files, static libraries and development
documentation for %{libname}. If you like to develop programs using %{libname},
you will need to install %{libname}-devel.
%prep
%setup -q -n %{libname}-%{version}
%build
%configure --disable-static --disable-rpath
make %{?_smp_mflags}
%install
%{?make_install} %{!?make_install:%makeinstall}
rm -f %{buildroot}%{_libdir}/*.{la,a}
%clean
rm -rf %{buildroot}
%post -n %{libname}%{major} -p /sbin/ldconfig
%postun -n %{libname}%{major} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ChangeLog TODO LICENSE
%{_bindir}/%{name}
%{_mandir}/*/%{name}.*.gz
%files -n %{libname}%{major}
%defattr(-,root,root)
%{_libdir}/%{libname}.so.0
%{_libdir}/%{libname}.so.0.0.0
%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/%{libname}.h
%{_includedir}/%{libname}_stub.h
%{_libdir}/%{libname}.so
%{_libdir}/pkgconfig/%{libname}.pc
%changelog