]> git.pld-linux.org Git - packages/aegisub.git/blobdiff - aegisub.spec
rebuild with wxWidgets 3.2
[packages/aegisub.git] / aegisub.spec
index b9d704ec7b0c96fbf15d193155f9daec3d811871..e239f60aaf9d7204cd83443c83b644d8fda67595 100644 (file)
@@ -7,22 +7,26 @@
 # Conditional build:
 %bcond_without ffms2   # build ffms2 A/V provider
 
+%define                snap    85f711f
+%define                gitrev  85f711fccc75f01fd44f25537b8777df10c4b3d1
+
 Summary:       Subtitle editor
 Summary(pl.UTF-8):     Edytor napisów
 Name:          aegisub
-Version:       3.2.1
-Release:       3
+Version:       3.2.2
+Release:       22
 License:       BSD
 Group:         X11/Applications
-Source0:       http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz
-# Source0-md5: ff50e925eb96c69d928811e93a045a6b
-URL:           http://www.aegisub.net/
+#Source0:      http://ftp.aegisub.org/pub/releases/%{name}-%{version}.tar.xz
+Source0:       https://github.com/Aegisub/Aegisub/archive/%{snap}/%{name}-%{version}-%{snap}.tar.gz
+# Source0-md5: ecb9b5441ead4135c9b1baec0abdec49
+Patch0:                make-4.3.patch
+Patch1:                boost181.patch
+URL:           http://www.aegisub.org/
 # AC_AGI_COMPILE tries to run test program which tries to open device and most likely fails
 #BuildRequires:        OpenAL-devel >= 0.0.8
 BuildRequires: OpenGL-devel
 BuildRequires: alsa-lib-devel
-BuildRequires: autoconf >= 2.57
-BuildRequires: automake
 BuildRequires: boost-devel >= 1.50.0
 %{?with_ffms2:BuildRequires:   ffms2-devel >= 2.16}
 BuildRequires: fftw3-devel >= 3.3
@@ -40,7 +44,8 @@ BuildRequires:        pkgconfig >= 1:0.20
 BuildRequires: portaudio-devel >= 19
 BuildRequires: pulseaudio-devel >= 0.5
 BuildRequires: tar >= 1:1.22
-BuildRequires: wxGTK2-unicode-gl-devel >= 3.0.0
+BuildRequires: uchardet-devel
+BuildRequires: wxGTK3-unicode-gl-devel >= 3.0.0
 BuildRequires: wxWidgets-devel >= 3.0.0
 BuildRequires: xz
 BuildRequires: zlib-devel
@@ -54,6 +59,8 @@ Requires:     hunspell >= 1.2.0
 Requires:      libass >= 0.9.7
 Requires:      libicu >= 4.8.1.1
 Requires:      pulseaudio-libs >= 0.5
+# due to luajit usage
+ExclusiveArch: %{ix86} %{x8664} arm mips ppc
 # missing atomic_ops
 ExcludeArch:   i386 i486
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -79,19 +86,33 @@ napisach, poza samym powiązaniem z czasem. Celem Aegisubs jest łatwa
 obsługa tych zaawansowanych funkcji.
 
 %prep
-%setup -q
+%setup -q -n Aegisub-%{gitrev}
+%patch0 -p1
+%patch1 -p1
+
+cat <<'EOF' >build/git_version.h
+#define BUILD_GIT_VERSION_NUMBER 9010
+#define BUILD_GIT_VERSION_STRING "3.2.2.6f546951b"
+#define TAGGED_RELEASE 0
+#define INSTALLER_VERSION "0.0.0"
+#define RESOURCE_BASE_VERSION 0, 0, 0
+EOF
 
 %{__mv} vendor{,.keep}
 mkdir vendor
-%{__mv} vendor.keep/{luabins,luajit,universalchardet} vendor
+%{__mv} vendor.keep/{luabins,luajit} vendor
 
 %build
+./autogen.sh
+export C
 %configure \
+       --disable-compiler-flags \
        --disable-update-checker \
+       --with-boost-libdir=%{_libdir} \
        %{__with_without ffms2} \
        --without-oss \
        --with-player-audio=PulseAudio \
-       --with-wx-config=wx-gtk2-unicode-config
+       --with-wx-config=wx-gtk3-unicode-config
 
 %{__make}
 
@@ -100,15 +121,13 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-ln -s %{name}-3.2 $RPM_BUILD_ROOT%{_bindir}/%{name}
-
 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt}
 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr}
 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr_RS,sr}@latin
 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{uk_UA,uk}
 
-%find_lang %{name}-32
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -121,11 +140,11 @@ rm -rf $RPM_BUILD_ROOT
 %update_desktop_database
 %update_icon_cache hicolor
 
-%files -f %{name}-32.lang
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc LICENCE README.md
 %attr(755,root,root) %{_bindir}/%{name}
-%attr(755,root,root) %{_bindir}/%{name}-3.2
 %{_datadir}/%{name}
 %{_desktopdir}/%{name}.desktop
+%{_datadir}/metainfo/aegisub.appdata.xml
 %{_iconsdir}/hicolor/*/apps/%{name}.*
This page took 0.02864 seconds and 4 git commands to generate.