2 # - make 4.3 breaks build
3 # - unvendor vendor/luabins
4 # - unvendor vendor/luajit
5 # - unvendor vendor/universalchardet
9 %bcond_without ffms2 # build ffms2 A/V provider
11 Summary: Subtitle editor
12 Summary(pl.UTF-8): Edytor napisów
17 Group: X11/Applications
18 Source0: http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz
19 # Source0-md5: d80e852c34811add358c06d77f5cd40d
21 Patch1: %{name}-icu.patch
22 Patch2: %{name}-icu64.patch
23 Patch3: %{name}-boost-1.70.patch
25 URL: http://www.aegisub.org/
26 # AC_AGI_COMPILE tries to run test program which tries to open device and most likely fails
27 #BuildRequires: OpenAL-devel >= 0.0.8
28 BuildRequires: OpenGL-devel
29 BuildRequires: alsa-lib-devel
30 BuildRequires: autoconf >= 2.57
31 BuildRequires: automake
32 BuildRequires: boost-devel >= 1.50.0
33 %{?with_ffms2:BuildRequires: ffms2-devel >= 2.16}
34 BuildRequires: fftw3-devel >= 3.3
35 BuildRequires: fontconfig-devel >= 1:2.4
36 # pkgconfig(freetype2) >= 9.7.0
37 BuildRequires: freetype-devel >= 1:2.1.9
38 BuildRequires: gettext-tools
39 BuildRequires: hunspell-devel >= 1.2.0
40 BuildRequires: intltool
41 BuildRequires: libass-devel >= 0.9.7
42 BuildRequires: libicu-devel >= 4.8.1.1
43 BuildRequires: libstdc++-devel
44 BuildRequires: lua51-devel
45 BuildRequires: pkgconfig >= 1:0.20
46 BuildRequires: portaudio-devel >= 19
47 BuildRequires: pulseaudio-devel >= 0.5
48 BuildRequires: tar >= 1:1.22
49 BuildRequires: wxGTK2-unicode-gl-devel >= 3.0.0
50 BuildRequires: wxWidgets-devel >= 3.0.0
52 BuildRequires: zlib-devel
53 Requires(post,postun): desktop-file-utils
54 Requires(post,postun): gtk-update-icon-cache
55 Requires: ffms2 >= 2.16
56 Requires: fftw3 >= 3.3
57 Requires: fontconfig-libs >= 1:2.4
58 Requires: freetype >= 1:2.1.9
59 Requires: hunspell >= 1.2.0
60 Requires: libass >= 0.9.7
61 Requires: libicu >= 4.8.1.1
62 Requires: pulseaudio-libs >= 0.5
64 ExclusiveArch: %{ix86} %{x8664} arm mips ppc
66 ExcludeArch: i386 i486
67 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70 Aegisub is an advanced subtitle editor for Windows, and UNIX-like
71 systems, such as Linux, Mac OS X and BSD. It is open source software
74 Aegisub natively works with the Advanced SubStation Alpha format
75 (aptly abbreviated ASS) which allows for many advanced effects in the
76 subtitles, apart from just basic timed text. Aegisubs goal is to
77 support using these advanced functions with ease.
79 %description -l pl.UTF-8
80 Aegisub to zaawansowany edytor napisów dla Windows oraz systemów
81 uniksowych, takich jak Linux, Mac OS X czy BSD. Jest to program o
82 otwartych źródłach, darmowy do dowolnego użytku.
84 Aegisub działa natywnie na formacie Advanced SubStation Alpha (w
85 stosownym skrócie ASS), pozwalającym na wiele zaawansowanych efektów w
86 napisach, poza samym powiązaniem z czasem. Celem Aegisubs jest łatwa
87 obsługa tych zaawansowanych funkcji.
97 %{__mv} vendor{,.keep}
99 %{__mv} vendor.keep/{luabins,luajit,universalchardet} vendor
102 %{__aclocal} -I m4macros
106 --disable-update-checker \
107 %{__with_without ffms2} \
109 --with-player-audio=PulseAudio \
110 --with-wx-config=wx-gtk2-unicode-config
115 rm -rf $RPM_BUILD_ROOT
117 DESTDIR=$RPM_BUILD_ROOT
119 ln -s %{name}-3.2 $RPM_BUILD_ROOT%{_bindir}/%{name}
121 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
122 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt}
123 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr}
124 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr}@latin
125 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{uk_UA,uk}
127 %find_lang %{name}-32
130 rm -rf $RPM_BUILD_ROOT
133 %update_desktop_database
134 %update_icon_cache hicolor
137 %update_desktop_database
138 %update_icon_cache hicolor
140 %files -f %{name}-32.lang
141 %defattr(644,root,root,755)
142 %doc LICENCE README.md
143 %attr(755,root,root) %{_bindir}/%{name}
144 %attr(755,root,root) %{_bindir}/%{name}-3.2
146 %{_desktopdir}/%{name}.desktop
147 %{_iconsdir}/hicolor/*/apps/%{name}.*