Package deepin-network-core: 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 130 131 | %def_without clang %define repo dde-network-core %define sover 2 %define _cmake__builddir BUILD Name: deepin-network-core Version: 2.0.22 Release: alt1 Summary: Deepin desktop-environment - network core files License: LGPL-3.0-or-later Group: Graphical desktop/Other Url: https://github.com/linuxdeepin/dde-network-core Source: %url/archive/%version/%repo-%version.tar.gz Patch: %name-%version-%release.patch BuildPreReq: rpm-build-ninja rpm-build-kf5 %if_with clang BuildPreReq: clang-devel %else BuildPreReq: gcc-c++ %endif # Automatically added by buildreq on Wed Oct 25 2023 # optimized out: cmake-modules gcc-c++ glib2-devel glibc-kernheaders-generic glibc-kernheaders-x86 libdcc-interface6 libdcc-widgets6 libdouble-conversion3 libdtkcore-devel libdtkgui-devel libgio-devel libglvnd-devel libgpg-error libgsettings-qt libnm-devel libp11-kit libqt5-concurrent libqt5-core libqt5-dbus libqt5-gui libqt5-network libqt5-printsupport libqt5-svg libqt5-widgets libqt5-x11extras libqt5-xml libsasl2-3 libssl-devel libstartup-notification libstdc++-devel pkg-config python3 python3-base qt5-base-devel qt5-tools sh5 BuildRequires: cmake deepin-control-center-devel deepin-dock-devel deepin-session-shell-devel gsettings-qt-devel kf5-networkmanager-qt-devel libdtkwidget-devel libgtest-devel qt5-svg-devel qt5-tools-devel %description Deepin desktop-environment - network core files. %package -n lib%repo%sover Summary: Library for %name Group: System/Libraries %description -n lib%repo%sover This package provides library for %name. %package -n lib%repo-devel Summary: Development package for %name Group: Development/C++ Provides: %name-devel = %version-%release Obsoletes: %name-devel < %version-%release %description -n lib%repo-devel This package provides development files for %name. %prep %setup -n %repo-%version %patch -p1 %build %if_with clang export CC="clang" export CXX="clang++" export AR="llvm-ar" export NM="llvm-nm" export READELF="llvm-readelf" %endif export PATH=%_qt5_bindir:$PATH export CPLUS_INCLUDE_PATH=%_includedir/glib-2.0:%_libdir/glib-2.0/include:%_includedir/libnm:$CPLUS_INCLUDE_PATH # %%K5cmake fails build on ppc64le %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_EXE_LINKER_FLAGS:STRING='-L%_K5lib -L%_K5link' \ -DCMAKE_MODULE_LINKER_FLAGS:STRING='-L%_K5lib -L%_K5link' \ -DCMAKE_SHARED_LINKER_FLAGS:STRING='-L%_K5lib -L%_K5link' \ -DCMAKE_LIBRARY_PATH='%_K5link;%_K5lib;/%_lib' \ # cmake --build "%_cmake__builddir" -j%__nprocs %install %cmake_install %find_lang --with-qt --output=%name.lang dde-control-center dock-network-plugin dss-network-plugin %files -f %name.lang %dir %_libdir/dde-control-center/ %dir %_libdir/dde-control-center/modules/ %_libdir/dde-control-center/modules/libdcc-network-plugin.so %dir %_libdir/dde-dock/ %dir %_libdir/dde-dock/plugins/ %dir %_libdir/dde-dock/plugins/quick-trays/ %_libdir/dde-dock/plugins/quick-trays/libdock-network-plugin.so %dir %_libdir/dde-session-shell/ %dir %_libdir/dde-session-shell/modules/ %_libdir/dde-session-shell/modules/libdss-network-plugin.so %dir %_datadir/dsg/ %dir %_datadir/dsg/configs/ %dir %_datadir/dsg/configs/org.deepin.dde.network/ %_datadir/dsg/configs/org.deepin.dde.network/org.deepin.dde.network.json /var/lib/polkit-1/localauthority/10-vendor.d/10-network-manager.pkla # package translations outside %%find_lang %dir %_datadir/dde-control-center/ %dir %_datadir/dde-control-center/translations/ %_datadir/dde-control-center/translations/dcc-network-plugin.qm %dir %_datadir/dock-network-plugin/ %dir %_datadir/dock-network-plugin/translations/ %_datadir/dock-network-plugin/translations/dock-network-plugin.qm %dir %_datadir/dss-network-plugin/ %dir %_datadir/dss-network-plugin/translations/ %_datadir/dss-network-plugin/translations/dss-network-plugin.qm %files -n lib%repo%sover %_libdir/libdde-network-core.so.%{sover}* %files -n lib%repo-devel %dir %_includedir/libddenetworkcore/ %_includedir/libddenetworkcore/*.h %_pkgconfigdir/dde-network-core.pc %_libdir/libdde-network-core.so %changelog * Thu Mar 21 2024 Leontiy Volodin <lvol@altlinux.org> 2.0.22-alt1 - New version 2.0.22. * Thu Jan 25 2024 Leontiy Volodin <lvol@altlinux.org> 2.0.20-alt1 - New version 2.0.20. - Updated license tag. * Wed Oct 25 2023 Leontiy Volodin <lvol@altlinux.org> 2.0.16-alt1 - New version 2.0.16. * Thu Jan 19 2023 Leontiy Volodin <lvol@altlinux.org> 1.1.9-alt1 - New version. * Tue Nov 15 2022 Leontiy Volodin <lvol@altlinux.org> 1.0.71-alt1 - New version. - Fixed FTBFS. * Fri Aug 26 2022 Leontiy Volodin <lvol@altlinux.org> 1.0.61-alt1 - Initial build for ALT Sisyphus. |