Package gspiceui: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 %define _pkgdocdir %_docdir/%name-%version Name: gspiceui Version: 1.1.00 Release: alt1 Summary: A frontend to Spice circuit similators Group: Engineering License: GPLv2+ Url: http://sourceforge.net/projects/gspiceui Packager: Anton Midyukov <antohami@altlinux.org> Source: %name-%version.tar #Source-url: http://downloads.sourceforge.net/%name/%name-v%version.tar.gz Source1: %name.desktop Source2: %name-32x32.xpm BuildRequires: gcc-c++ BuildRequires: compat-libwxGTK3.0-gtk2-devel desktop-file-utils Requires: ngspice geda-gnetlist geda-gschem geda-gattrib gnucap #Requires: gwave %description GspiceUI is listed among the Fedora Electronic Lab (FEL) packages. GNU Spice GUI is intended to provide a GUI to freely available Spice electronic cicuit simulators eg.GnuCAP, Ng-Spice. It uses gNetList to convert schematic files to net list files and gWave to display simulation results. gSchem is used as the schematic generation/viewing tool. %prep %setup # fix PATH to doc %__subst "s|/gspiceui/html|/doc/gspiceui-%version|" src/main/HelpTasks.cpp #wrong-file-end-of-line-encoding %__subst 's/\r//' lib/*/*.mod #spurious-executable-perm chmod 0644 lib/*/*.mod chmod 0644 sch/*/*.sch reldocdir=$(echo %_pkgdocdir | sed -e 's|^%prefix||') %__subst "s|/share/gspiceui/html/gSpiceUI\.html|$reldocdir/gSpiceUI.html|g" src/main/HelpTasks.cpp %__subst "s|/usr/X11R6/include|%_includedir/X11/|" src/Makefile %build %make_build CXXFLAGS="%optflags $(wx-config --cxxflags) -DNDEBUG" GSPICEUI_DBG=0 GSPICEUI_WXLIB=3.0 %install install -d %buildroot%_bindir install -pm 755 bin/%name %buildroot%_bindir/%name install -d %buildroot%_man1dir/ install -pm 644 %name.1 %buildroot%_man1dir/%name.1 # Add/Manage desktop file install -d %buildroot%_iconsdir/hicolor/32x32/apps install -d %buildroot%_iconsdir/hicolor/48x48/apps install -pm 0644 %SOURCE2 \ %buildroot%_iconsdir/hicolor/32x32/apps/%name.xpm install -pm 0644 src/icons/%name-48x48.xpm \ %buildroot%_iconsdir/hicolor/48x48/apps/%name.xpm desktop-file-install --vendor "" \ --dir %buildroot%_desktopdir \ %SOURCE1 # Adding gspiceui in the geda symbols directory structure install -d %buildroot%_datadir/gEDA/sym/%name cp -p lib/symbols/* %buildroot%_datadir/gEDA/sym/%name # Creating a gafrc file which can automatically load those sym from the # above directory structure mkdir -p examples cat > examples/gafrc << EOF ; gspiceui documentation symbols (component-library "%_datadir/gEDA/sym/%name") EOF # Preparing examples cp -pr lib/ examples cp -pr sch/ examples # Cleaning %%doc files rm -f examples/*/Makefile rm -rf examples/lib/sym %files %doc Authors License ReadMe ChangeLog ToDo %doc examples html/*.html %_bindir/%name %_iconsdir/hicolor/??x??/apps/*.xpm %_desktopdir/%name.desktop %_man1dir/%name.1.* %_datadir/gEDA/sym/%name %changelog * Sun Oct 28 2018 Anton Midyukov <antohami@altlinux.org> 1.1.00-alt1 - Initial build for ALT |