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