]> git.pld-linux.org Git - packages/mkvtoolnix.git/blob - mkvtoolnix.spec
- updated BRs
[packages/mkvtoolnix.git] / mkvtoolnix.spec
1 # TODO:
2 # - make -gui subpackages (Qt4 deps)
3 # - boost autodetection fails ($BOOSTLIBDIR empty), so all boost libs must be passed --with-boost-xxx=xxxx
4 #
5 # Conditional build
6 %bcond_with     verbose # verbose build (V=1)
7 %bcond_without  qt      # disable GUI build (Qt4 deps)
8 #
9 Summary:        Matroska video utilities
10 Summary(pl.UTF-8):      Narzędzia do filmów w formacie Matroska
11 Name:           mkvtoolnix
12 Version:        10.0.0
13 Release:        1
14 License:        GPL v2
15 Group:          Applications/Multimedia
16 Source0:        http://www.bunkus.org/videotools/mkvtoolnix/sources/%{name}-%{version}.tar.xz
17 # Source0-md5:  ab7fc3646f00467acafbde5ad9317320
18 Patch0:         %{name}-init_locales.patch
19 URL:            http://www.bunkus.org/videotools/mkvtoolnix/
20 %if %{with qt}
21 BuildRequires:  Qt5Gui-devel
22 BuildRequires:  Qt5Concurrent-devel
23 %endif
24 BuildRequires:  autoconf
25 BuildRequires:  boost-devel >= 1.36
26 BuildRequires:  bzip2-devel
27 BuildRequires:  docbook-style-xsl
28 BuildRequires:  expat-devel
29 BuildRequires:  flac-devel
30 BuildRequires:  gettext-tools
31 BuildRequires:  libebml-devel >= 1.2.0
32 BuildRequires:  libmagic-devel
33 BuildRequires:  libmatroska-devel >= 1.1.0
34 BuildRequires:  libogg-devel
35 BuildRequires:  libvorbis-devel
36 BuildRequires:  lzo-devel
37 BuildRequires:  pcre-cxx-devel
38 %if %{with qt}
39 BuildRequires:  pkgconfig
40 BuildRequires:  qt5-build >= 4.3.3-3
41 %endif
42 BuildRequires:  ruby-rake
43 BuildRequires:  ruby-modules
44 BuildRequires:  zlib-devel
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %description
48 Matroska video utilities.
49
50 %description -l pl.UTF-8
51 Narzędzia do filmów w formacie Matroska.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56
57 %build
58 %{__autoconf}
59 %configure \
60         --docdir=%{_datadir}/%{name} \
61         --%{?with_qt:en}%{!?with_qt:dis}able-qt \
62         --with-boost-filesystem=boost_filesystem \
63         --with-boost-regex=boost_regex \
64         --with-boost-system=boost_system \
65         %{?with_qt:--with-moc=/usr/bin/moc-qt5} \
66         %{?with_qt:--with-uic=/usr/bin/uic-qt5} \
67         --with-docbook-xsl-root=/usr/share/sgml/docbook/xsl-stylesheets
68
69 LC_ALL="C.UTF-8" rake %{?_smp_mflags} %{?with_verbose:V=1}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 LC_ALL="C.UTF-8" rake install \
75         INSTALL="install -cp" \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr_RS{,@latin}
79
80 %find_lang %{name}
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files -f %{name}.lang
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog README.md
88 %attr(755,root,root) %{_bindir}/*
89 %{_datadir}/mime/packages/mkvtoolnix.xml
90 %{_desktopdir}/mkvinfo.desktop
91 %{_desktopdir}/mkvtoolnix-gui.desktop
92 %{_iconsdir}/hicolor/*/apps/mkvextract.png
93 %{_iconsdir}/hicolor/*/apps/mkvinfo.png
94 %{_iconsdir}/hicolor/*/apps/mkvmerge.png
95 %{_iconsdir}/hicolor/*/apps/mkvtoolnix-gui.png
96 %{_iconsdir}/hicolor/*/apps/mkvpropedit.png
97 %{_mandir}/man1/*
98 %lang(ca) %{_mandir}/ca/man1/*
99 %lang(de) %{_mandir}/de/man1/*
100 %lang(es) %{_mandir}/es/man1/*
101 %lang(ja) %{_mandir}/ja/man1/*
102 %lang(ko) %{_mandir}/ko/man1/*
103 %lang(nl) %{_mandir}/nl/man1/*
104 %lang(pl) %{_mandir}/pl/man1/*
105 %lang(uk) %{_mandir}/uk/man1/*
106 %lang(zh_CN) %{_mandir}/zh_CN/man1/*
This page took 1.121049 seconds and 4 git commands to generate.