]> git.pld-linux.org Git - SPECS.git/blob - paragui.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / paragui.spec
1 Summary:        ParaGUI - A complete GUI/Windowing system for SDL
2 Summary(pl.UTF-8):      ParaGUI - kompletne środowisko okienkowe dla SDL
3 Name:           paragui
4 Version:        1.1.8
5 Release:        6
6 License:        LGPL v2+
7 Group:          X11/Libraries
8 Source0:        http://savannah.nongnu.org/download/paragui/%{name}-%{version}.tar.gz
9 # Source0-md5:  6741b8f704b47b2c6b62fef29759c89c
10 Patch0:         %{name}-am18.patch
11 Patch1:         %{name}-link.patch
12 Patch2:         %{name}-64bit-workaround.patch
13 Patch3:         %{name}-pkg_sigc.patch
14 Patch4:         %{name}-no_cairotest.patch
15 Patch5:         gcc45.patch
16 Patch6:         SDL_Sint16.patch
17 Patch7:         pkg-config-includedir.patch
18 Patch8:         %{name}-physfs.patch
19 Patch9:         %{name}-c++.patch
20 Patch10:        %{name}-narrowing.patch
21 URL:            http://savannah.nongnu.org/projects/paragui/
22 BuildRequires:  SDL-devel >= 1.2.6
23 BuildRequires:  SDL_image-devel >= 1.2.0
24 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  expat-devel >= 1.95
27 BuildRequires:  freetype-devel >= 2.1.0
28 BuildRequires:  libjpeg-devel
29 BuildRequires:  libpng-devel
30 BuildRequires:  libsigc++12-devel >= 1.2.5
31 BuildRequires:  libtiff-devel
32 BuildRequires:  libtool >= 2:1.4d
33 BuildRequires:  physfs-devel >= 3
34 BuildRequires:  pkgconfig
35 BuildRequires:  rpmbuild(macros) >= 1.213
36 Requires:       SDL >= 1.2.6
37 Requires:       SDL_image >= 1.2.0
38 Requires:       freetype >= 2.1.0
39 Requires:       libsigc++12 >= 1.2.5
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 This library is a complete GUI/Windowing system for SDL.
44
45 %description -l pl.UTF-8
46 Kompletne środowisko okienkowe dla SDL.
47
48 %package devel
49 Summary:        Includes and more to develop SDL GUI applications
50 Summary(pl.UTF-8):      Pliki nagłówkowe dla ParaGUI
51 Group:          X11/Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53 Requires:       SDL-devel >= 1.2.6
54 Requires:       expat-devel
55 Requires:       freetype-devel >= 2.1.0
56 Requires:       libjpeg-devel
57 Requires:       libpng-devel
58 Requires:       libsigc++12-devel >= 1.2.5
59 Requires:       libtiff-devel
60 Requires:       physfs-devel >= 3
61
62 %description devel
63 Header files for ParaGUI library - a complete GUI/Windowing system for
64 SDL.
65
66 %description devel -l pl.UTF-8
67 Pliki nagłówkowe dla ParaGUI.
68
69 %package static
70 Summary:        Static paragui library
71 Summary(pl.UTF-8):      Statyczna biblioteka paragui
72 Group:          X11/Development/Libraries
73 Requires:       %{name}-devel = %{version}-%{release}
74
75 %description static
76 Static version of paragui library.
77
78 %description static -l pl.UTF-8
79 Statyczna wersja biblioteki paragui.
80
81 %prep
82 %setup -q
83 %patch0 -p1
84 %patch1 -p1
85 %ifarch alpha %{x8664}
86 %patch2 -p1
87 %endif
88 %patch3 -p0
89 %patch4 -p0
90 %patch5 -p1
91 %patch6 -p1
92 %patch7 -p1
93 %patch8 -p1
94 %patch9 -p1
95 %patch10 -p1
96
97 %build
98 %{__libtoolize}
99 %{__aclocal}
100 %{__autoconf}
101 %{__autoheader}
102 %{__automake}
103 cd src/physfs
104 # only configured, not built (system physfs is used)
105 %{__libtoolize}
106 %{__aclocal}
107 %{__autoconf}
108 %{__autoheader}
109 %{__automake}
110 cd ../..
111 %configure
112 %{__make}
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116
117 %{__make} install \
118         DESTDIR=$RPM_BUILD_ROOT \
119         pkgconfigdir=%{_pkgconfigdir} \
120         m4datadir=%{_aclocaldir}
121
122 # obsoleted by pkg-config
123 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libparagui.la
124
125 %clean
126 rm -rf $RPM_BUILD_ROOT
127
128 %post   -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
130
131 %files
132 %defattr(644,root,root,755)
133 # COPYING is license header, not LGPL text
134 %doc AUTHORS COPYING README README-ParaGUI.txt TODO
135 %attr(755,root,root) %{_libdir}/libparagui-*.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/libparagui-*.so.8
137 %{_datadir}/paragui
138
139 %files devel
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_bindir}/paragui-config
142 %attr(755,root,root) %{_libdir}/libparagui.so
143 %{_includedir}/paragui
144 %{_aclocaldir}/paragui.m4
145 %{_pkgconfigdir}/paragui.pc
146
147 %files static
148 %defattr(644,root,root,755)
149 %{_libdir}/libparagui.a
This page took 0.645353 seconds and 3 git commands to generate.