File sch-rnd.spec of Package sch-rnd

#
# spec file for package sch-rnd
#
# Copyright (c) 2023-2025 SUSE LLC
# Copyright (c) 2015-2018 SUSE LINUX 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/
#

Name:           sch-rnd
Version:        1.0.10
Release:        0
Summary:        Simple, modular, scriptable schematics editor
License:        GPL-2.0
Group:          Productivity/Scientific/Electronics
Url:            http://repo.hu/projects/%{name}/
Source0:        http://repo.hu/projects/%{name}/releases/%{name}-%{version}.tar.bz2
BuildRequires:  automake
BuildRequires:  bison
BuildRequires:  gcc-c++
BuildRequires:  gd-devel
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtkglext-1.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  update-desktop-files
BuildRequires:  librnd-devel >= %{version}

%description
pcb-rnd is a simple, modular, scriptable schematics editor that can be used
as a stand-alone schematics capture tool, but also fits nicely in the
Ringdove EDA suite. It is workflow-agnostic and is set up in a similar manner
as pcb-rnd. It is easy and fast to compile, edit and contribute to.

%prep
%setup -q


%build
./configure \
%ifarch aarch64 ppc64le x86_64
    --libarchdir=lib64 \
%endif
    --prefix=/usr
%make_build


%install
%make_install DOCDIR=%{buildroot}%{_docdir}/%{name}

#suse_update_desktop_file -r sch-rnd Education Engineering


%check


%files
%{_bindir}/*
%{_datadir}/%{name}/
%{_mandir}/man1/*-rnd.1.gz
%{_mandir}/man5/*-rnd.5.gz
%{_docdir}/%{name}
/usr/lib/%{name}
%config(noreplace) /etc/%{name}

%changelog
openSUSE Build Service is sponsored by