Группа :: Обучение
Пакет: qucs-s
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1
Name: qucs-s
Version: 2.0.0
Release: alt1
Summary: Circuit simulator
License: GPLv2+
Group: Education
Url: https://github.com/ra3xdh/qucs_s
Source: %name-%version.tar
Patch: fix_S4Q_workdir.patch
Buildrequires(pre): rpm-macros-cmake
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: flex
BuildRequires: qt5-base-devel
BuildRequires: qt5-tools-devel
BuildRequires: qt5-script-devel
BuildRequires: qt5-svg-devel
BuildRequires: rpm-build-python3
Requires: %name-data = %EVR
#Requires: qucs
Requires: ngspice
%add_python3_path %_datadir/%name/python
Obsoletes: qucs-s-data =< %EVR
Provides: qucs-s-data = %EVR
%description
Qucs-S is spin-off of Qucs.
Qucs is an integrated circuit simulator which means you are
able to setup a circuit with a graphical user interface (GUI)
and simulate the large-signal, small-signal and noise
behaviour of the circuit. After that simulation has finished
you can view the simulation results on a presentation page or
window.
%prep
%setup
%autopatch -p1
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake_build
%install
%cmakeinstall_std
for l in $(find %buildroot%_datadir/%name/lang -name \*.qm); do
echo -n $l | sed 's,.*_\(.*\)\.qm,%%lang\(\1\) ,'
echo $l | sed "s,%buildroot,,"
done > %name.lang
%files
%doc AUTHORS COPYING README.md README_qucs
%_bindir/*
%_desktopdir/*
%_datadir/%name
%_iconsdir/hicolor/*/apps/*
%_man1dir/*
%changelog
…
Полный changelog можно просмотреть здесь
%define _unpackaged_files_terminate_build 1
Name: qucs-s
Version: 2.0.0
Release: alt1
Summary: Circuit simulator
License: GPLv2+
Group: Education
Url: https://github.com/ra3xdh/qucs_s
Source: %name-%version.tar
Patch: fix_S4Q_workdir.patch
Buildrequires(pre): rpm-macros-cmake
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: flex
BuildRequires: qt5-base-devel
BuildRequires: qt5-tools-devel
BuildRequires: qt5-script-devel
BuildRequires: qt5-svg-devel
BuildRequires: rpm-build-python3
Requires: %name-data = %EVR
#Requires: qucs
Requires: ngspice
%add_python3_path %_datadir/%name/python
Obsoletes: qucs-s-data =< %EVR
Provides: qucs-s-data = %EVR
%description
Qucs-S is spin-off of Qucs.
Qucs is an integrated circuit simulator which means you are
able to setup a circuit with a graphical user interface (GUI)
and simulate the large-signal, small-signal and noise
behaviour of the circuit. After that simulation has finished
you can view the simulation results on a presentation page or
window.
%prep
%setup
%autopatch -p1
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake_build
%install
%cmakeinstall_std
for l in $(find %buildroot%_datadir/%name/lang -name \*.qm); do
echo -n $l | sed 's,.*_\(.*\)\.qm,%%lang\(\1\) ,'
echo $l | sed "s,%buildroot,,"
done > %name.lang
%files
%doc AUTHORS COPYING README.md README_qucs
%_bindir/*
%_desktopdir/*
%_datadir/%name
%_iconsdir/hicolor/*/apps/*
%_man1dir/*
%changelog
…
Полный changelog можно просмотреть здесь