Last active
October 22, 2015 10:52
-
-
Save armando-basile/c1cdbe4f335cb9162a0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define archivename themonospot | |
%define basefolder themonospot | |
%define themonospotbase themonospot-console | |
Summary: Qt application to use themonospot (multimedia files parser/editor) | |
Name: themonospot-gui-qt | |
Version: 0.9.0 | |
Release: %mkrel 1 | |
License: GPLv2 | |
#ExcludeArch: ppc64 | |
Group: Video/Utilities | |
Source: https://github.com/armando-basile/%archivename/archive/%{name}-%{version}.tar.gz | |
# get sources from https://github.com/armando-basile/%archivename/archive/%{version}.tar.gz | |
# and rename folder from themonospot to themonospot-gui-qt | |
URL: https://github.com/armando-basile/%archivename/ | |
BuildArch: noarch | |
BuildRequires: mono-devel | |
BuildRequires: log4net-devel | |
BuildRequires: %{themonospotbase} >= 0.1.9 | |
BuildRequires: qyoto-devel | |
BuildRequires: qyoto | |
#BuildRequires: pinentry-qt4 | |
BuildRequires: pkgconfig | |
Requires: mono | |
Requires: log4net | |
Requires: %{themonospotbase} >= 0.9.0 | |
Requires: qyoto | |
Requires: qyoto-devel | |
%description | |
themonospot-gui-qt is a Mono framework application to create a | |
graphic frontend to use themonospot base component and his plugins. | |
%prep | |
%setup -q | |
%build | |
# build commands | |
cd %{_builddir}/%{name}-%{version}/build-linux | |
bash ./build-lnx-%archivename-qt.sh | |
%install | |
# create folders if not exists | |
mkdir -p %{buildroot}%{_prefix}/lib/%{basefolder} | |
mkdir -p %{buildroot}%{_bindir} | |
mkdir -p %{buildroot}%{_datadir}/pixmaps/ | |
mkdir -p %{buildroot}%{_datadir}/applications | |
mkdir -p %{buildroot}%{_docdir}/%{name} | |
# install commands | |
cp -f %{_builddir}/%{name}-%{version}/%{name}/bin/Debug/%{name}.* %{buildroot}%{_prefix}/lib/%{basefolder}/ | |
cp -f %{_builddir}/%{name}-%{version}/%{name}/resources/%{archivename}_48.png %{buildroot}%{_datadir}/pixmaps/%{name}.png | |
cp -f %{_builddir}/%{name}-%{version}/%{name}/resources/%{archivename}-qt.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop | |
# generate bin script | |
( | |
cat <<EOF | |
#!/bin/sh | |
exec mono "%{_prefix}/lib/%{basefolder}/%{name}.exe" "\$@" | |
EOF | |
) >> %{buildroot}%{_bindir}/%{name} | |
chmod 775 %{buildroot}%{_bindir}/%{name} | |
%files | |
%doc %{name}/copying.gpl | |
%{_bindir}/%{name} | |
%_prefix/lib/%{basefolder}/%{name}.* | |
%{_datadir}/pixmaps/%{name}.png | |
%{_datadir}/applications/%{name}.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment