commit b0efedc7cb99b6ea194d2e2d374576f0f733caaa
Author: xambroz <xambroz(a)users.noreply.github.com>
Date: Sun Mar 19 03:36:45 2017 +0100
initial import to fedora rpmfusion
.gitignore | 1 +
aegisub-pthread.patch | 11 +++++
aegisub.spec | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 124 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..206c2ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aegisub-3.2.2.tar.gz
diff --git a/aegisub-pthread.patch b/aegisub-pthread.patch
new file mode 100644
index 0000000..25c8944
--- /dev/null
+++ b/aegisub-pthread.patch
@@ -0,0 +1,11 @@
+--- Aegisub-3.2.2.orig/tools/Makefile 2016-09-09 15:06:52.437581247 +0200
++++ Aegisub-3.2.2.new/tools/Makefile 2016-09-09 15:07:21.562160809 +0200
+@@ -7,7 +7,7 @@
+ endif
+
+ repack-thes-dict_OBJ := $(d)repack-thes-dict.o $(TOP)lib/libaegisub.a
+-repack-thes-dict_LIBS := $(LIBS_BOOST) $(LIBS_ICU)
++repack-thes-dict_LIBS := $(LIBS_BOOST) $(LIBS_ICU) -lpthread
+ repack-thes-dict_CPPFLAGS := -I$(TOP) -I$(TOP)libaegisub/include $(CFLAGS_ICU)
+
+ PROGRAM += $(d)repack-thes-dict
diff --git a/aegisub.spec b/aegisub.spec
new file mode 100644
index 0000000..4225a10
--- /dev/null
+++ b/aegisub.spec
@@ -0,0 +1,111 @@
+%global gituser Aegisub
+%global gitname Aegisub
+%global commit f743d1411e09cbb2bd34ddd2d4b6738101fab710
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+
+Name: aegisub
+Version: 3.2.2
+Release: 3%{?dist}
+Summary: Tool for creating and modifying subtitles
+
+#src/gl/ - MIT license. See src/gl/glext.h
+#src/MatroskaParser.(c|h) - Licensed to BSD like license with permission from the
author.
+#universalchardet/ - MPL 1.1
+License: BSD and MIT and MPLv1.1
+URL:
http://www.aegisub.org
+#
https://github.com/Aegisub/Aegisub
+Source0:
https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{na...
+Patch0: %{name}-pthread.patch
+
+Requires: hicolor-icon-theme
+
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: automake
+BuildRequires: wxWidgets-devel
+BuildRequires: openal-devel
+BuildRequires: portaudio-devel
+BuildRequires: pulseaudio-libs-devel
+BuildRequires: libass-devel
+BuildRequires: ffms2-devel
+BuildRequires: fftw-devel
+BuildRequires: alsa-lib-devel
+BuildRequires: boost-devel
+BuildRequires: mesa-libGL-devel
+BuildRequires: hunspell-devel
+BuildRequires: lua-devel
+BuildRequires: zlib-devel
+BuildRequires: libX11-devel
+BuildRequires: valgrind-devel
+BuildRequires: intltool
+BuildRequires: desktop-file-utils
+#Used for OpenAL tests during configure
+BuildRequires: libcxx-devel
+
+#needed for the perl script downloading the additional documentation from wiki
+#for offline reading
+Requires: /usr/bin/perl perl(strict) perl(HTML::LinkExtor) perl(LWP)
perl(File::Path) perl(utf8) perl(URI) perl(warnings)
+
+
+%description
+Aegisub is a free, cross-platform open source tool for creating and
+modifying subtitles. Aegisub makes it quick and easy to time
+subtitles to audio, and features many powerful tools for styling them,
+including a built-in real-time video preview.
+
+%prep
+%autosetup -n %{gitname}-%{version} -p 1
+
+
+%build
+#remove version postfix
+sed -i -e 's/aegisub-[0-9.]*/aegisub/g' configure
+%configure --with-wx-config=wx-config-3.0
+%make_build
+
+
+%install
+%make_install
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+%find_lang %{name}
+
+%post
+update-desktop-database &> /dev/null ||:
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+update-desktop-database &> /dev/null ||:
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%files -f %{name}.lang
+%license LICENCE
+%doc docs/*
+%{_bindir}/%{name}*
+%{_datadir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}.*
+
+
+%changelog
+* Thu Sep 29 2016 Michal Ambroz <rebus at, seznam.cz> - 3.2.2-3
+- remove the version suffix from the commandline and lang catalog
+- addedd build dependency to libcxx-devel, used for openal detection
+
+* Wed Sep 28 2016 Michal Ambroz <rebus at, seznam.cz> - 3.2.2-2
+- addedd validation of the desktop file
+- removed buildroot cleanup
+- addedd requires on hicolor-icon-theme
+- added buildrequires on intltool
+
+* Fri Sep 9 2016 Michal Ambroz <rebus at, seznam.cz> - 3.2.2-1
+- initial build for Fedora
+
+
diff --git a/sources b/sources
index e69de29..d477e87 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9857e606da76c3d7c2fef540da055357 aegisub-3.2.2.tar.gz