]>
Commit | Line | Data |
---|---|---|
05156a5d | 1 | # TODO |
fc87a4b8 ER |
2 | # - unvendor vendor/luabins |
3 | # - unvendor vendor/luajit | |
4 | # - unvendor vendor/universalchardet | |
f9d70368 | 5 | # - our cxxflags |
05156a5d ER |
6 | |
7 | # Conditional build: | |
8 | %bcond_with ffms2 | |
9 | ||
10 | Summary: Subtitle editor | |
11 | Name: aegisub | |
12 | Version: 3.2.0 | |
13 | Release: 0.1 | |
14 | License: BSD | |
15 | Group: X11/Applications | |
16 | Source0: http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz | |
17 | # Source0-md5: 914685eb87daf230ac8856ed81479b43 | |
18 | URL: http://www.aegisub.net/ | |
19 | BuildRequires: Mesa-libGL-devel | |
20 | BuildRequires: alsa-lib-devel | |
21 | BuildRequires: autoconf | |
22 | BuildRequires: automake | |
23 | BuildRequires: boost-devel >= 1.50 | |
24 | BuildRequires: fftw3-devel >= 3.3 | |
25 | BuildRequires: fontconfig-devel >= 1:2.4 | |
26 | BuildRequires: hunspell-devel >= 1.2.0 | |
27 | BuildRequires: intltool | |
28 | BuildRequires: libass-devel | |
29 | BuildRequires: libstdc++-devel | |
30 | BuildRequires: lua51-devel | |
31 | BuildRequires: pkg-config >= 0.20 | |
32 | BuildRequires: pulseaudio-devel >= 0.5 | |
33 | BuildRequires: tar >= 1:1.22 | |
f9d70368 | 34 | BuildRequires: wxGTK2-unicode-gl-devel |
05156a5d ER |
35 | BuildRequires: wxWidgets-devel >= 2.9.5 |
36 | BuildRequires: xz | |
37 | BuildRequires: zlib-devel | |
38 | %if %{with ffms2} | |
39 | BuildRequires: pkgconfig(ffms2) | |
40 | %endif | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | Aegisub is an advanced subtitle editor for Windows, and UNIX-like | |
45 | systems, such as Linux, Mac OS X and BSD. It is open source software | |
46 | and free for any use. | |
47 | ||
48 | Aegisub natively works with the Advanced SubStation Alpha format | |
49 | (aptly abbreviated ASS) which allows for many advanced effects in the | |
50 | subtitles, apart from just basic timed text. Aegisubs goal is to | |
51 | support using these advanced functions with ease. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | ||
fc87a4b8 ER |
56 | mv vendor{,.keep} |
57 | mkdir vendor | |
58 | mv vendor.keep/{luabins,luajit,universalchardet} vendor | |
59 | ||
05156a5d | 60 | %build |
05156a5d ER |
61 | %configure \ |
62 | --with-player-audio=PulseAudio \ | |
63 | --disable-update-checker \ | |
f9d70368 | 64 | --with-wx-config=wx-gtk2-unicode-config \ |
05156a5d ER |
65 | --without-oss |
66 | ||
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
fc87a4b8 ER |
71 | %{__make} install \ |
72 | DESTDIR=$RPM_BUILD_ROOT | |
05156a5d ER |
73 | |
74 | %find_lang %{name}-32 | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files -f %{name}-32.lang | |
80 | %defattr(644,root,root,755) | |
81 | %doc LICENCE | |
82 | %attr(755,root,root) %{_bindir}/aegisub-3.2 | |
83 | %{_datadir}/%{name} | |
84 | %{_desktopdir}/%{name}.desktop | |
85 | %{_iconsdir}/hicolor/*/apps/%{name}.* |