]> git.pld-linux.org Git - packages/aegisub.git/blob - aegisub.spec
icu+boost rebuild
[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 %define         snap    85f711f
11 %define         gitrev  85f711fccc75f01fd44f25537b8777df10c4b3d1
12
13 Summary:        Subtitle editor
14 Summary(pl.UTF-8):      Edytor napisów
15 Name:           aegisub
16 Version:        3.2.2
17 Release:        19
18 License:        BSD
19 Group:          X11/Applications
20 #Source0:       http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz
21 Source0:        https://github.com/Aegisub/Aegisub/archive/%{snap}/%{name}-%{version}-%{snap}.tar.gz
22 # Source0-md5:  ecb9b5441ead4135c9b1baec0abdec49
23 Patch0:         make-4.3.patch
24 URL:            http://www.aegisub.org/
25 # AC_AGI_COMPILE tries to run test program which tries to open device and most likely fails
26 #BuildRequires: OpenAL-devel >= 0.0.8
27 BuildRequires:  OpenGL-devel
28 BuildRequires:  alsa-lib-devel
29 BuildRequires:  boost-devel >= 1.50.0
30 %{?with_ffms2:BuildRequires:    ffms2-devel >= 2.16}
31 BuildRequires:  fftw3-devel >= 3.3
32 BuildRequires:  fontconfig-devel >= 1:2.4
33 # pkgconfig(freetype2) >= 9.7.0
34 BuildRequires:  freetype-devel >= 1:2.1.9
35 BuildRequires:  gettext-tools
36 BuildRequires:  hunspell-devel >= 1.2.0
37 BuildRequires:  intltool
38 BuildRequires:  libass-devel >= 0.9.7
39 BuildRequires:  libicu-devel >= 4.8.1.1
40 BuildRequires:  libstdc++-devel
41 BuildRequires:  lua51-devel
42 BuildRequires:  pkgconfig >= 1:0.20
43 BuildRequires:  portaudio-devel >= 19
44 BuildRequires:  pulseaudio-devel >= 0.5
45 BuildRequires:  tar >= 1:1.22
46 BuildRequires:  uchardet-devel
47 BuildRequires:  wxGTK3-unicode-gl-devel >= 3.0.0
48 BuildRequires:  wxWidgets-devel >= 3.0.0
49 BuildRequires:  xz
50 BuildRequires:  zlib-devel
51 Requires(post,postun):  desktop-file-utils
52 Requires(post,postun):  gtk-update-icon-cache
53 Requires:       ffms2 >= 2.16
54 Requires:       fftw3 >= 3.3
55 Requires:       fontconfig-libs >= 1:2.4
56 Requires:       freetype >= 1:2.1.9
57 Requires:       hunspell >= 1.2.0
58 Requires:       libass >= 0.9.7
59 Requires:       libicu >= 4.8.1.1
60 Requires:       pulseaudio-libs >= 0.5
61 # due to luajit usage
62 ExclusiveArch:  %{ix86} %{x8664} arm mips ppc
63 # missing atomic_ops
64 ExcludeArch:    i386 i486
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67 %description
68 Aegisub is an advanced subtitle editor for Windows, and UNIX-like
69 systems, such as Linux, Mac OS X and BSD. It is open source software
70 and free for any use.
71
72 Aegisub natively works with the Advanced SubStation Alpha format
73 (aptly abbreviated ASS) which allows for many advanced effects in the
74 subtitles, apart from just basic timed text. Aegisubs goal is to
75 support using these advanced functions with ease.
76
77 %description -l pl.UTF-8
78 Aegisub to zaawansowany edytor napisów dla Windows oraz systemów
79 uniksowych, takich jak Linux, Mac OS X czy BSD. Jest to program o
80 otwartych źródłach, darmowy do dowolnego użytku.
81
82 Aegisub działa natywnie na formacie Advanced SubStation Alpha (w
83 stosownym skrócie ASS), pozwalającym na wiele zaawansowanych efektów w
84 napisach, poza samym powiązaniem z czasem. Celem Aegisubs jest łatwa
85 obsługa tych zaawansowanych funkcji.
86
87 %prep
88 %setup -q -n Aegisub-%{gitrev}
89 %patch0 -p1
90
91 cat <<'EOF' >build/git_version.h
92 #define BUILD_GIT_VERSION_NUMBER 9010
93 #define BUILD_GIT_VERSION_STRING "3.2.2.6f546951b"
94 #define TAGGED_RELEASE 0
95 #define INSTALLER_VERSION "0.0.0"
96 #define RESOURCE_BASE_VERSION 0, 0, 0
97 EOF
98
99 %{__mv} vendor{,.keep}
100 mkdir vendor
101 %{__mv} vendor.keep/{luabins,luajit} vendor
102
103 %build
104 ./autogen.sh
105 export C
106 %configure \
107         --disable-compiler-flags \
108         --disable-update-checker \
109         --with-boost-libdir=%{_libdir} \
110         %{__with_without ffms2} \
111         --without-oss \
112         --with-player-audio=PulseAudio \
113         --with-wx-config=wx-gtk3-unicode-config
114
115 %{__make}
116
117 %install
118 rm -rf $RPM_BUILD_ROOT
119 %{__make} install \
120         DESTDIR=$RPM_BUILD_ROOT
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}
129
130 %clean
131 rm -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}.lang
142 %defattr(644,root,root,755)
143 %doc LICENCE README.md
144 %attr(755,root,root) %{_bindir}/%{name}
145 %{_datadir}/%{name}
146 %{_desktopdir}/%{name}.desktop
147 %{_datadir}/metainfo/aegisub.appdata.xml
148 %{_iconsdir}/hicolor/*/apps/%{name}.*
This page took 0.054485 seconds and 4 git commands to generate.