Package deepin-network-utils: 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 | %def_disable clang %define repo dde-network-utils %define llvm_ver 15 Name: deepin-network-utils Version: 5.4.13 Release: alt2 Summary: Deepin desktop-environment - network utils License: GPL-3.0-or-later Group: Graphical desktop/Other Url: https://github.com/linuxdeepin/dde-network-utils Packager: Leontiy Volodin <lvol@altlinux.org> Source: %url/archive/%version/%repo-%version.tar.gz Patch: deepin-network-utils-5.4.13-alt-fix-gtest-1.13.patch %if_enabled clang #BuildRequires(pre): rpm-macros-llvm-common BuildRequires: clang%llvm_ver.0-devel BuildRequires: lld%llvm_ver.0-devel BuildRequires: llvm%llvm_ver.0-devel %else BuildRequires: gcc-c++ %endif BuildRequires: deepin-qt-dbus-factory-devel BuildRequires: qt5-base-devel BuildRequires: qt5-linguist BuildRequires: gsettings-qt-devel # BuildRequires: libgio-qt-devel BuildRequires: libgtest-devel %description Deepin desktop-environment - network utils. %package -n libddenetworkutils Summary: Library for %name Group: Graphical desktop/Other %description -n libddenetworkutils Deepin desktop-environment - network utils. Library for %name %package -n libddenetworkutils-devel Summary: Development package for %name Group: Development/C++ Provides: deepin-network-utils-devel = %version-%release Obsoletes: deepin-network-utils-devel < %version-%release %description -n libddenetworkutils-devel Header files and libraries for %name. %prep %setup -n %repo-%version %patch -p1 sed -i '/target.path/s|\$\$PREFIX/lib|%_libdir|' \ dde-network-utils/dde-network-utils.pro %build export PATH=%_qt5_bindir:$PATH %if_enabled clang export CC=clang-%llvm_ver export CXX=clang++-%llvm_ver export LDFLAGS="-fuse-ld=lld-%llvm_ver $LDFLAGS" %endif %qmake_qt5 \ %if_enabled clang QMAKE_STRIP= -spec linux-clang \ %endif CONFIG+=nostrip \ PREFIX=%prefix %make_build %install %makeinstall INSTALL_ROOT=%buildroot %files -n libddenetworkutils %doc README.md %_libdir/lib%{repo}.so.1* %_datadir/%repo/ %files -n libddenetworkutils-devel %_includedir/libddenetworkutils/ %_pkgconfigdir/%repo.pc %_libdir/lib%{repo}.so %changelog * Thu Jan 26 2023 Leontiy Volodin <lvol@altlinux.org> 5.4.13-alt2 - Fix build with googletest 1.13.0. - Renamed devel subpackage to libddenetworkutils-devel. * Fri Feb 04 2022 Leontiy Volodin <lvol@altlinux.org> 5.4.13-alt1 - New version (5.4.13). * Fri Aug 20 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.12-alt1 - New version (5.4.12). * Thu Jul 01 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.9-alt1 - New version (5.4.9). * Tue May 18 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.6-alt1 - New version (5.4.6) with rpmgs script. * Thu Apr 08 2021 Leontiy Volodin <lvol@altlinux.org> 5.4.5-alt1 - New version (5.4.5) with rpmgs script. * Mon Jan 25 2021 Leontiy Volodin <lvol@altlinux.org> 5.3.0.8-alt1 - New version (5.3.0.8) with rpmgs script. * Tue Oct 13 2020 Leontiy Volodin <lvol@altlinux.org> 5.3.0.5-alt1 - New version (5.3.0.5) with rpmgs script. * Mon Jul 27 2020 Leontiy Volodin <lvol@altlinux.org> 5.1.0.2-alt1 - Initial build for ALT Sisyphus (thanks fedora for this spec). |