Package openFPGALoader: 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 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 %def_with doc Name: openFPGALoader Version: 0.12.1 Release: alt0.p9 Summary: Universal utility for programming FPGA License: Apache-2.0 Group: Engineering Url: https://github.com/trabucayre/openFPGALoader Source: %name-%version.tar # ALT patches Patch: 0001-doc-Makefile-fix-build-with-python3-module-sphinx.patch ExcludeArch: %arm BuildRequires(pre): rpm-macros-cmake BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libftdi1-devel BuildRequires: libhidapi-devel BuildRequires: zlib-devel BuildRequires: libudev-devel BuildRequires: libgpiod-devel BuildRequires: libusb-devel %if_with doc BuildRequires: python3-module-sphinx BuildRequires: python3-module-yaml BuildRequires: python3-module-tabulate %endif %description %summary. %package doc Summary: Documentation for %name Group: Documentation %description doc %summary. %prep %setup %autopatch -p1 # fix unavailable GROUP "plugdev" sed -i 's/GROUP="plugdev"/GROUP="uucp"/g' 99-openfpgaloader.rules %build # fix build with gcc12 %add_optflags -Wno-narrowing %cmake %cmake_build %if_with doc %make_build -C doc/ man html %endif %install %cmake_install # install udev rules mkdir -p %buildroot/lib/udev/rules.d/ install -pm644 99-openfpgaloader.rules %buildroot/lib/udev/rules.d/ # install man mkdir -p %buildroot%_man1dir install -pm644 doc/_build/man/openFPGALoader.1 %buildroot%_man1dir %files %_bindir/%name /lib/udev/rules.d/99-openfpgaloader.rules %_datadir/%name/ %doc README.md %if_with doc %_man1dir/openFPGALoader.1* %endif %if_with doc %files doc %doc doc/_build/html/* %endif %changelog * Fri Apr 05 2024 Anton Midyukov <antohami@altlinux.org> 0.12.1-alt0.p9 - backport to p9 * Tue Mar 26 2024 Anton Midyukov <antohami@altlinux.org> 0.12.1-alt1 - New version 0.12.1. * Tue Mar 12 2024 Anton Midyukov <antohami@altlinux.org> 0.12.0-alt1 - new version 0.12.0 * Mon Aug 14 2023 Anton Midyukov <antohami@altlinux.org> 0.11.0-alt1 - new version 0.11.0 * Mon Jul 31 2023 Anton Midyukov <antohami@altlinux.org> 0.10.0-alt3.20230612 - replace unavailable GROUP "plugdev" with "uucp" in udev rule 99-openfpgaloader.rules * Thu Jun 22 2023 Anton Midyukov <antohami@altlinux.org> 0.10.0-alt2.20230612 - new snapshot - ExcludeArch: %%arm * Sat Jan 14 2023 Anton Midyukov <antohami@altlinux.org> 0.10.0-alt1 - new version 0.10.0 * Fri Oct 07 2022 Anton Midyukov <antohami@altlinux.org> 0.9.1-alt1 - new version 0.9.1 * Sun Aug 14 2022 Anton Midyukov <antohami@altlinux.org> 0.9.0-alt1 - new version 0.9.0 * Sun Jun 19 2022 Anton Midyukov <antohami@altlinux.org> 0.8.0-alt4 - add compiler flag -Wno-narrowing for fix build with gcc12 * Tue Apr 05 2022 Anton Midyukov <antohami@altlinux.org> 0.8.0-alt3 - add udev rules - build man * Tue Apr 05 2022 Anton Midyukov <antohami@altlinux.org> 0.8.0-alt2 - build documentation * Tue Apr 05 2022 Anton Midyukov <antohami@altlinux.org> 0.8.0-alt1 - Initial build for Sisyphus |