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