Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37334188
en ru br
Репозитории ALT
S:7.0.7-alt1
5.1: 20080825-alt0.2
www.altlinux.org/Changes

Группа :: Engineering
Пакет: kicad

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

%define majver 7.0

Name: kicad
Version: 7.0.7
Release: alt1
Epoch: 1

Summary: An open source software for the creation of electronic schematic diagrams
Summary(ru_RU.UTF-8): п÷я─п╬пЁя─п╟п╪п╪п╟ я│ п╬я┌п╨я─я▀я┌я▀п╪ п╦я│я┘п╬п╢п╫я▀п╪ п╨п╬п╢п╬п╪ п╢п╩я▐ п©я─п╬п╣п╨я┌п╦я─п╬п╡п╟п╫п╦я▐ я█п╩п╣п╨я┌я─п╬п╫п╫я▀я┘ я│я┘п╣п╪
License: AGPL-3-or-later
Group: Engineering

Url: https://gitlab.com/kicad/code/kicad.git
Source: %name-%version.tar
Patch: require-libngspice.so.0.patch
Patch2000: kicad-e2k.patch
Packager: Anton Midyukov <antohami at altlinux.org>

ExcludeArch: %arm

BuildRequires(pre): cmake rpm-macros-cmake
BuildRequires(pre): rpm-build-python3

BuildRequires: python3-dev
BuildRequires: python3-module-wx
BuildRequires: boost-devel boost-asio-devel boost-asio-devel boost-context-devel boost-filesystem-devel boost-geometry-devel boost-interprocess-devel boost-locale-devel boost-program_options-devel
BuildRequires: ccmake gcc-c++
BuildRequires: libwxGTK3.2-devel
BuildRequires: libgtk+3-devel
BuildRequires: libGLEW-devel libcairo-devel libssl-devel swig pkgconfig(gobject-2.0) libpcre-devel libpixman-devel pkgconfig(harfbuzz) pkgconfig(expat) pkgconfig(libdrm) pkgconfig(xdmcp) pkgconfig(xdamage) pkgconfig(xxf86vm) libcurl-devel
BuildRequires: libunixODBC-devel
BuildRequires: doxygen graphviz
BuildRequires: dos2unix
BuildRequires: python-devel
BuildRequires: libglm-devel
BuildRequires: libuuid-devel
BuildRequires: ngspice-devel
BuildRequires: opencascade-devel
BuildRequires: openmpi-devel
BuildRequires: ImageMagick-tools
BuildRequires: desktop-file-utils

#Requires: kicad-packages3D >= %majver

Requires: kicad-symbols >= %majver
Requires: kicad-footprints >= %majver
Requires: kicad-templates >= %majver
Requires: %name-doc >= %epoch:%majver
Requires: %name-common >= %EVR
Requires: libngspice

%add_python3_path %_datadir/%name

%description
Kicad is an open source (GPL) software for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad is a set of four softwares and a project manager:

Kicad: Project manager.
Eeschema: Schematic entry.
Pcbnew: Board editor.
Cvpcb: Footprint selector for components used in the circuit design.
Gerbview: GERBER viewer (photoplotter documents).

%description -l ru_RU.UTF-8
Kicad - я█я┌п╬ п©я─п╬пЁя─п╟п╪п╪п╫п╬п╣ п╬п╠п╣я│п©п╣я┤п╣п╫п╦п╣ я│ п╬я┌п╨я─я▀я┌я▀п╪ п╦я│я┘п╬п╢п╫я▀п╪ п╨п╬п╢п╬п╪ п╢п╩я▐
п©я─п╬п╣п╨я┌п╦я─п╬п╡п╟п╫п╦я▐ я█п╩п╣п╨я┌я─п╬п╫п╫я▀я┘ я│я┘п╣п╪ п╦ п©п╬п╩я┐я┤п╣п╫п╦я▐ п╫п╟ п╦я┘ п╬я│п╫п╬п╡п╣ п©п╣я┤п╟я┌п╫я▀я┘ п©п╩п╟я┌.

п▓п╨п╩я▌я┤п╟п╣я┌ п╡ я│п╣п╠я▐ я─п╣п╢п╟п╨я┌п╬я─ я│я┘п╣п╪, я│я─п╣п╢я│я┌п╡п╬ я┌я─п╟я│я│п╦я─п╬п╡п╨п╦ п©п╣я┤п╟я┌п╫я▀я┘ п©п╩п╟я┌,
я│я─п╣п╢я│я┌п╡п╟ я┌я─я▒я┘п╪п╣я─п╫п╬пЁп╬ п©я─п╬я│п╪п╬я┌я─п╟ п©п╣я┤п╟я┌п╫я▀я┘ п©п╩п╟я┌ п╡ п╨п╬п╫п╣я┤п╫п╬п╪ п╡п╦п╢п╣.

Kicad я│п╬я│я┌п╬п╦я┌ п╦п╥ 5 п╬я│п╫п╬п╡п╫я▀я┘ п╨п╬п╪п©п╬п╫п╣п╫я┌п╬п╡:

* kicad Б─■ п╪п╣п╫п╣п╢п╤п╣я─ п©я─п╬п╣п╨я┌п╬п╡
* eeschema Б─■ я─п╣п╢п╟п╨я┌п╬я─ я│я┘п╣п╪
* pcbnew Б─■ я─п╣п╢п╟п╨я┌п╬я─ п©п╣я┤п╟я┌п╫я▀я┘ п©п╩п╟я┌
* gerbview Б─■ п©я─п╬я│п╪п╬я┌я─ GERBER
* cvpcb Б─■ п╡я▀п╠п╬я─ п╪п╣я│я┌ п╢п╩я▐ п╨п╬п╪п©п╬п╫п╣п╫я┌п╬п╡

п²п╟ п╥п╟п╪п╣я┌п╨я┐:
п■п╩я▐ п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦я▐ я─п╟п╪п╨п╦ п⌠п·п║п╒ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬ п╡я▀п╠я─п╟я┌я▄ я┬п╟п╠п╩п╬п╫
gost_landscape.kicad_wks п╦п╩п╦ gost_portrait.kicad_wks п╡ п╢п╦п╟п╩п╬пЁп╬п╡п╬п╪ п╬п╨п╫п╣
"п²п╟я│я┌я─п╬п╧п╨п╦ я│я┌я─п╟п╫п╦я├я▀" п╡ п©п╬п╩п╣ "п╓п╟п╧п╩ п╬п©п╦я│п╟п╫п╦я▐ я─п╟п╥п╪п╣я┌п╨п╦ п╩п╦я│я┌п╟".
п║я┌п╟п╫п╢п╟я─я┌п╫я▀п╣ я└п╟п╧п╩я▀ я─п╟п╪п╨п╦ (*.kicad_wks) п╫п╟я┘п╬п╢я▐я┌я│я▐ п╡ %_datadir/kicad/template/.

%package common
Summary: Common package for kicad
Group: Engineering

BuildArch: noarch

Obsoletes: kicad-data <= %EVR
Obsoletes: kicad-i18n <= %EVR

%description common
Common package for kicad.

%prep
%setup
%ifarch %e2k
%patch2000 -p1
sed -i "s/-Wreturn-type/-Wbuggy-edg/" cmake/Warnings.cmake
sed -i "s/';'/']'/" thirdparty/pegtl/pegtl/demangle.hpp
sed -i "s/m_currentSymbol.GetSubLibraryName()/((wxString)&)/" eeschema/symbol_viewer_frame.cpp
%endif
%patch -p1

%build
%ifarch %e2k
# LCC produces an insane amount of debug info (14Gb)
# -g1 is the same as default
%define optflags_debug -g0
%endif
%cmake \
   %_cmake_skip_rpath \
   -DKICAD_USE_OCC:=ON \
   -DKICAD_SCRIPTING=ON \
   -DKICAD_SCRIPTING_MODULES=ON \
   -DKICAD_SCRIPTING_PYTHON3=ON \
   -DPYTHON_SITE_PACKAGE_PATH=%python3_sitelibdir \
   -DKICAD_SCRIPTING_WXPYTHON=ON \
   -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON \
   -DKICAD_SCRIPTING_ACTION_MENU=ON \
   -DKICAD_SPICE=ON \
   -DKICAD_USE_EGL=ON \
   -DKICAD_BUILD_I18N=ON \
   -DKICAD_I18N_UNIX_STRICT_PATH=ON \
   -DKICAD_VERSION_EXTRA=%release \
   -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-DNDEBUG" \
   -DCMAKE_BUILD_TYPE=RelWithDebInfo

%cmake_build

%install
%cmake_install

#fix line ending

dos2unix %buildroot%_desktopdir/*.desktop

#validate desktop files

desktop-file-validate %buildroot%_desktopdir/*.desktop
for i in %buildroot%_desktopdir/*.desktop; do
desktop-file-install --dir %buildroot%_desktopdir \
--add-category=Engineering \
"$i"
done

# remove not supported locale

rm -r %buildroot/%_datadir/locale/pt_br

%find_lang %name

%files -f %name.lang
%_bindir/*
%_desktopdir/*.desktop
%_libdir/*.so*
%_libdir/%name/
%python3_sitelibdir/_pcbnew.so
%python3_sitelibdir/pcbnew.py
%python3_sitelibdir/__pycache__/pcbnew*
#doc %_docdir/%name
%_datadir/metainfo/*.metainfo.xml
%_iconsdir/hicolor/*/mimetypes/application-x-*.*
%_iconsdir/hicolor/*/apps/*.*
%_datadir/%name/
%_datadir/mime/packages/*

%files common
%dir %_datadir/kicad
%dir %_datadir/kicad/template

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin