]> git.pld-linux.org Git - packages/guichan.git/commitdiff
- split allegro/opengl/sdl interface libraries; release 4 auto/th/guichan-0.8.2-4
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 14 Jul 2017 19:57:28 +0000 (21:57 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 14 Jul 2017 19:57:28 +0000 (21:57 +0200)
guichan.spec

index e1600d3e2abea86274f48f09bbd7c75f3d19071c..f37faa3e032e36a7765633112fba03fa4383539b 100644 (file)
@@ -1,12 +1,12 @@
 #
 # Conditional build:
-%bcond_without allegro     # without allegro support
+%bcond_without allegro     # allegro support
 #
 Summary:       Guichan - small, efficient C++ GUI library designed for games
 Summary(pl.UTF-8):     Guichan - mała, wydajna biblioteka GUI w C++ przeznaczona do gier
 Name:          guichan
 Version:       0.8.2
-Release:       3
+Release:       4
 License:       BSD
 Group:         Libraries
 # NOTE: now sources available at https://gitorious.org/guichan/mainline
@@ -49,16 +49,131 @@ Header files for Guichan library.
 Pliki nagłówkowe biblioteki Guichan.
 
 %package static
-Summary:       Static version of Guichan libraries
-Summary(pl.UTF-8):     Statyczne wersje bibliotek Guichan
+Summary:       Static version of Guichan library
+Summary(pl.UTF-8):     Statyczna wersja biblioteki Guichan
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
-Static version of Guichan libraries.
+Static version of Guichan library.
 
 %description static -l pl.UTF-8
-Statyczne wersje bibliotek Guichan.
+Statyczna wersja biblioteki Guichan.
+
+%package allegro
+Summary:       Guichan Allegro interface library
+Summary(pl.UTF-8):     Biblioteka interfejsu Guichan do Allegro
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description allegro
+Guichan Allegro interface library.
+
+%description allegro -l pl.UTF-8
+Biblioteka interfejsu Guichan do Allegro.
+
+%package allegro-devel
+Summary:       Header files for Guichan Allegro library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Guichan Allegro
+Group:         Development/Libraries
+Requires:      %{name}-allegro = %{version}-%{release}
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      allegro-devel
+
+%description allegro-devel
+Header files for Guichan Allegro library.
+
+%description allegro-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Guichan Allegro.
+
+%package allegro-static
+Summary:       Static Guichan Allegro library
+Summary(pl.UTF-8):     Statyczna biblioteka Guichan Allegro
+Group:         Development/Libraries
+Requires:      %{name}-allegro-devel = %{version}-%{release}
+
+%description allegro-static
+Static Guichan Allegro library.
+
+%description allegro-static -l pl.UTF-8
+Statyczna biblioteka Guichan Allegro.
+
+%package opengl
+Summary:       Guichan OpenGL interface library
+Summary(pl.UTF-8):     Biblioteka interfejsu Guichan do OpenGL
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description opengl
+Guichan OpenGL interface library.
+
+%description opengl -l pl.UTF-8
+Biblioteka interfejsu Guichan do OpenGL.
+
+%package opengl-devel
+Summary:       Header files for Guichan OpenGL library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Guichan OpenGL
+Group:         Development/Libraries
+Requires:      %{name}-opengl = %{version}-%{release}
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      OpenGL-devel
+# can also use allegro-devel+allegro-addons-devel or -sdl for image loading
+
+%description opengl-devel
+Header files for Guichan OpenGL library.
+
+%description opengl-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Guichan OpenGL.
+
+%package opengl-static
+Summary:       Static Guichan OpenGL library
+Summary(pl.UTF-8):     Statyczna biblioteka Guichan OpenGL
+Group:         Development/Libraries
+Requires:      %{name}-opengl-devel = %{version}-%{release}
+
+%description opengl-static
+Static Guichan OpenGL library.
+
+%description opengl-static -l pl.UTF-8
+Statyczna biblioteka Guichan OpenGL.
+
+%package sdl
+Summary:       Guichan SDL interface library
+Summary(pl.UTF-8):     Biblioteka interfejsu Guichan do SDL
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description sdl
+Guichan SDL interface library.
+
+%description sdl -l pl.UTF-8
+Biblioteka interfejsu Guichan do SDL.
+
+%package sdl-devel
+Summary:       Header files for Guichan SDL library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Guichan SDL
+Group:         Development/Libraries
+Requires:      %{name}-sdl = %{version}-%{release}
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      SDL-devel
+
+%description sdl-devel
+Header files for Guichan SDL library.
+
+%description sdl-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Guichan SDL.
+
+%package sdl-static
+Summary:       Static Guichan SDL library
+Summary(pl.UTF-8):     Statyczna biblioteka Guichan SDL
+Group:         Development/Libraries
+Requires:      %{name}-sdl-devel = %{version}-%{release}
+
+%description sdl-static
+Static Guichan SDL library.
+
+%description sdl-static -l pl.UTF-8
+Statyczna biblioteka Guichan SDL.
 
 %prep
 %setup -q
@@ -84,22 +199,89 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%post  allegro -p /sbin/ldconfig
+%postun        allegro -p /sbin/ldconfig
+
+%post  opengl -p /sbin/ldconfig
+%postun        opengl -p /sbin/ldconfig
+
+%post  sdl -p /sbin/ldconfig
+%postun        sdl -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING ChangeLog NEWS README TODO
-%attr(755,root,root) %{_libdir}/libguichan*.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libguichan*.so.1
+%attr(755,root,root) %{_libdir}/libguichan-0.8.1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libguichan-0.8.1.so.1
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libguichan*.so
-%{_libdir}/libguichan*.la
-%{_includedir}/guichan*
-%{_pkgconfigdir}/guichan*.pc
+%attr(755,root,root) %{_libdir}/libguichan.so
+%{_libdir}/libguichan.la
+%{_includedir}/guichan.hpp
+%dir %{_includedir}/guichan
+%{_includedir}/guichan/*.hpp
+%exclude %{_includedir}/guichan/allegro.hpp
+%exclude %{_includedir}/guichan/opengl.hpp
+%exclude %{_includedir}/guichan/sdl.hpp
+%{_includedir}/guichan/widgets
+%{_pkgconfigdir}/guichan-0.8.pc
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libguichan*.a
+%{_libdir}/libguichan.a
+
+%if %{with allegro}
+%files allegro
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libguichan_allegro-0.8.1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libguichan_allegro-0.8.1.so.1
+
+%files allegro-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libguichan_allegro.so
+%{_libdir}/libguichan_allegro.la
+%{_includedir}/guichan/allegro.hpp
+%{_includedir}/guichan/allegro
+
+%files allegro-static
+%defattr(644,root,root,755)
+%{_libdir}/libguichan_allegro.a
+%endif
+
+%files opengl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libguichan_opengl-0.8.1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libguichan_opengl-0.8.1.so.1
+
+%files opengl-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libguichan_opengl.so
+%{_libdir}/libguichan_opengl.la
+%{_includedir}/guichan/opengl.hpp
+%{_includedir}/guichan/opengl
+%{_pkgconfigdir}/guichan_opengl-0.8.pc
+
+%files opengl-static
+%defattr(644,root,root,755)
+%{_libdir}/libguichan_opengl.a
+
+%files sdl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libguichan_sdl-0.8.1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libguichan_sdl-0.8.1.so.1
+
+%files sdl-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libguichan_sdl.so
+%{_libdir}/libguichan_sdl.la
+%{_includedir}/guichan/sdl.hpp
+%{_includedir}/guichan/sdl
+%{_pkgconfigdir}/guichan_sdl-0.8.pc
+
+%files sdl-static
+%defattr(644,root,root,755)
+%{_libdir}/libguichan_sdl.a
This page took 0.074525 seconds and 4 git commands to generate.