File minsky.spec of Package minsky-contrib-arch
#
# spec file for package minsky
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# See also http://en.opensuse.org/openSUSE:Shared_library_packaging_policy
Name: minsky
%define semver 3.10.0
Version: %{semver}
Source0: minskyjs-%{semver}.tar.gz
Release: 0
Summary: Economics dynamical systems simulator
License: GPL-3.0+
Group: Productivity/Scientific/Math
Url: http://minsky.sourceforge.net
Requires: minsky-restservice = %{semver}
%global debug_package %{nil}
%description
The %{name} package contains the Javascript frontend for Minsky
%prep
%setup -n minskyjs-%{semver}
%build
%install
mkdir -p %{buildroot}/usr/lib/minsky %{buildroot}/%{_bindir} %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps %{buildroot}/%{_datadir}/icons/hicolor/scalable/mimetypes %{buildroot}/%{_datadir}/applications %{buildroot}/%{_datadir}/mime/packages %{buildroot}/%{_datadir}/metainfo
cp -r app/* %{buildroot}/usr/lib/minsky
ln -sf /usr/lib/minsky/minsky %{buildroot}/%{_bindir}
cp *[Mm]insky.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps
cp *[Mm]insky.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/mimetypes
cp *.desktop %{buildroot}/%{_datadir}/applications
cp *-mime.xml %{buildroot}/%{_datadir}/mime/packages
cp *.appdata.xml %{buildroot}/%{_datadir}/metainfo
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-,root,root)
%{_bindir}/minsky
%dir /usr/lib/minsky
/usr/lib/minsky/*
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/*[Mm]insky.svg
%dir %{_datadir}/icons/hicolor/scalable/mimetypes
%{_datadir}/icons/hicolor/scalable/mimetypes/*[Mm]insky.svg
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/*.xml
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/*.appdata.xml
%changelog