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