Last active
October 22, 2015 10:52
-
-
Save armando-basile/ef983fcaa4ff7884d0c1 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: Gtk application to use themonospot (multimedia files parser/editor) | |
Name: themonospot-gui-gtk | |
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-gtk | |
URL: https://github.com/armando-basile/%archivename/ | |
BuildArch: noarch | |
BuildRequires: mono-devel | |
BuildRequires: log4net-devel | |
BuildRequires: %{themonospotbase} >= 0.9.0 | |
BuildRequires: gtk-sharp2-devel | |
BuildRequires: glade-sharp2 | |
BuildRequires: pkgconfig | |
Requires: mono | |
Requires: log4net | |
Requires: %{themonospotbase} >= 0.9.0 | |
%description | |
themonospot-gui-gtk 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-gtk.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}/src/resources/%{archivename}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png | |
cp -f %{_builddir}/%{name}-%{version}/%{name}/src/resources/%{archivename}-gtk.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