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