# upstream does not seem to do stable releases but instead regulary releases svn # snapshots so I don't bother with adding checkout date into the alphatag %define svn_rev 2778 %define alphatag r%{svn_rev} Name: aegisub Version: 2.1.6 Release: 0.1.%{alphatag}%{?dist} Summary: Comprehensive video subtitle creation tool Group: Applications/Multimedia License: BSD URL: http://www.aegisub.net/ Source0: http://www.mahou.org/~verm/aegisub/%{name}-%{version}-dev-r%{svn_rev}.tar.gz # don't check for svn revision, so that we don't need svn during build Patch0: %{name}-svn-rev-check.patch # use system libass Patch1: %{name}-system-libass.patch Patch2: %{name}-underlink.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: intltool BuildRequires: libtool # BR: libavcodec, libavformat, libavformat, libswscale and libpostproc BuildRequires: ffmpeg-devel # BR: lua >= 5.1 BuildRequires: lua-devel # BR: pulseaudio >= 0.5 (pulse audio backend isn't quite functional) #BuildRequires: pulseaudio-libs-devel # BR: alsa (alsa backend isn't working either) #BuildRequires: alsa-libs-devel # BR: openal BuildRequires: openal-devel # BR: wx >= 2.8.1, fontconfig >= 2.4, freetype >= 9.7.0 BuildRequires: wxGTK-devel BuildRequires: libass-devel # BR: hunspell >= 1.2.0 for spellchecking support BuildRequires: hunspell-devel BuildRequires: autoconf %description Aegisub is a powerful and comprehensive tool for creating subtitles for video files. %package doc Summary: Documentation for %{name} Group: Documentation %description doc Aegisub is a powerful and comprehensive tool for creating subtitles for video files. This package contains documentation and demos. %prep %setup -q -n %{name}-%{version}-dev-r%{svn_rev} # we don't want to install svn for just getting the revision %patch0 -p1 -b .svn-rev-check %{__sed} -i -e 's/__SVN_REVISION/%{svn_rev}/g' configure.in # we use system libass %patch1 -p1 -b .system-libass %{__rm} -rf ./libass %patch2 -p1 -b .underlink %build autoreconf --force %configure --without-portaudio \ --without-pulse \ --without-alsa \ --without-perl \ --without-ruby \ --without-provider-ffmpegsource \ --with-player-audio=openal make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %find_lang %{name}21 desktop-file-install --vendor="rpmfusion" --delete-original \ --dir %{buildroot}%{_datadir}/applications \ --mode 0644 \ %{buildroot}%{_datadir}/applications/%{name}.desktop %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %files -f %{name}21.lang %defattr(-,root,root,-) %doc README %{_bindir}/%{name}-2.1 %{_datadir}/%{name} %{_datadir}/applications/rpmfusion-%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %files doc %defattr(-,root,root,-) %{_docdir}/%{name} %changelog * Sat Apr 11 2009 Martin Sourada - 2.1.6-0.1.r2778 - Initial rpm package for rpmfusion