2012-03-23 14:49:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package aegisub
|
|
|
|
#
|
2018-05-19 15:12:24 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-03-23 14:49:06 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-08-30 15:06:57 +02:00
|
|
|
%define _rev 524c6114a82157b143567240884de3a6d030b091
|
|
|
|
%define gitname Aegisub
|
|
|
|
|
2012-03-23 14:49:06 +01:00
|
|
|
Name: aegisub
|
2018-08-30 15:06:57 +02:00
|
|
|
Version: 3.2.2+git20180710
|
2012-03-23 14:49:06 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Subtitle editor
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
2018-05-19 15:16:27 +02:00
|
|
|
Url: http://www.aegisub.org/
|
2018-08-30 15:06:57 +02:00
|
|
|
Source0: https://github.com/Aegisub/Aegisub/archive/%{_rev}.tar.gz#/aegisub-%{version}.tar.gz
|
|
|
|
Source99: changelog.txt
|
2015-07-02 16:39:02 +02:00
|
|
|
Patch1: Makefile.inc.in.patch
|
2017-06-05 10:22:09 +02:00
|
|
|
Patch2: remove-vendor-luajit-dependency.patch
|
|
|
|
Patch4: aegisub-no-optimize.patch
|
2017-06-19 12:47:16 +02:00
|
|
|
Patch5: luabins.patch
|
2018-08-30 15:06:57 +02:00
|
|
|
#PATCH-FIX-OPENSUSE - davejplater@gmail.com - aegisub-git-version.patch - Create git_version.h which is missing in git.
|
|
|
|
Patch7: aegisub-git-version.patch
|
2014-01-29 11:08:35 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-03-23 14:49:06 +01:00
|
|
|
BuildRequires: gcc-c++
|
2014-01-29 11:08:35 +01:00
|
|
|
BuildRequires: intltool
|
2017-09-29 14:16:32 +02:00
|
|
|
BuildRequires: libboost_filesystem-devel
|
|
|
|
BuildRequires: libboost_locale-devel
|
|
|
|
BuildRequires: libboost_regex-devel
|
|
|
|
BuildRequires: libboost_thread-devel
|
2017-06-05 10:22:09 +02:00
|
|
|
BuildRequires: lua51
|
|
|
|
BuildRequires: pkgconfig >= 0.20
|
2018-05-19 15:12:24 +02:00
|
|
|
BuildRequires: wxWidgets-devel >= 3
|
2012-03-23 14:49:06 +01:00
|
|
|
BuildRequires: pkgconfig(alsa)
|
2017-09-29 14:16:32 +02:00
|
|
|
BuildRequires: pkgconfig(ffms2)
|
2012-11-15 18:42:27 +01:00
|
|
|
BuildRequires: pkgconfig(fftw3) >= 3.3
|
2012-03-23 14:49:06 +01:00
|
|
|
BuildRequires: pkgconfig(fontconfig) >= 2.4
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(hunspell) >= 1.2.0
|
|
|
|
BuildRequires: pkgconfig(libass)
|
|
|
|
BuildRequires: pkgconfig(libpulse) >= 0.5
|
2017-06-05 10:22:09 +02:00
|
|
|
BuildRequires: pkgconfig(luajit)
|
2012-11-15 18:42:27 +01:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2017-06-05 10:22:09 +02:00
|
|
|
ExcludeArch: ppc ppc64 ppc64le
|
2012-03-23 14:49:06 +01:00
|
|
|
|
|
|
|
%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
|
2018-08-30 15:06:57 +02:00
|
|
|
%setup -q -n %{gitname}-%{_rev}
|
|
|
|
%patch1 -p0
|
|
|
|
%patch2 -p0
|
2017-06-05 10:22:09 +02:00
|
|
|
%patch4 -p1
|
2017-06-19 12:47:16 +02:00
|
|
|
%patch5 -p1
|
2018-08-30 15:06:57 +02:00
|
|
|
%patch7
|
2012-03-23 14:49:06 +01:00
|
|
|
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
|
2018-08-30 15:06:57 +02:00
|
|
|
cp %{SOURCE99} .
|
2012-03-23 14:49:06 +01:00
|
|
|
|
|
|
|
%build
|
2018-08-30 15:06:57 +02:00
|
|
|
./autogen.sh
|
|
|
|
#autoreconf -fvi
|
2017-06-05 10:22:09 +02:00
|
|
|
%configure \
|
|
|
|
--disable-update-checker \
|
|
|
|
--with-player-audio=PulseAudio \
|
|
|
|
--without-oss
|
|
|
|
make %{?_smp_mflags}
|
2012-03-23 14:49:06 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2018-08-30 15:06:57 +02:00
|
|
|
%find_lang %{name}
|
2012-03-23 14:49:06 +01:00
|
|
|
|
2018-08-30 15:06:57 +02:00
|
|
|
%files -f %{name}.lang
|
2012-03-23 14:49:06 +01:00
|
|
|
%defattr(0644, root, root, 0755)
|
2018-08-30 15:06:57 +02:00
|
|
|
%license LICENCE
|
|
|
|
%doc README.md changelog.txt
|
|
|
|
%attr(0755,root,root) %{_bindir}/aegisub
|
2012-11-15 18:42:27 +01:00
|
|
|
%{_datadir}/aegisub/
|
|
|
|
%{_datadir}/applications/aegisub.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/aegisub.*
|
2012-03-23 14:49:06 +01:00
|
|
|
|
|
|
|
%changelog
|