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