File SILLY.spec of Package SILLY
# norootforbuild
%define SILLYso 1
BuildRequires: gcc-c++ libpng-devel libjpeg-devel pkgconfig
Name: SILLY
License: MIT
Group: Development/Libraries/C and C++
Summary: Simply Image Loading LibrarY
Version: 0.1.0
Release: 0
URL: http://www.cegui.org.uk/wiki/index.php/SILLY
Packager: Matt Williams <matt@milliams.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.gz
Source1: %{name}-DOCS-%{version}.tar.gz
%description
SILLY means Simple Image Loading LibrarY. The aim of this library is to provide a simple library for loading image in the context of CEGUI. The library supports only the most common image format. The project was initially launch in order to provide an MIT based replacement of DevIL with less image format supported and focused on loading image only.
%package -n lib%{name}%{SILLYso}
Group: Development/Libraries/Other
Summary: Simply Image Loading LibrarY
Provides: lib%{name}
Obsoletes: lib%{name}
%description -n lib%{name}%{SILLYso}
SILLY means Simple Image Loading LibrarY. The aim of this library is to provide a simple library for loading image in the context of CEGUI. The library supports only the most common image format. The project was initially launch in order to provide an MIT based replacement of DevIL with less image format supported and focused on loading image only.
%package -n lib%{name}-devel
Group: Development/Libraries/Other
Summary: Simply Image Loading LibrarY development package
Requires: lib%{name} = %{version}
%description -n lib%{name}-devel
SILLY means Simple Image Loading LibrarY. The aim of this library is to provide a simple library for loading image in the context of CEGUI. The library supports only the most common image format. The project was initially launch in order to provide an MIT based replacement of DevIL with less image format supported and focused on loading image only.
%prep
%setup -n %{name}-%{version}
%setup -b 1 -D -n %{name}-%{version}
%build
#./configure --prefix=%{_prefix} --libdir=%{_libdir}
%configure
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%prefix/share/doc/packages/libSILLY-devel
cp -R doc/html/* $RPM_BUILD_ROOT%prefix/share/doc/packages/libSILLY-devel
%post -n lib%{name}%{SILLYso} -p /sbin/ldconfig
%postun -n lib%{name}%{SILLYso} -p /sbin/ldconfig
%files -n lib%{name}%{SILLYso}
%defattr(-,root,root)
%_libdir/libSILLY.so.%{SILLYso}*
%files -n lib%{name}-devel
%defattr(-,root,root)
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%docdir %prefix/share/doc/packages/lib%{name}-devel
%_includedir/SILLY
%_libdir/libSILLY.a
%exclude %_libdir/libSILLY.la
%_libdir/libSILLY.so
%_libdir/pkgconfig/SILLY.pc
%changelog