summaryrefslogtreecommitdiff
path: root/tgui.spec
blob: 37f1f6000ab82b1d1bf08c7ebb2788602f9a0c79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Summary:	Allegro GUI toolkit
Summary(pl.UTF-8):	Zestaw narzędzi GUI używający Allegro
Name:		tgui
Version:	0.9
Release:	0.1
License:	MIT
Group:		Development/Tools
Source0:	http://trent.gamblin.ca/tgui/%{name}-%{version}.tar.bz2
# Source0-md5:	89d9653c1e732a2a4324cc986f8892e8
Patch0:		%{name}-Makefile.patch
URL:		http://trent.gamblin.ca/tgui/
BuildRequires:	allegro-devel
BuildRequires:	libstdc++-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
TGUI is an extensible GUI toolkit that uses Allegro for input. It is
written in C++. The basic widget set is very plain, but the main
purpose of TGUI is to allow users to create their own widgets, to be
used in games and perhaps other applications.

%description -l pl.UTF-8
TGUI jest elastycznym zestawem narzędzi napisanym w C++ używającym
biblioteki Allegro. Podstawowy widget jest bardzo prosty, ale TGUI
umożliwia użytkownikom tworzenie ich własnych widgetów do gier lub
innych aplikacji.

%package devel
Summary:	TGUI header files
Summary(pl.UTF-8):	Pliki nagłówkowe TGUI
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires:	allegro-devel
Requires:	libstdc++-devel

%description devel
Header files for TGUI.

%description devel -l pl.UTF-8
Pliki nagłówkowe TGUI.

%package static
Summary:	TGUI static library
Summary(pl.UTF-8):	Biblioteka statyczna TGUI
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
TGUI static library.

%description static -l pl.UTF-8
Biblioteka statyczna TGUI.

%prep
%setup -q
%patch0 -p1

%build
%{__make} -j1 \
	CXX="%{__cxx}" \
	FLAGS="%{rpmcxxflags}"

%{__cxx} -shared %{name}.o -o libtgui.so

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install libtgui.so $RPM_BUILD_ROOT%{_libdir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libtgui.so
%{_includedir}/TGUI

%files static
%defattr(644,root,root,755)
%{_libdir}/libtgui.a