]>
Commit | Line | Data |
---|---|---|
05156a5d | 1 | # TODO |
833be23f | 2 | # - make 4.3 breaks build |
fc87a4b8 ER |
3 | # - unvendor vendor/luabins |
4 | # - unvendor vendor/luajit | |
5 | # - unvendor vendor/universalchardet | |
f9d70368 | 6 | # - our cxxflags |
05156a5d ER |
7 | |
8 | # Conditional build: | |
1987c5f6 | 9 | %bcond_without ffms2 # build ffms2 A/V provider |
05156a5d ER |
10 | |
11 | Summary: Subtitle editor | |
553a2ba3 | 12 | Summary(pl.UTF-8): Edytor napisów |
05156a5d | 13 | Name: aegisub |
5fdef24d | 14 | Version: 3.2.2 |
2787e333 | 15 | Release: 14 |
05156a5d ER |
16 | License: BSD |
17 | Group: X11/Applications | |
18 | Source0: http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz | |
5fdef24d | 19 | # Source0-md5: d80e852c34811add358c06d77f5cd40d |
699890b5 | 20 | Patch0: pthread.patch |
6b13f20d | 21 | Patch1: %{name}-icu.patch |
108e8929 AG |
22 | Patch2: %{name}-icu64.patch |
23 | Patch3: %{name}-boost-1.70.patch | |
2787e333 | 24 | Patch4: cflags.patch |
fb56d99b | 25 | URL: http://www.aegisub.org/ |
553a2ba3 JB |
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 | |
05156a5d | 29 | BuildRequires: alsa-lib-devel |
553a2ba3 | 30 | BuildRequires: autoconf >= 2.57 |
05156a5d | 31 | BuildRequires: automake |
553a2ba3 JB |
32 | BuildRequires: boost-devel >= 1.50.0 |
33 | %{?with_ffms2:BuildRequires: ffms2-devel >= 2.16} | |
05156a5d ER |
34 | BuildRequires: fftw3-devel >= 3.3 |
35 | BuildRequires: fontconfig-devel >= 1:2.4 | |
553a2ba3 JB |
36 | # pkgconfig(freetype2) >= 9.7.0 |
37 | BuildRequires: freetype-devel >= 1:2.1.9 | |
bebc09b5 | 38 | BuildRequires: gettext-tools |
05156a5d ER |
39 | BuildRequires: hunspell-devel >= 1.2.0 |
40 | BuildRequires: intltool | |
553a2ba3 JB |
41 | BuildRequires: libass-devel >= 0.9.7 |
42 | BuildRequires: libicu-devel >= 4.8.1.1 | |
05156a5d ER |
43 | BuildRequires: libstdc++-devel |
44 | BuildRequires: lua51-devel | |
553a2ba3 JB |
45 | BuildRequires: pkgconfig >= 1:0.20 |
46 | BuildRequires: portaudio-devel >= 19 | |
05156a5d ER |
47 | BuildRequires: pulseaudio-devel >= 0.5 |
48 | BuildRequires: tar >= 1:1.22 | |
553a2ba3 JB |
49 | BuildRequires: wxGTK2-unicode-gl-devel >= 3.0.0 |
50 | BuildRequires: wxWidgets-devel >= 3.0.0 | |
05156a5d ER |
51 | BuildRequires: xz |
52 | BuildRequires: zlib-devel | |
553a2ba3 JB |
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 | |
ac934b9e JB |
63 | # due to luajit usage |
64 | ExclusiveArch: %{ix86} %{x8664} arm mips ppc | |
c0ccb665 | 65 | # missing atomic_ops |
553a2ba3 | 66 | ExcludeArch: i386 i486 |
05156a5d ER |
67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68 | ||
69 | %description | |
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 | |
72 | and free for any use. | |
73 | ||
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. | |
78 | ||
553a2ba3 JB |
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. | |
83 | ||
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. | |
88 | ||
05156a5d ER |
89 | %prep |
90 | %setup -q | |
699890b5 | 91 | %patch0 -p1 |
6b13f20d | 92 | %patch1 -p1 |
108e8929 AG |
93 | %patch2 -p1 |
94 | %patch3 -p1 | |
2787e333 | 95 | %patch4 -p1 |
05156a5d | 96 | |
553a2ba3 | 97 | %{__mv} vendor{,.keep} |
fc87a4b8 | 98 | mkdir vendor |
553a2ba3 | 99 | %{__mv} vendor.keep/{luabins,luajit,universalchardet} vendor |
fc87a4b8 | 100 | |
05156a5d | 101 | %build |
833be23f | 102 | <<<<<<< Updated upstream |
2787e333 | 103 | %{__aclocal} -I m4macros |
833be23f JR |
104 | ======= |
105 | %{__libtoolize} | |
106 | %{__aclocal} | |
107 | >>>>>>> Stashed changes | |
2787e333 JR |
108 | %{__autoconf} |
109 | %{__autoheader} | |
05156a5d | 110 | %configure \ |
05156a5d | 111 | --disable-update-checker \ |
1987c5f6 | 112 | %{__with_without ffms2} \ |
553a2ba3 JB |
113 | --without-oss \ |
114 | --with-player-audio=PulseAudio \ | |
115 | --with-wx-config=wx-gtk2-unicode-config | |
05156a5d ER |
116 | |
117 | %{__make} | |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
fc87a4b8 ER |
121 | %{__make} install \ |
122 | DESTDIR=$RPM_BUILD_ROOT | |
05156a5d | 123 | |
9006741b ER |
124 | ln -s %{name}-3.2 $RPM_BUILD_ROOT%{_bindir}/%{name} |
125 | ||
553a2ba3 JB |
126 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr} |
127 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt} | |
128 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr} | |
129 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr}@latin | |
dd7e4de7 | 130 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{uk_UA,uk} |
d40d8ddd | 131 | |
05156a5d ER |
132 | %find_lang %{name}-32 |
133 | ||
134 | %clean | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
212f2f22 ER |
137 | %post |
138 | %update_desktop_database | |
139 | %update_icon_cache hicolor | |
140 | ||
141 | %postun | |
142 | %update_desktop_database | |
143 | %update_icon_cache hicolor | |
144 | ||
05156a5d ER |
145 | %files -f %{name}-32.lang |
146 | %defattr(644,root,root,755) | |
553a2ba3 | 147 | %doc LICENCE README.md |
9006741b ER |
148 | %attr(755,root,root) %{_bindir}/%{name} |
149 | %attr(755,root,root) %{_bindir}/%{name}-3.2 | |
05156a5d ER |
150 | %{_datadir}/%{name} |
151 | %{_desktopdir}/%{name}.desktop | |
152 | %{_iconsdir}/hicolor/*/apps/%{name}.* |