dtkcore/dtkcore.spec

98 lines
2.6 KiB
RPMSpec
Raw Normal View History

2020-07-14 11:01:32 +08:00
Name: dtkcore
2023-04-06 17:02:59 +08:00
Version: 5.5.19
Release: 1
2020-07-14 11:01:32 +08:00
Summary: Deepin tool kit core modules
2022-07-28 15:51:00 +08:00
License: LGPLv3+
2020-07-14 11:01:32 +08:00
URL: https://github.com/linuxdeepin/dtkcore
2022-07-28 15:51:00 +08:00
%if 0%{?fedora}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
%else
2023-04-06 17:02:59 +08:00
Source0: %{name}-%{version}.tar.gz
2022-07-28 15:51:00 +08:00
%endif
2023-04-06 17:02:59 +08:00
patch0: 0001-fix-ut-link-error-in-dtk.patch
2020-07-14 11:01:32 +08:00
BuildRequires: gcc-c++
BuildRequires: annobin
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(gsettings-qt)
2022-07-28 15:51:00 +08:00
BuildRequires: gtest-devel
2023-04-06 17:02:59 +08:00
BuildRequires: qt5-qttools-devel
BuildRequires: dtkcommon-devel
BuildRequires: qt5-qtbase-private-devel
2022-07-28 15:51:00 +08:00
# since f30
2020-07-14 11:01:32 +08:00
Obsoletes: deepin-tool-kit <= 0.3.3
Obsoletes: deepin-tool-kit-devel <= 0.3.3
Obsoletes: dtksettings <= 0.1.7
Obsoletes: dtksettings-devel <= 0.1.7
2022-07-28 15:51:00 +08:00
Obsoletes: dtkcore2
2020-07-14 11:01:32 +08:00
%description
Deepin tool kit core modules.
%package devel
Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2023-04-06 17:02:59 +08:00
Requires: dtkcommon-devel
2022-07-28 15:51:00 +08:00
Requires: qt5-qtbase-devel%{?_isa}
2020-07-14 11:01:32 +08:00
%description devel
Header files and libraries for %{name}.
%prep
2022-07-28 15:51:00 +08:00
%autosetup -p1
2020-07-14 11:01:32 +08:00
%build
2022-07-28 15:51:00 +08:00
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
2020-07-14 11:01:32 +08:00
export PATH=%{_qt5_bindir}:$PATH
%qmake_qt5 PREFIX=%{_prefix} \
DTK_VERSION=%{version} \
LIB_INSTALL_DIR=%{_libdir} \
BIN_INSTALL_DIR=%{_libexecdir}/dtk5 \
TOOL_INSTALL_DIR=%{_libexecdir}/dtk5
%make_build
%install
%make_install INSTALL_ROOT=%{buildroot}
%files
%doc README.md
%license LICENSE
2023-04-06 17:02:59 +08:00
%{_libdir}/lib%{name}.so*
2022-07-28 15:51:00 +08:00
%dir %{_libexecdir}/dtk5/
2020-07-14 11:01:32 +08:00
%{_libexecdir}/dtk5/dtk-settings
2022-07-28 15:51:00 +08:00
%{_libexecdir}/dtk5/dtk-license.py
%{_libexecdir}/dtk5/dtk-translate.py
2020-07-14 11:01:32 +08:00
%{_libexecdir}/dtk5/deepin-os-release
2023-04-06 17:02:59 +08:00
%{_bindir}/qdbusxml2cpp-fix
%exclude %{_libexecdir}/dtk5/__pycache__
2020-07-14 11:01:32 +08:00
%files devel
%doc doc/Specification.md
%{_includedir}/libdtk-*/
%{_qt5_archdatadir}/mkspecs/modules/*.pri
%{_libdir}/cmake/DtkCore/
%{_libdir}/cmake/DtkCMake/
%{_libdir}/cmake/DtkTools/
%{_libdir}/pkgconfig/dtkcore.pc
2022-07-28 15:51:00 +08:00
%{_libdir}/lib%{name}.so
2020-07-14 11:01:32 +08:00
%changelog
2023-04-06 17:02:59 +08:00
* Wed Mar 22 2023 liweiganga <liweiganga@uniontech.com> - 5.5.19-1
- update: update to 5.5.19
2022-07-28 15:51:00 +08:00
* Thu Jul 28 2022 liweiganga <liweiganga@uniontech.com> - 5.4.11.2-2
- fix install conflict
* Tue Jul 19 2022 konglidong <konglidong@uniontech.com> - 5.4.11.2-1
- Update to 5.4.11.2
2021-07-15 15:51:22 +08:00
* Thu Jul 15 2021 weidong <weidong@uniontech.com> - 5.2.2.3-2
- Format specfile.
2021-07-12 16:00:20 +08:00
* Mon Jul 12 2021 weidong <weidong@uniontech.com> - 5.2.2.3-1
- Update 5.2.2.3
2020-07-30 16:46:27 +08:00
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.2.1-1
- Package init