]> git.pld-linux.org Git - packages/aegisub.git/blob - aegisub.spec
5bac5820e0a1d86433f402c4064d7de792f5edf0
[packages/aegisub.git] / aegisub.spec
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
10 Summary:        Subtitle editor
11 Name:           aegisub
12 Version:        3.2.0
13 Release:        2
14 License:        BSD
15 Group:          X11/Applications
16 Source0:        http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz
17 # Source0-md5:  914685eb87daf230ac8856ed81479b43
18 URL:            http://www.aegisub.net/
19 BuildRequires:  Mesa-libGL-devel
20 BuildRequires:  alsa-lib-devel
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  boost-devel >= 1.50
24 %{?with_ffms2:BuildRequires:    ffms2-devel}
25 BuildRequires:  fftw3-devel >= 3.3
26 BuildRequires:  fontconfig-devel >= 1:2.4
27 BuildRequires:  gettext-tools
28 BuildRequires:  hunspell-devel >= 1.2.0
29 BuildRequires:  intltool
30 BuildRequires:  libass-devel
31 BuildRequires:  libicu-devel
32 BuildRequires:  libstdc++-devel
33 BuildRequires:  lua51-devel
34 BuildRequires:  pkg-config >= 0.20
35 BuildRequires:  pulseaudio-devel >= 0.5
36 BuildRequires:  tar >= 1:1.22
37 BuildRequires:  wxGTK2-unicode-gl-devel
38 BuildRequires:  wxWidgets-devel >= 2.9.5
39 BuildRequires:  xz
40 BuildRequires:  zlib-devel
41 Requires:       desktop-file-utils
42 Requires:       gtk-update-icon-cache
43 # missing atomic_ops
44 ExcludeArch:    i486
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %description
48 Aegisub is an advanced subtitle editor for Windows, and UNIX-like
49 systems, such as Linux, Mac OS X and BSD. It is open source software
50 and free for any use.
51
52 Aegisub natively works with the Advanced SubStation Alpha format
53 (aptly abbreviated ASS) which allows for many advanced effects in the
54 subtitles, apart from just basic timed text. Aegisubs goal is to
55 support using these advanced functions with ease.
56
57 %prep
58 %setup -q
59
60 mv vendor{,.keep}
61 mkdir vendor
62 mv vendor.keep/{luabins,luajit,universalchardet} vendor
63
64 %build
65 %configure \
66         --with-player-audio=PulseAudio \
67         --disable-update-checker \
68         --with-wx-config=wx-gtk2-unicode-config \
69         %{__with_without ffms2} \
70         --without-oss
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 ln -s %{name}-3.2 $RPM_BUILD_ROOT%{_bindir}/%{name}
80
81 %{__rm} $RPM_BUILD_ROOT%{_localedir}/fr_FR
82 %{__rm} $RPM_BUILD_ROOT%{_localedir}/pt_PT
83 %{__rm} $RPM_BUILD_ROOT%{_localedir}/sr_RS
84 %{__rm} $RPM_BUILD_ROOT%{_localedir}/sr_RS@latin
85
86 %find_lang %{name}-32
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 %update_desktop_database
93 %update_icon_cache hicolor
94
95 %postun
96 %update_desktop_database
97 %update_icon_cache hicolor
98
99 %files -f %{name}-32.lang
100 %defattr(644,root,root,755)
101 %doc LICENCE
102 %attr(755,root,root) %{_bindir}/%{name}
103 %attr(755,root,root) %{_bindir}/%{name}-3.2
104 %{_datadir}/%{name}
105 %{_desktopdir}/%{name}.desktop
106 %{_iconsdir}/hicolor/*/apps/%{name}.*
This page took 0.10331 seconds and 3 git commands to generate.