]>
Commit | Line | Data |
---|---|---|
05156a5d | 1 | # TODO |
fc87a4b8 ER |
2 | # - unvendor vendor/luabins |
3 | # - unvendor vendor/luajit | |
4 | # - unvendor vendor/universalchardet | |
f9d70368 | 5 | # - our cxxflags |
05156a5d ER |
6 | |
7 | # Conditional build: | |
1987c5f6 | 8 | %bcond_without ffms2 # build ffms2 A/V provider |
05156a5d ER |
9 | |
10 | Summary: Subtitle editor | |
553a2ba3 | 11 | Summary(pl.UTF-8): Edytor napisów |
05156a5d | 12 | Name: aegisub |
5fdef24d | 13 | Version: 3.2.2 |
fe4d2ab8 | 14 | Release: 12 |
05156a5d ER |
15 | License: BSD |
16 | Group: X11/Applications | |
17 | Source0: http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz | |
5fdef24d | 18 | # Source0-md5: d80e852c34811add358c06d77f5cd40d |
699890b5 | 19 | Patch0: pthread.patch |
6b13f20d | 20 | Patch1: %{name}-icu.patch |
108e8929 AG |
21 | Patch2: %{name}-icu64.patch |
22 | Patch3: %{name}-boost-1.70.patch | |
05156a5d | 23 | URL: http://www.aegisub.net/ |
553a2ba3 JB |
24 | # AC_AGI_COMPILE tries to run test program which tries to open device and most likely fails |
25 | #BuildRequires: OpenAL-devel >= 0.0.8 | |
26 | BuildRequires: OpenGL-devel | |
05156a5d | 27 | BuildRequires: alsa-lib-devel |
553a2ba3 | 28 | BuildRequires: autoconf >= 2.57 |
05156a5d | 29 | BuildRequires: automake |
553a2ba3 JB |
30 | BuildRequires: boost-devel >= 1.50.0 |
31 | %{?with_ffms2:BuildRequires: ffms2-devel >= 2.16} | |
05156a5d ER |
32 | BuildRequires: fftw3-devel >= 3.3 |
33 | BuildRequires: fontconfig-devel >= 1:2.4 | |
553a2ba3 JB |
34 | # pkgconfig(freetype2) >= 9.7.0 |
35 | BuildRequires: freetype-devel >= 1:2.1.9 | |
bebc09b5 | 36 | BuildRequires: gettext-tools |
05156a5d ER |
37 | BuildRequires: hunspell-devel >= 1.2.0 |
38 | BuildRequires: intltool | |
553a2ba3 JB |
39 | BuildRequires: libass-devel >= 0.9.7 |
40 | BuildRequires: libicu-devel >= 4.8.1.1 | |
05156a5d ER |
41 | BuildRequires: libstdc++-devel |
42 | BuildRequires: lua51-devel | |
553a2ba3 JB |
43 | BuildRequires: pkgconfig >= 1:0.20 |
44 | BuildRequires: portaudio-devel >= 19 | |
05156a5d ER |
45 | BuildRequires: pulseaudio-devel >= 0.5 |
46 | BuildRequires: tar >= 1:1.22 | |
553a2ba3 JB |
47 | BuildRequires: wxGTK2-unicode-gl-devel >= 3.0.0 |
48 | BuildRequires: wxWidgets-devel >= 3.0.0 | |
05156a5d ER |
49 | BuildRequires: xz |
50 | BuildRequires: zlib-devel | |
553a2ba3 JB |
51 | Requires(post,postun): desktop-file-utils |
52 | Requires(post,postun): gtk-update-icon-cache | |
53 | Requires: ffms2 >= 2.16 | |
54 | Requires: fftw3 >= 3.3 | |
55 | Requires: fontconfig-libs >= 1:2.4 | |
56 | Requires: freetype >= 1:2.1.9 | |
57 | Requires: hunspell >= 1.2.0 | |
58 | Requires: libass >= 0.9.7 | |
59 | Requires: libicu >= 4.8.1.1 | |
60 | Requires: pulseaudio-libs >= 0.5 | |
ac934b9e JB |
61 | # due to luajit usage |
62 | ExclusiveArch: %{ix86} %{x8664} arm mips ppc | |
c0ccb665 | 63 | # missing atomic_ops |
553a2ba3 | 64 | ExcludeArch: i386 i486 |
05156a5d ER |
65 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
66 | ||
67 | %description | |
68 | Aegisub is an advanced subtitle editor for Windows, and UNIX-like | |
69 | systems, such as Linux, Mac OS X and BSD. It is open source software | |
70 | and free for any use. | |
71 | ||
72 | Aegisub natively works with the Advanced SubStation Alpha format | |
73 | (aptly abbreviated ASS) which allows for many advanced effects in the | |
74 | subtitles, apart from just basic timed text. Aegisubs goal is to | |
75 | support using these advanced functions with ease. | |
76 | ||
553a2ba3 JB |
77 | %description -l pl.UTF-8 |
78 | Aegisub to zaawansowany edytor napisów dla Windows oraz systemów | |
79 | uniksowych, takich jak Linux, Mac OS X czy BSD. Jest to program o | |
80 | otwartych źródłach, darmowy do dowolnego użytku. | |
81 | ||
82 | Aegisub działa natywnie na formacie Advanced SubStation Alpha (w | |
83 | stosownym skrócie ASS), pozwalającym na wiele zaawansowanych efektów w | |
84 | napisach, poza samym powiązaniem z czasem. Celem Aegisubs jest łatwa | |
85 | obsługa tych zaawansowanych funkcji. | |
86 | ||
05156a5d ER |
87 | %prep |
88 | %setup -q | |
699890b5 | 89 | %patch0 -p1 |
6b13f20d | 90 | %patch1 -p1 |
108e8929 AG |
91 | %patch2 -p1 |
92 | %patch3 -p1 | |
05156a5d | 93 | |
553a2ba3 | 94 | %{__mv} vendor{,.keep} |
fc87a4b8 | 95 | mkdir vendor |
553a2ba3 | 96 | %{__mv} vendor.keep/{luabins,luajit,universalchardet} vendor |
fc87a4b8 | 97 | |
05156a5d | 98 | %build |
05156a5d | 99 | %configure \ |
05156a5d | 100 | --disable-update-checker \ |
1987c5f6 | 101 | %{__with_without ffms2} \ |
553a2ba3 JB |
102 | --without-oss \ |
103 | --with-player-audio=PulseAudio \ | |
104 | --with-wx-config=wx-gtk2-unicode-config | |
05156a5d ER |
105 | |
106 | %{__make} | |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
fc87a4b8 ER |
110 | %{__make} install \ |
111 | DESTDIR=$RPM_BUILD_ROOT | |
05156a5d | 112 | |
9006741b ER |
113 | ln -s %{name}-3.2 $RPM_BUILD_ROOT%{_bindir}/%{name} |
114 | ||
553a2ba3 JB |
115 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr} |
116 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt} | |
117 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr} | |
118 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr}@latin | |
dd7e4de7 | 119 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{uk_UA,uk} |
d40d8ddd | 120 | |
05156a5d ER |
121 | %find_lang %{name}-32 |
122 | ||
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
212f2f22 ER |
126 | %post |
127 | %update_desktop_database | |
128 | %update_icon_cache hicolor | |
129 | ||
130 | %postun | |
131 | %update_desktop_database | |
132 | %update_icon_cache hicolor | |
133 | ||
05156a5d ER |
134 | %files -f %{name}-32.lang |
135 | %defattr(644,root,root,755) | |
553a2ba3 | 136 | %doc LICENCE README.md |
9006741b ER |
137 | %attr(755,root,root) %{_bindir}/%{name} |
138 | %attr(755,root,root) %{_bindir}/%{name}-3.2 | |
05156a5d ER |
139 | %{_datadir}/%{name} |
140 | %{_desktopdir}/%{name}.desktop | |
141 | %{_iconsdir}/hicolor/*/apps/%{name}.* |