--- /dev/null
+# TODO
+# - needs wx-config to build with wxWidgets
+
+# Conditional build:
+%bcond_with ffms2
+
+Summary: Subtitle editor
+Name: aegisub
+Version: 3.2.0
+Release: 0.1
+License: BSD
+Group: X11/Applications
+Source0: http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz
+# Source0-md5: 914685eb87daf230ac8856ed81479b43
+URL: http://www.aegisub.net/
+BuildRequires: Mesa-libGL-devel
+BuildRequires: alsa-lib-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: boost-devel >= 1.50
+BuildRequires: fftw3-devel >= 3.3
+BuildRequires: fontconfig-devel >= 1:2.4
+BuildRequires: hunspell-devel >= 1.2.0
+BuildRequires: intltool
+BuildRequires: libass-devel
+BuildRequires: libstdc++-devel
+BuildRequires: lua51-devel
+BuildRequires: pkg-config >= 0.20
+BuildRequires: pulseaudio-devel >= 0.5
+BuildRequires: tar >= 1:1.22
+BuildRequires: wxWidgets-devel >= 2.9.5
+BuildRequires: xz
+BuildRequires: zlib-devel
+%if %{with ffms2}
+BuildRequires: pkgconfig(ffms2)
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Aegisub is an advanced subtitle editor for Windows, and UNIX-like
+systems, such as Linux, Mac OS X and BSD. It is open source software
+and free for any use.
+
+Aegisub natively works with the Advanced SubStation Alpha format
+(aptly abbreviated ASS) which allows for many advanced effects in the
+subtitles, apart from just basic timed text. Aegisubs goal is to
+support using these advanced functions with ease.
+
+%prep
+%setup -q
+
+%build
+%{__gettextize}
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+
+%configure \
+ --with-player-audio=PulseAudio \
+ --disable-update-checker \
+ --without-oss
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%make_install
+
+%find_lang %{name}-32
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}-32.lang
+%defattr(644,root,root,755)
+%doc LICENCE
+%attr(755,root,root) %{_bindir}/aegisub-3.2
+%{_datadir}/%{name}
+%{_desktopdir}/%{name}.desktop
+%{_iconsdir}/hicolor/*/apps/%{name}.*