Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-release-src > by-pkgid > 34fc8e7b26845ec61c1013107f57e6cc > files > 4

guichan-0.8.2-11.mga6.src.rpm

%define major   1
%define api     0.8.1
%define libname %mklibname %{name} %{api} %{major}
%define develname %mklibname %{name} -d
%define staticdevelname %mklibname %{name} -d -s

Name:           guichan
Version:        0.8.2
Release:        %mkrel 11
Summary:        Portable C++ GUI library for games using Allegro, SDL and OpenGL
Group:          System/Libraries
License:        BSD
URL:            https://code.google.com/p/guichan/
Source0:        http://guichan.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:         guichan-0.8.2-mdv-fix-linkage.patch
Patch1:         guichan-0.8.2-automake-1.13.patch

BuildRequires:  allegro4-devel
BuildRequires:  nas-devel
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_image)

%description
Guichan is a small, efficient C++ GUI library designed for games. It comes
with a standard set of widgets and can use several different objects for
displaying graphics and grabbing user input.

%package -n %{libname}
Summary:        Shared library for %{name}
Group:          System/Libraries
Provides:       %{name} = %{version}-%{release}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n %{develname}
Summary:        Headers for developing programs that will use %{name}
Group:          Development/C++
Requires:       %{libname} = %{version}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%package -n %{staticdevelname}
Summary:        Static libraries for programs which will use %{name}
Group:          Development/C++
Requires:       %{develname} = %{version}
Provides:       %{name}-static-devel = %{version}-%{release}

%description -n %{staticdevelname}
This package contains the static libraries necessary for developing
programs which will use %{name}.

%prep
%setup -q
%autopatch -p1

%build
autoreconf -vfi
%configure2_5x  --enable-sdl \
                --enable-sdlimage \
                --enable-opengl \
                --enable-allegro
%make

%install
%makeinstall

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_libdir}/lib%{name}*-%{api}.so.%{major}
%{_libdir}/lib%{name}*-%{api}.so.%{major}.*

%files -n %{develname}
%{_includedir}/*
%{_libdir}/lib%{name}*.so
%{_libdir}/*.la
%{_libdir}/pkgconfig/*.pc

%files -n %{staticdevelname}
%{_libdir}/*.a


%changelog
* Sun Mar 12 2017 akien <akien> 0.8.2-11.mga6
+ Revision: 1092246
- Rebuild against allegro4

* Mon Feb 15 2016 umeabot <umeabot> 0.8.2-10.mga6
+ Revision: 960603
- Mageia 6 Mass Rebuild

* Thu Sep 03 2015 cjw <cjw> 0.8.2-9.mga6
+ Revision: 872425
- rebuild with gcc 5

* Wed Oct 15 2014 umeabot <umeabot> 0.8.2-8.mga5
+ Revision: 743025
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.8.2-7.mga5
+ Revision: 680043
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 0.8.2-6.mga4
+ Revision: 506084
- Mageia 4 Mass Rebuild

* Sat Jan 12 2013 fwang <fwang> 0.8.2-5.mga3
+ Revision: 354344
- fix build with automake 1.13

  + umeabot <umeabot>
    - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat Feb 26 2011 alien <alien> 0.8.2-4.mga1
+ Revision: 61037
- Remove BuildRoot
- imported package guichan