Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory
deepin-network-utils
deepin-network-utils.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File deepin-network-utils.spec of Package deepin-network-utils
# # spec file for package deepin-network-utils # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2021 Hillwood Yang <hillwood@opensuse.org> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define _name dde-network-utils %define sover 1 %define gtest_version %(rpm -q --queryformat '%%{VERSION}' gtest) Name: deepin-network-utils Version: 5.4.13 Release: 0 License: GPL-3.0-or-later Summary: Deepin Network Utils Group: Productivity/Networking/System URL: https://github.com/linuxdeepin/dde-network-utils Source: https://github.com/linuxdeepin/dde-network-utils/archive/%{version}/%{_name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gtest BuildRequires: libqt5-linguist BuildRequires: libqt5-qtbase-devel BuildRequires: libqt5-qtbase-private-headers-devel BuildRequires: libqt5-qtdeclarative-devel BuildRequires: libqt5-qttools-devel BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(dframeworkdbus) BuildRequires: pkgconfig(gio-qt) BuildRequires: pkgconfig(gsettings-qt) %description Deepin Network Utils is an application repackage the DBus data which is provided by network module of dde-daemon %package -n lib%{_name}%{sover} Summary: Deepin Network Utils libraries Group: System/Libraries Recommends: %{name}-lang %description -n lib%{_name}%{sover} The package contains the Libraries for deepin-network-utils. %package devel Summary: Development tools for Deepin Network Utils Group: Development/Libraries/C and C++ Requires: lib%{_name}%{sover} = %{version}-%{release} %description devel The deepin-network-utils-devel package contains the header files for deepin-network-utils. %lang_package %prep %setup -q -n %{_name}-%{version} sed -i "s/lrelease/lrelease-qt5/g" translate_generation.sh sed -i 's|$$PREFIX/lib|$$LIBDIR|g' dde-network-utils/dde-network-utils.pro %if "%{gtest_version}" >= "1.14.0" sed -i "s/c++11/c++14/g" tests/dde-network-utils/tst_dde-network-utils.pro %endif %build %qmake5 PREFIX=%{_prefix} LIBDIR=%{_libdir} %make_build %install %qmake5_install %find_lang %{_name} --with-qt %post -n lib%{_name}%{sover} /sbin/ldconfig %postun -n lib%{_name}%{sover} /sbin/ldconfig # Please do not drop main package, the language package forcedly depends the main package %files %defattr(-,root,root) %doc README.md CHANGELOG.md %license LICENSE %files -n lib%{_name}%{sover} %{_libdir}/lib%{_name}.so.* %files lang -f %{_name}.lang %dir %{_datadir}/%{_name} %dir %{_datadir}/%{_name}/translations %{_datadir}/%{_name}/translations/dde-network-utils.qm # unusual languages, currently not correctly detected by find_lang %lang(ast) %{_datadir}/%{_name}/translations/dde-network-utils_ast.qm %lang(kab) %{_datadir}/%{_name}/translations/dde-network-utils_kab.qm %lang(pam) %{_datadir}/%{_name}/translations/dde-network-utils_pam.qm %files devel %license LICENSE %doc README.md CHANGELOG.md %{_includedir}/libddenetworkutils %{_libdir}/lib%{_name}.so %{_libdir}/pkgconfig/%{_name}.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor