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