]> git.pld-linux.org Git - packages/doomsday.git/blame - doomsday.spec
cleanup
[packages/doomsday.git] / doomsday.spec
CommitLineData
1748e707 1# TODO
96e1b283 2# - sync pl
9d6c2050 3# - clean up spec. cleanup what?
65f3387c 4%define subver stable
613b8bc6 5Summary: jDoom, jHeretic and jHexen for Linux
5398b956 6Summary(pl.UTF-8): jDoom, jHeretic i jHexen dla Linuksa
613b8bc6 7Name: doomsday
65f3387c
LM
8Version: 1.15.4
9Release: 0.1
a4a33ef2 10License: GPL v2 / CC 3.0 (icons)
613b8bc6 11Group: Applications/Games
65f3387c
LM
12Source0: http://downloads.sourceforge.net/deng/%{name}-%{subver}-%{version}.tar.gz
13# Source0-md5: 8329eacdea73edca7aea4034ca8d78aa
a4a33ef2 14Source1: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-26/Doom-1-48x48.png
76bc3a41 15# Source1-md5: b7b7a9389eba56679e5db65d95c06803
a4a33ef2 16Source2: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-23/Hexen-1-48x48.png
76bc3a41 17# Source2-md5: 573845e6e747f68617ac67f3a87dc78e
a4a33ef2 18Source3: http://www.iconarchive.com/icons/3xhumed/mega-games-pack-28/Heretic-I-1-48x48.png
76bc3a41 19# Source3-md5: c89e36c49eabe2846137f313a5250308
46c1e1fa
ER
20Source4: %{name}-doom.desktop
21Source5: %{name}-heretic.desktop
22Source6: %{name}-hexen.desktop
9d6c2050 23#Patch0: %{name}-libpng15.patch
27c6a781 24#Patch1: %{name}-format.patch
96e1b283 25URL: http://www.dengine.net/
613b8bc6 26BuildRequires: OpenGL-devel
5a429c39
ER
27BuildRequires: QtCore-devel
28BuildRequires: QtNetwork-devel
29BuildRequires: QtOpenGL-devel
65f3387c
LM
30BuildRequires: SDL2-devel
31BuildRequires: SDL2_mixer-devel
65f3387c 32BuildRequires: assimp-devel
8755e793 33BuildRequires: libpng-devel
5a429c39 34BuildRequires: libstdc++-devel
8755e793 35BuildRequires: ncurses-devel
5a429c39 36BuildRequires: pkgconfig
8755e793 37BuildRequires: python
38BuildRequires: python-modules
5a429c39 39BuildRequires: qt4-build
1305a4f7 40BuildRequires: qt4-qmake
5a429c39 41BuildRequires: rpm-pythonprov
96e1b283 42BuildRequires: rpmbuild(macros) >= 1.595
5a429c39 43BuildRequires: xorg-lib-libXrandr-devel
85be4bea 44Requires(post): /sbin/ldconfig
663fb57e 45Requires: TiMidity++
613b8bc6 46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
613b8bc6 48%description
96e1b283
ER
49The Doomsday Engine allows you to play the classic first-person
50shooters DOOM, Heretic, and Hexen using modern technology, with
51hardware accelerated 3D graphics, surround sound and much more.
613b8bc6 52
39e9285b 53%description -l pl.UTF-8
6f1050b2 54jDoom, jHeretic i jHexen dla Linuksa.
613b8bc6 55
56%prep
1305a4f7 57%setup -q -n %{name}-%{subver}-%{version}
65f3387c
LM
58#%patch0 -p1
59#%patch1 -p1
613b8bc6 60
61%build
663fb57e
ER
62install -d build
63cd build
96e1b283 64LDFLAGS="-lm"
65f3387c
LM
65qmake-qt4 CONFIG+=deng_notools \
66 -r ../doomsday/doomsday.pro
613b8bc6 67%{__make}
68
69%install
70rm -rf $RPM_BUILD_ROOT
1748e707 71install -d $RPM_BUILD_ROOT%{_desktopdir}
9d6c2050
ER
72%{__make} -C build install \
73 INSTALL_ROOT=$RPM_BUILD_ROOT
613b8bc6 74
1305a4f7
ER
75# no -devel package. cleanup
76%{__rm} $RPM_BUILD_ROOT%{_libdir}/libdeng_*.so
77# junk links
78%{__rm} $RPM_BUILD_ROOT%{_libdir}/libdeng_*.so.1.15
79%{__rm} $RPM_BUILD_ROOT%{_libdir}/libdeng_core.so.2.0
80
a4a33ef2 81install -d $RPM_BUILD_ROOT%{_pixmapsdir}
9d6c2050
ER
82cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/doom.png
83cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/hexen.png
84cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/heretic.png
a4a33ef2 85
46c1e1fa
ER
86cp -p %{_sourcedir}/%{name}-doom.desktop $RPM_BUILD_ROOT%{_desktopdir}
87cp -p %{_sourcedir}/%{name}-hexen.desktop $RPM_BUILD_ROOT%{_desktopdir}
88cp -p %{_sourcedir}/%{name}-heretic.desktop $RPM_BUILD_ROOT%{_desktopdir}
1748e707 89
613b8bc6 90%clean
6f1050b2 91rm -rf $RPM_BUILD_ROOT
613b8bc6 92
85be4bea
ER
93%post
94/sbin/ldconfig
96e1b283
ER
95%banner -o -e %{name} <<-EOF
96To run doomsday you need some WAD file: either freedoom package
97or some shareware or commercial WAD from Doom or Heretic:
98Doom.wad, Doom1.wad, Doom2.wad, Tnt.wad, Plutonia.wad,
99Heretic.wad or Heretic1.wad.
100When you have them, run doomsday with:
101doomsday -game [ jdoom | jheretic | jhexen ]
1748e707 102EOF
613b8bc6 103
65f3387c
LM
104%postun -p /sbin/ldconfig
105
613b8bc6 106%files
107%defattr(644,root,root,755)
65f3387c 108#%doc doomsday/build/README
613b8bc6 109%attr(755,root,root) %{_bindir}/doomsday
65f3387c
LM
110%attr(755,root,root) %{_bindir}/doomsday-server
111%attr(755,root,root) %{_bindir}/launch-doomsday
112
b72a2307 113%attr(755,root,root) %{_libdir}/libdeng_core.so.*.*.*
65f3387c 114%attr(755,root,root) %ghost %{_libdir}/libdeng_core.so.2
b72a2307 115%attr(755,root,root) %{_libdir}/libdeng_appfw.so.*.*.*
65f3387c 116%attr(755,root,root) %ghost %{_libdir}/libdeng_appfw.so.1
b72a2307 117%attr(755,root,root) %{_libdir}/libdeng_doomsday.so.*.*.*
65f3387c 118%attr(755,root,root) %ghost %{_libdir}/libdeng_doomsday.so.1
b72a2307 119%attr(755,root,root) %{_libdir}/libdeng_gui.so.*.*.*
65f3387c 120%attr(755,root,root) %ghost %{_libdir}/libdeng_gui.so.1
b72a2307 121%attr(755,root,root) %{_libdir}/libdeng_legacy.so.*.*.*
65f3387c 122%attr(755,root,root) %ghost %{_libdir}/libdeng_legacy.so.1
b72a2307 123%attr(755,root,root) %{_libdir}/libdeng_shell.so.*.*.*
65f3387c
LM
124%attr(755,root,root) %ghost %{_libdir}/libdeng_shell.so.1
125
1305a4f7 126
65f3387c
LM
127%{_libdir}/doomsday
128%{_datadir}/doomsday
1748e707 129%{_desktopdir}/*.desktop
a4a33ef2 130%{_pixmapsdir}/*.png
65f3387c 131%{_mandir}/man6/*
This page took 0.067174 seconds and 4 git commands to generate.