-
Notifications
You must be signed in to change notification settings - Fork 5
/
sdl_bgi.spec
60 lines (49 loc) · 1.78 KB
/
sdl_bgi.spec
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
# sdl_bgi.spec - tested on Fedora 26+
%global debug_package %{nil}
Summary: BGI-compatible 2D graphics C library
Name: SDL_bgi
Version: 2.3.0
Release: 1
License: ZLib
Group: Libraries
Source: %{name}-%{version}.tar.gz
URL: http://libxbgi.sourceforge.net/
BuildRequires: SDL2-devel
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%description
SDL_bgi is a Borland Graphics Interface (BGI) emulation library based
on SDL2. This library strictly emulates most BGI functions, making it
possible to compile SDL2 versions of programs written for Turbo/Borland
C. ARGB extensions and basic mouse support are also implemented;
further, native SDL2 functions may be used in SDL_bgi programs.
%prep
%setup -q -n %{name}-%{version}
%build
cd src
make
%install
rm -rf $RPM_BUILD_ROOT
cd src
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
mkdir -p $RPM_BUILD_ROOT/%{_includedir}
mkdir -p $RPM_BUILD_ROOT/%{_includedir}/SDL2/
/usr/bin/install -m 644 graphics.h $RPM_BUILD_ROOT/%{_includedir}
/usr/bin/install -m 644 SDL_bgi.h $RPM_BUILD_ROOT/%{_includedir}/SDL2/
/usr/bin/install -m 644 lib%{name}.so $RPM_BUILD_ROOT/%{_libdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS BUGS ChangeLog doc/ INSTALL.md LICENSE README.md
%doc sdl_bgi.spec test/ TODO VERSION
%attr(644,root,root) %{_libdir}/lib%{name}.so
%attr(644,root,root) %{_includedir}/SDL2/SDL_bgi.h
%attr(644,root,root) %{_includedir}/graphics.h
%changelog
* Tue Jan 2 2018 Guido Gonzato <guido.gonzato at gmail.com>
Slightly improved portability.
* Sun Oct 22 2017 Guido Gonzato <guido.gonzato at gmail.com>
Slightly improved portability.
* Thu Nov 6 2014 Guido Gonzato <guido.gonzato at gmail.com>
This is a generic rpm, also buildable on Ubuntu