Index: work/OS/Mageia/pcb-rnd.spec =================================================================== --- work/OS/Mageia/pcb-rnd.spec (nonexistent) +++ work/OS/Mageia/pcb-rnd.spec (revision 15000) @@ -0,0 +1,272 @@ +# Build with --debug (1) or --symbols (0) +%define debug 0 +%define svn 14982 +Name: pcb-rnd +Version: 1.2.7 +Release: %mkrel -c %{svn} 1 +Summary: Standard installation of pcb-rnd +License: GPLv2 +Group: Sciences/Other +URL: http://repo.hu/projects/pcb-rnd/index.html +# http://repo.hu/projects/pcb-rnd/developer/packaging/packages.html +Source0: %{name}-%{svn}.tar.gz +Source1: mk-tar + +## TODO Missing some BRs (gpmi??) +BuildRequires: lesstif-devel +BuildRequires: pkgconfig(gdlib) +BuildRequires: pkgconfig(gl) +BuildRequires: pkgconfig(glu) +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(gtkglext-1.0) +BuildRequires: %{_lib}stroke-devel + +Requires: %{name}-core = %{version}-%{release} +Requires: %{name}-io-standard = %{version}-%{release} +Requires: %{name}-io-alien = %{version}-%{release} +Requires: %{name}-hid-gtk2-gl = %{version}-%{release} +Requires: %{name}-hid-gtk2-gdk = %{version}-%{release} +Requires: %{name}-export = %{version}-%{release} +Requires: %{name}-export-sim = %{version}-%{release} +Requires: %{name}-export-extra = %{version}-%{release} +Requires: %{name}-auto = %{version}-%{release} +Requires: %{name}-extra = %{version}-%{release} +Requires: %{name}-cloud = %{version}-%{release} +Suggests: %{name}-doc = %{version}-%{release} + +%description +A flexible, modular Printed Circuit Board editor that is feature-rich +and compatible, and historically is a fork of PCB. +It is an informal part of the geda project. +This package installs pcb-rnd core and the most commonly used plugins. + +%package core +Summary: Executable with the core functionality + +%description core +Includes the data model, the most common action commands, the native file +format and the CLI (batch HID). Does not contain GUI. +Can be used in headless mode or batch/scripted mode for automated processing. + +%package doc +Summary: Documentation for %{name} +BuildArch: noarch + +%description doc +Documentation for %{name}. + +%package auto +Summary: Autoroute and autoplace +Requires: %{name}-core = %{version}-%{release} + +%description auto +Feature plugins for automated component placing and track routing. + +%package cloud +Summary: Networking plugins +Requires: %{name}-core = %{version}-%{release} + +%description cloud +'Cloud' footprint access plugin that integrates edakrill and gedasymbols.org. + +%package debug +Summary: Debug and diagnostics +Requires: %{name}-core = %{version}-%{release} + +%description debug +Extra action commands to help debugging and diagnostize problems and bugs. + +%package export-extra +Summary: Export formats: special/extra +Requires: %{name}-core = %{version}-%{release} +Requires: %{name}-export = %{version}-%{release} + +%description export-extra +Less commonly used export formats: +fidocadj, ipc-356-d, direct printing with lpr. + +%package export-sim +Summary: Export plugins to simulators +Requires: %{name}-core = %{version}-%{release} + +%description export-sim +Export the board in formats that can be used for simulation: openems and nelma. + +%package export +Summary: Common export plugins +Requires: %{name}-core = %{version}-%{release} + +%description export +Export the board in vector graphics (svg, ps, eps), raster graphics (png, jpeg, +etc.), gerber, 3d model in openscad, xy for pick and place, BoM, etc. + +%package hid-gtk2-gdk +Summary: GUI: gtk2, software render +Requires: %{name}-core = %{version}-%{release} + +%description hid-gtk2-gdk +Software rendering on gtk2, using the gdk API. + +%package hid-gtk2-gl +Summary: GUI: gtk2, opengl +Requires: %{name}-core = %{version}-%{release} +Requires: %{name}-lib-gtk = %{version}-%{release} +Requires: %{name}-lib-gl = %{version}-%{release} +Requires: %{name}-lib-gui = %{version}-%{release} + +%description hid-gtk2-gl +Hardware accelerated (opengl) rendering on gtk2. + +%package hid-lesstif +Summary: GUI: motif/lesstif, software render +Requires: %{name}-core = %{version}-%{release} + +%description hid-lesstif +Lightweight GUI and software rendering using the motif (lesstif) toolkit. + +%package import-geo +Summary: Geometry import plugins +Requires: %{name}-core = %{version}-%{release} + +%description import-geo +Import geometry from HPGL plots. HPGL can be produced (plotted) +with most mechanical cads. + +%package import-net +Summary: Netlist/schematics import plugins +Requires: %{name}-core = %{version}-%{release} +Requires: %{name}-lib-io = %{version}-%{release} + +%description import-net +Import netlist and footprint information from edif, ltspice, mentor graphics, +gschem and tinycad. + +%package io-alien +Summary: File format compatibility with other PCB board designers +Requires: %{name}-core = %{version}-%{release} + +%description io-alien +Load and/or save boards in file formats supported by other EDA tools, such as +KiCAD, Eagle, protel/autotrax, etc. + +%package io-standard +Summary: Commonly used non-native board and footprint file formats +Requires: %{name}-core = %{version}-%{release} + +%description io-standard +Plugins for tEDAx footprint format and the gEDA/PCB file formats +(footprint and board). + +%package lib-gl +Summary: Support library for rendering with opengl +Requires: %{name}-core = %{version}-%{release} + +%description lib-gl +Support library for rendering with opengl. + +%package lib-gtk +Summary: Support library for building the GUI with gtk +Requires: %{name}-core = %{version}-%{release} +Requires: %{name}-lib-gui = %{version}-%{release} + +%description lib-gtk +Support library for building the GUI with gtk. + +%package lib-gui +Summary: Support library for building the GUI +Requires: %{name}-core = %{version}-%{release} + +%description lib-gui +Support library for building the GUI. + +%package lib-io +Summary: Support library for alien file formats +Requires: %{name}-core = %{version}-%{release} + +%description lib-io +Support library for alien file formats. + +%prep +%autosetup -n %{name}-%{svn} -p1 + +%build +## TODO Work in progress awaiting info on all required plugin options +./configure \ +%if %{debug} == 1 + prefix=/usr --debug \ +%else + prefix=/usr --symbols \ +%endif + --plugin-autocrop \ + --plugin-hid_lesstif \ + --plugin-diag \ + --plugin-draw_csect \ + --plugin-fp_wget \ + --plugin-lib_gtk_common \ + --plugin-hid_gtk2_gl \ + --plugin-hid_gtk2_gdk + +# --plugin-boardflip \ + +%make_build + +%install +%make_install + +%files +# Empty (Meta-Package) + +%files doc +%doc %{_docdir}/%{name}/* + +%files core +%{_bindir}/fp2anim +%{_bindir}/fp2subc +%{_bindir}/gsch2%{name} +%{_bindir}/pcb-prj2lht +%{_bindir}/%{name} +%{_bindir}/pcb-strip +%{_datadir}/%{name}/* +%{_mandir}/man1/* +%exclude %{_usr}/lib/debug/* +%{_usr}/lib/%{name}/*.scm +%{_usr}/lib/%{name}/plugins/autocrop.pup +%{_usr}/lib/%{name}/plugins/autocrop.so + +%files auto + +%files cloud + +%files debug + /usr/lib/pcb-rnd/plugins/diag.pup + /usr/lib/pcb-rnd/plugins/diag.so + +%files export-extra + +%files export-sim + +%files export + +%files hid-gtk2-gdk + +%files hid-gtk2-gl + +%files hid-lesstif +%{_usr}/lib/%{name}/plugins/hid_lesstif.pup +%{_usr}/lib/%{name}/plugins/hid_lesstif.so + +%files import-geo + +%files import-net + +%files io-alien + +%files io-standard + +%files lib-gl + +%files lib-gtk + +%files lib-gui + +%files lib-io