forked from aspotashev/mkvtoolnix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkvtoolnix.spec
205 lines (161 loc) · 5.13 KB
/
mkvtoolnix.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#
# spec file for RPM-based distributions
#
Name: mkvtoolnix
URL: https://mkvtoolnix.download/
Version: 9.8.0
Release: 1
Summary: Tools to create, alter and inspect Matroska files
Source: %{name}-%{version}.tar.xz
BuildRequires: fdupes, file-devel, flac, flac-devel, libogg-devel, libstdc++-devel, libvorbis-devel, make, pkgconfig, zlib-devel, boost-devel >= 1.46.0, po4a
%if 0%{?centos}
BuildRequires: devtoolset-4-gcc-c++ >= 5.0.0, rubygem-drake
%endif
%if 0%{?suse_version}
BuildRequires: gettext-tools libqt5-qtbase-devel, ruby2.1-rubygem-rake, libxslt-tools, docbook-xsl-stylesheets
%else
BuildRequires: gettext-devel, qt5-qtbase-devel, libxslt, docbook-style-xsl
%endif
%if 0%{?suse_version}
BuildRequires: gcc5-c++
%endif
%if 0%{?fedora}
BuildRequires: gcc-c++ >= 4.9.0, rubypick, pugixml-devel, rubygem-rake, json-devel >= 2
%endif
%if 0%{?suse_version}
Group: Productivity/Multimedia/Other
License: GPL-2.0
%else
Group: Applications/Multimedia
License: GPLv2
%endif
%description
Tools to create and manipulate Matroska files (extensions .mkv and
.mka), a new container format for audio and video files. Includes
command line tools mkvextract, mkvinfo, mkvmerge, mkvpropedit and a
graphical frontend for them, mkvmerge-gui.
Authors:
--------
Moritz Bunkus <[email protected]>
%prep
%setup
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%if 0%{?centos}
export CC=/opt/rh/devtoolset-4/root/bin/gcc
export CXX=/opt/rh/devtoolset-4/root/bin/g++
%endif
%if 0%{?suse_version}
export CC=/usr/bin/gcc-5
export CXX=/usr/bin/g++-5
%endif
%configure --enable-debug --enable-optimization
%build
%if 0%{?centos}
drake
%else
rake
%endif
%install
%if 0%{?centos}
drake DESTDIR=$RPM_BUILD_ROOT install
%else
rake DESTDIR=$RPM_BUILD_ROOT install
%endif
%if 0%{?suse_version}
strip ${RPM_BUILD_ROOT}/usr/bin/*
%endif
%fdupes -s %buildroot/%_mandir
%fdupes -s %buildroot/%_prefix
%files
%defattr (-,root,root)
%doc AUTHORS COPYING README.md NEWS.md
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/mime/packages/*.xml
%lang(ca) %{_datadir}/locale/ca/*/*.mo
%lang(cs) %{_datadir}/locale/cs/*/*.mo
%lang(de) %{_datadir}/locale/de/*/*.mo
%lang(es) %{_datadir}/locale/es/*/*.mo
%lang(eu) %{_datadir}/locale/eu/*/*.mo
%lang(fr) %{_datadir}/locale/fr/*/*.mo
%lang(it) %{_datadir}/locale/it/*/*.mo
%lang(ja) %{_datadir}/locale/ja/*/*.mo
%lang(ko) %{_datadir}/locale/ko/*/*.mo
%lang(lt) %{_datadir}/locale/lt/*/*.mo
%lang(nl) %{_datadir}/locale/nl/*/*.mo
%lang(pl) %{_datadir}/locale/pl/*/*.mo
%lang(pt) %{_datadir}/locale/pt/*/*.mo
%lang(pt_BR) %{_datadir}/locale/pt_BR/*/*.mo
%lang(ru) %{_datadir}/locale/ru/*/*.mo
%lang(sr_RS) %{_datadir}/locale/sr_RS/*/*.mo
%lang(sr_RS@latin) %{_datadir}/locale/sr_RS@latin/*/*.mo
%lang(sv) %{_datadir}/locale/sv/*/*.mo
%lang(tr) %{_datadir}/locale/tr/*/*.mo
%lang(uk) %{_datadir}/locale/uk/*/*.mo
%lang(zh_CN) %{_datadir}/locale/zh_CN/*/*.mo
%lang(zh_TW) %{_datadir}/locale/zh_TW/*/*.mo
%{_datadir}/man/man1/*
%{_datadir}/man/ca
%{_datadir}/man/de
%{_datadir}/man/es
%{_datadir}/man/ja
%{_datadir}/man/ko
%{_datadir}/man/nl
%{_datadir}/man/pl
%{_datadir}/man/uk
%{_datadir}/man/zh_CN
%changelog -n mkvtoolnix
* Sun Jan 22 2017 Moritz Bunkus <[email protected]> 9.8.0-1
- New version
* Tue Dec 27 2016 Moritz Bunkus <[email protected]> 9.7.1-1
- New version
* Tue Dec 27 2016 Moritz Bunkus <[email protected]> 9.7.0-1
- New version
* Tue Nov 29 2016 Moritz Bunkus <[email protected]> 9.6.0-1
- New version
* Sun Oct 16 2016 Moritz Bunkus <[email protected]> 9.5.0-1
- New version
* Sun Sep 11 2016 Moritz Bunkus <[email protected]> 9.4.2-1
- New version
* Sun Sep 11 2016 Moritz Bunkus <[email protected]> 9.4.1-1
- New version
* Mon Aug 22 2016 Moritz Bunkus <[email protected]> 9.4.0-1
- New version
* Thu Jul 14 2016 Moritz Bunkus <[email protected]> 9.3.1-1
- New version
* Wed Jul 13 2016 Moritz Bunkus <[email protected]> 9.3.0-1
- New version
* Sat May 28 2016 Moritz Bunkus <[email protected]> 9.2.0-1
- New version
* Sat Apr 23 2016 Moritz Bunkus <[email protected]> 9.1.0-1
- New version
* Mon Mar 28 2016 Moritz Bunkus <[email protected]> 9.0.1-1
- New version
* Sat Mar 26 2016 Moritz Bunkus <[email protected]> 9.0.0-1
- New version
* Sun Feb 21 2016 Moritz Bunkus <[email protected]> 8.9.0-1
- New version
* Sun Jan 10 2016 Moritz Bunkus <[email protected]> 8.8.0-1
- New version
* Thu Dec 31 2015 Moritz Bunkus <[email protected]> 8.7.0-1
- New version
* Sun Nov 29 2015 Moritz Bunkus <[email protected]> 8.6.1-1
- New version
* Sat Nov 28 2015 Moritz Bunkus <[email protected]> 8.6.0-1
- New version
* Wed Nov 4 2015 Moritz Bunkus <[email protected]> 8.5.2-1
- New version
* Wed Oct 21 2015 Moritz Bunkus <[email protected]> 8.5.1-1
- New version
* Sat Oct 17 2015 Moritz Bunkus <[email protected]> 8.5.0-1
- New version
* Sat Sep 19 2015 Moritz Bunkus <[email protected]> 8.4.0-1
- New version
* Sat Aug 15 2015 Moritz Bunkus <[email protected]> 8.3.0-1
- Removed support for wxWidgets-based GUIs
* Sat May 9 2015 Moritz Bunkus <[email protected]> 7.8.0-1
- Add support for the Qt-based GUIs
* Sat Nov 15 2014 Moritz Bunkus <[email protected]> 7.3.0-1
- Serious reorganization & fixes for rpmlint complaints