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