From 606147d89d982e7fd66f26a8e50f35ddf1558fe2edb9ade2bb97a4cc01e17fcc Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 23 Mar 2012 13:49:06 +0000 Subject: [PATCH] Accepting request 110699 from home:RedDwarf A subtitle editor OBS-URL: https://build.opensuse.org/request/show/110699 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/aegisub?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + aegisub-2.1.8.99.rev5789-ld.patch | 26 ++++++++ aegisub-2.1.9-system_libs.patch | 39 +++++++++++ aegisub-2.1.9-underlinking.patch | 26 ++++++++ aegisub-2.1.9.tar.gz | 3 + aegisub.changes | 15 +++++ aegisub.spec | 106 ++++++++++++++++++++++++++++++ 8 files changed, 239 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 aegisub-2.1.8.99.rev5789-ld.patch create mode 100644 aegisub-2.1.9-system_libs.patch create mode 100644 aegisub-2.1.9-underlinking.patch create mode 100644 aegisub-2.1.9.tar.gz create mode 100644 aegisub.changes create mode 100644 aegisub.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/aegisub-2.1.8.99.rev5789-ld.patch b/aegisub-2.1.8.99.rev5789-ld.patch new file mode 100644 index 0000000..a3c6d30 --- /dev/null +++ b/aegisub-2.1.8.99.rev5789-ld.patch @@ -0,0 +1,26 @@ +Index: src/Makefile.am +=================================================================== +--- src/Makefile.am.orig ++++ src/Makefile.am +@@ -54,7 +54,7 @@ aegisub_2_1_LDADD += libaudio_player.a + if HAVE_ALSA + noinst_LIBRARIES += libaudio_alsa.a + libaudio_alsa_a_SOURCES = audio_player_alsa.cpp +-aegisub_2_1_LDADD += libaudio_alsa.a @ALSA_LIBS@ ++aegisub_2_1_LDADD += libaudio_alsa.a @ALSA_LIBS@ -lrt + endif + + if HAVE_PORTAUDIO +Index: src/Makefile.in +=================================================================== +--- src/Makefile.in.orig ++++ src/Makefile.in +@@ -40,7 +40,7 @@ host_triplet = @host@ + bin_PROGRAMS = aegisub-2.1$(EXEEXT) + @BUILD_DARWIN_TRUE@am__append_3 = -L/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries + @HAVE_ALSA_TRUE@am__append_4 = libaudio_alsa.a +-@HAVE_ALSA_TRUE@am__append_5 = libaudio_alsa.a @ALSA_LIBS@ ++@HAVE_ALSA_TRUE@am__append_5 = libaudio_alsa.a @ALSA_LIBS@ -lrt + @HAVE_PORTAUDIO_TRUE@am__append_6 = libaudio_portaudio.a + @HAVE_PORTAUDIO_TRUE@am__append_7 = libaudio_portaudio.a @PORTAUDIO_LIBS@ + @HAVE_PULSEAUDIO_TRUE@am__append_8 = libaudio_pulseaudio.a diff --git a/aegisub-2.1.9-system_libs.patch b/aegisub-2.1.9-system_libs.patch new file mode 100644 index 0000000..a6e08df --- /dev/null +++ b/aegisub-2.1.9-system_libs.patch @@ -0,0 +1,39 @@ +Index: src/gl_wrap.cpp +=================================================================== +--- src/gl_wrap.cpp.orig ++++ src/gl_wrap.cpp +@@ -45,7 +45,7 @@ + #include + #else + #include +-#include "gl/glext.h" ++#include "GL/glext.h" + #endif + #include "gl_wrap.h" + #include "options.h" +Index: src/Makefile.am +=================================================================== +--- src/Makefile.am.orig ++++ src/Makefile.am +@@ -345,8 +345,6 @@ aegisub_2_1_SOURCES += \ + $(srcdir)/config/*.h + + noinst_HEADERS = \ +- $(srcdir)/boost/*.hpp \ +- gl/glext.h \ + $(srcdir)/*.hxx + + EXTRA_DIST = \ +Index: src/Makefile.in +=================================================================== +--- src/Makefile.in.orig ++++ src/Makefile.in +@@ -843,8 +843,6 @@ aegisub_2_1_SOURCES = $(AUTO3_LUA) $(HUN + visual_tool_vector_clip.cpp $(srcdir)/*.h \ + $(srcdir)/include/aegisub/*.h $(srcdir)/config/*.h + noinst_HEADERS = \ +- $(srcdir)/boost/*.hpp \ +- gl/glext.h \ + $(srcdir)/*.hxx + + EXTRA_DIST = \ diff --git a/aegisub-2.1.9-underlinking.patch b/aegisub-2.1.9-underlinking.patch new file mode 100644 index 0000000..e579598 --- /dev/null +++ b/aegisub-2.1.9-underlinking.patch @@ -0,0 +1,26 @@ +Index: src/Makefile.am +=================================================================== +--- src/Makefile.am.orig ++++ src/Makefile.am +@@ -31,7 +31,7 @@ SUBDIRS = \ + AM_CXXFLAGS += -DAEGISUB -Iinclude @CXXFLAGS_OSX@ @WX_CXXFLAGS@ @OPENMP_CXXFLAGS@ @LIBASS_CFLAGS@ + + bin_PROGRAMS = aegisub-2.1 +-aegisub_2_1_LDADD = libresrc/libresrc.a $(libosxutil_lib) ++aegisub_2_1_LDADD = libresrc/libresrc.a $(libosxutil_lib) -lz + aegisub_2_1_CXXFLAGS = @FREETYPE_CFLAGS@ $(AM_CXXFLAGS) + aegisub_2_1_LDFLAGS = @DEBUG_FLAGS@ @PROFILE_FLAGS@ @GL_LIBS@ @PTHREAD_LIBS@ @WX_LIBS@ @ICONV_LIBS@ $(libosxutil_ldflags) @CCMALLOC_LDFLAGS@ @EFENCE_LDFLAGS@ + LIBS += @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @CCMALLOC_LIBS@ +Index: src/Makefile.in +=================================================================== +--- src/Makefile.in.orig ++++ src/Makefile.in +@@ -719,7 +719,7 @@ SUBDIRS = \ + $(libauto3) \ + $(libosxutil_subdir) + +-aegisub_2_1_LDADD = libresrc/libresrc.a $(libosxutil_lib) \ ++aegisub_2_1_LDADD = libresrc/libresrc.a $(libosxutil_lib) -lz \ + libaudio_player.a $(am__append_5) $(am__append_7) \ + $(am__append_9) $(am__append_11) $(am__append_13) \ + $(am__append_15) libsubtitle_provider.a $(am__append_18) \ diff --git a/aegisub-2.1.9.tar.gz b/aegisub-2.1.9.tar.gz new file mode 100644 index 0000000..46c5d52 --- /dev/null +++ b/aegisub-2.1.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac1f20751f3d2732d7e11627ea4cc30b53cb905d11422925b7f881785d373706 +size 2538256 diff --git a/aegisub.changes b/aegisub.changes new file mode 100644 index 0000000..63f5e16 --- /dev/null +++ b/aegisub.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Fri Feb 10 16:19:57 UTC 2012 - reddwarf@opensuse.org + +- Update to 2.1.9 + +------------------------------------------------------------------- +Sat Oct 29 16:04:47 UTC 2011 - reddwarf@opensuse.org + +- Update to 2.1.9 rev5789 + +------------------------------------------------------------------- +Sun Jul 5 23:43:39 CEST 2009 - reddwarf@opensuse.org + +- First package + diff --git a/aegisub.spec b/aegisub.spec new file mode 100644 index 0000000..a88a835 --- /dev/null +++ b/aegisub.spec @@ -0,0 +1,106 @@ +# +# spec file for package aegisub +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%bcond_with ffms2 +%bcond_with perl +%bcond_with ruby + +Name: aegisub +Version: 2.1.9 +Release: 0 +Summary: Subtitle editor +License: BSD-3-Clause +Group: Productivity/Multimedia/Video/Editors and Convertors +Url: http://www.aegisub.net/ +Source0: http://ftp.aegisub.org/pub/releases/aegisub-%{version}.tar.gz +Patch0: aegisub-2.1.9-system_libs.patch +Patch1: aegisub-2.1.8.99.rev5789-ld.patch +Patch2: aegisub-2.1.9-underlinking.patch +BuildRequires: ImageMagick +BuildRequires: boost-devel >= 1.34 +BuildRequires: gcc-c++ +BuildRequires: intltool +BuildRequires: pkg-config >= 0.20 +BuildRequires: update-desktop-files +%define _use_internal_dependency_generator 0 +%define __find_requires %wx_requires +BuildRequires: wxWidgets-devel >= 2.8.1 +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(fontconfig) >= 2.4 +BuildRequires: pkgconfig(freetype2) >= 9.7.0 +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(hunspell) >= 1.2.0 +BuildRequires: pkgconfig(libass) +BuildRequires: pkgconfig(libpulse) >= 0.5 +BuildRequires: pkgconfig(lua) < 5.2 +BuildRequires: pkgconfig(lua) >= 5.1 +BuildRequires: pkgconfig(openal) +%if %{with ffms2} +BuildRequires: pkgconfig(ffms2) +%endif +%if %{with perl} +BuildRequires: perl >= 5.004 +Requires: perl = %{perl_version} +%endif +%if %{with ruby} +BuildRequires: ruby-devel >= 1.8 +%endif + +%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. Aegisub's goal is to support using these advanced +functions with ease. + +%prep +%setup -q +%patch0 +%patch1 +%patch2 +rm -r src/boost +rm -r src/gl +FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') +sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/version.cpp +FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') +sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/version.cpp + +%build +%configure \ + %{!?with_ruby:--without-ruby} \ + %{!?with_perl:--without-perl} \ + --with-player-audio=pulseaudio \ + --docdir='%{_docdir}' +make %{?_smp_mflags} + +%install +%make_install +%suse_update_desktop_file %{name} +%find_lang %{name}21 + +%files -f %{name}21.lang +%defattr(0644, root, root, 0755) +%{_docdir}/%{name} +%attr(0755,root,root) %{_bindir}/%{name}-2.1 +%{_datadir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.* + +%changelog