]>
Commit | Line | Data |
---|---|---|
54f545cf JB |
1 | # TODO: system tinyxml2 and libzen |
2 | Summary: Embed, validate and export BWF files metadata | |
3 | Summary(pl.UTF-8): Osadzanie, sprawdzanie i eksport metadanych z plików BWF | |
4 | Name: bwfmetaedit | |
5 | Version: 1.3.6 | |
6 | Release: 1 | |
396032a0 | 7 | License: Public Domain (bwfmetaedit), BSD (embedded libraries) |
54f545cf JB |
8 | Group: Applications/Multimedia |
9 | Source0: https://mediaarea.net/download/source/bwfmetaedit/%{version}/%{name}_%{version}.tar.xz | |
10 | # Source0-md5: 95f60d6488e9be608aa7e683a70afe90 | |
11 | URL: https://mediaarea.net/BWFMetaEdit | |
12 | BuildRequires: Qt5Gui-devel >= 5 | |
13 | BuildRequires: Qt5Widgets-devel >= 5 | |
14 | BuildRequires: autoconf >= 2.50 | |
15 | BuildRequires: automake | |
16 | BuildRequires: libstdc++-devel | |
17 | BuildRequires: libtool >= 2:1.5 | |
18 | BuildRequires: pkgconfig | |
19 | BuildRequires: qt5-build >= 5 | |
20 | BuildRequires: rpmbuild(macros) >= 1.566 | |
21 | BuildRequires: sed >= 4.0 | |
22 | BuildRequires: tar >= 1:1.22 | |
23 | BuildRequires: xz | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | BWF MetaEdit is a tool that supports embedding, validating, and | |
28 | exporting of metadata in Broadcast WAVE Format (BWF) files. It | |
29 | supports the FADGI Broadcast WAVE Metadata Embedding Guidelines. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | BWF MetaEdit to narzędzie obsługujące osadzanie, sprawdzanie | |
33 | poprawności i eksportowanie metadanych w plikach Broadcast WAVE (BWF). | |
34 | Obsługuje wytyczne osadzania metadanych w Broadcast WAVE wg FADGI. | |
35 | ||
36 | %package gui | |
37 | Summary: GUI to embed, validate and export BWF files metadata | |
38 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do osadzania, sprawdzania i eksportu metadanych z plików BWF | |
39 | Group: X11/Applications/Multimedia | |
40 | ||
41 | %description gui | |
42 | BWF MetaEdit is a tool that supports embedding, validating, and | |
43 | exporting of metadata in Broadcast WAVE Format (BWF) files. It | |
44 | supports the FADGI Broadcast WAVE Metadata Embedding Guidelines. | |
45 | ||
46 | %description gui -l pl.UTF-8 | |
47 | BWF MetaEdit to narzędzie obsługujące osadzanie, sprawdzanie | |
48 | poprawności i eksportowanie metadanych w plikach Broadcast WAVE (BWF). | |
49 | Obsługuje wytyczne osadzania metadanych w Broadcast WAVE wg FADGI. | |
50 | ||
51 | %prep | |
52 | %setup -q -n bwfmetaedit | |
53 | %undos *.html *.txt Release/*.txt | |
54 | chmod 644 *.html *.txt Release/*.txt | |
55 | ||
56 | %build | |
57 | # build CLI | |
58 | cd Project/GNU/CLI | |
59 | %{__libtoolize} | |
60 | %{__aclocal} | |
61 | %{__autoconf} | |
62 | %{__automake} | |
63 | %configure | |
64 | %{__make} | |
65 | # now build GUI | |
66 | cd ../../../Project/GNU/GUI | |
67 | %{__libtoolize} | |
68 | %{__aclocal} | |
69 | %{__autoconf} | |
70 | %{__automake} | |
71 | # Qt5Core with -reduce-relocations requires PIC code | |
72 | %configure \ | |
73 | CXXFLAGS="%{rpmcxxflags} -fPIC" | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} -C Project/GNU/CLI install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} -C Project/GNU/GUI install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | install -d $RPM_BUILD_ROOT{%{_datadir}/metainfo,%{_desktopdir},%{_iconsdir}/hicolor/128x128/apps} | |
86 | cp -p Project/GNU/GUI/bwfmetaedit-gui.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
87 | cp -p Project/GNU/GUI/bwfmetaedit-gui.metainfo.xml $RPM_BUILD_ROOT%{_datadir}/metainfo | |
88 | cp -p Source/Resource/Image/FADGI/Logo128.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/128x128/apps/bwfmetaedit.png | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc License.html History_CLI.txt Release/ReadMe_CLI_Linux.txt | |
96 | %attr(755,root,root) %{_bindir}/bwfmetaedit | |
97 | ||
98 | %files gui | |
99 | %defattr(644,root,root,755) | |
100 | %doc License.html History_GUI.txt Release/ReadMe_GUI_Linux.txt | |
101 | %attr(755,root,root) %{_bindir}/bwfmetaedit-gui | |
102 | %{_datadir}/metainfo/bwfmetaedit-gui.metainfo.xml | |
103 | %{_desktopdir}/bwfmetaedit-gui.desktop | |
104 | %{_iconsdir}/hicolor/128x128/apps/bwfmetaedit.png |