File libalogg1.spec of Package libalogg1

%define _name  alogg
%define soname 1

Name:           lib%{_name}%{soname}
Version:        1.3.7
Release:        0
Summary:        Font rendering library for the Allegro game library
License:        FTL
Group:          System Environment/Libraries
URL:            http://lyrian.free.fr/alogg/
Source0:        http://lyrian.free.fr/alogg/alogg-1.3.7.tar.gz
Patch0:         %{name}-%{version}-Makefile.patch
Patch1:         %{name}-%{version}-alogg_config.patch
BuildRequires:  allegro-tools liballeg-devel libvorbis-devel libogg-devel
BuildRequires:  libcurl-devel

%description
%{_name} also known as AllegroFont or AlFont is a wrapper around the freetype2
library for use with the Allegro game library. Thus allowing the display of
text using freetype fonts on Allegro bitmaps.

%package -n lib%{_name}-devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}

%description -n lib%{_name}-devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package -n %{_name}-examples
Summary:        Examples of %{_name} usage
Group:          Applications/Multimedia
Requires:       %{name} = %{version}

%description -n %{_name}-examples
Example programs that show what can be done with %{_name}.

%prep
%setup -q -n %{_name}-%{version}
%patch0
%patch1

%build
CFLAGS='%{optflags}' %{__make} PREFIX='%{_prefix}' LIBDIR='%{_libdir}' \
          SHARED=1 TYPE=texi CURL=1 PTHREAD=1 %{?_smp_mflags}

%install
%{__make} DESTDIR='%{buildroot}' PREFIX='%{_prefix}' LIBDIR='%{_libdir}' \
          SHARED=1 TYPE=texi CURL=1 PTHREAD=1 install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(0644, root, root, 0755)
%doc AUTHORS LICENSE README TODO
%{_libdir}/lib%{_name}.so.*

%files -n lib%{_name}-devel
%defattr(-, root, root, 0755)
%{_bindir}/%{_name}-config
%{_includedir}/%{_name}
%{_libdir}/lib%{_name}.so
%{_mandir}/man1/%{_name}-config*

%files -n %{_name}-examples
%defattr(-, root, root, 0755)
%{_bindir}/%{_name}_*

%changelog
openSUSE Build Service is sponsored by