Compare commits

..

No commits in common. "94f01cf222f0c65bb33a3c40a850d0bf2d031dc8" and "3d7c47463f092da95e9c083674659f8f5d8f5496" have entirely different histories.

4 changed files with 141 additions and 69 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,89 +1,165 @@
# %define libname libdeepin-font-manager
%define pkgrelease 1
%if 0%{?openeuler}
%define specrelease %{pkgrelease}
%else
## allow specrelease to have configurable %%{?dist} tag in other distribution
%define specrelease %{pkgrelease}%{?dist}
# Run tests in check section
# disable for bootstrapping
%bcond_with check
%global with_debug 1
%if 0%{?with_debug}
%global debug_package %{nil}
%endif
###deepin-font-manager-5.6.1.orig.tar.xz
Name: deepin-font-manager
Version: 5.8.7
Release: %{specrelease}
Summary: Deepin Font Manager is used to install and uninstall font file for users with bulk install function
Version: 5.6.1
Release: 1
Summary: Deepin Font Manager is used to install and uninstall font file for users with bulk install function.
License: GPLv3+
URL: https://github.com/linuxdeepin/%{name}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
URL: https://uos-packages.deepin.com/uos/pool/main/d/deepin-font-manager/
Source0: %{name}-%{version}.orig.tar.xz
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: qt5-devel
BuildRequires: dtkwidget-devel
Buildrequires: dtkcore-devel
BuildRequires: dtkgui-devel
BuildRequires: pkgconfig(dtkgui)
BuildRequires: pkgconfig(gsettings-qt)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(dde-file-manager)
BuildRequires: deepin-gettext-tools
BuildRequires: gtest-devel
BuildRequires: gmock-devel
BuildRequires: qt5-qtbase-private-devel
BuildRequires: qt5-qtbase-devel libqtxdg-devel libqtxdg
BuildRequires: dtkwidget-devel
BuildRequires: freetype-devel
BuildRequires: freetype
BuildRequires: fontconfig-devel
BuildRequires: fontconfig
BuildRequires: qt5-qtx11extras-devel
BuildRequires: qt5-qtmultimedia-devel
BuildRequires: qt5-linguist
BuildRequires: qt5-qtsvg-devel
BuildRequires: dde-file-manager-devel
BuildRequires: lightdm-gtk-greeter
%description
%{summary}.
# %package -n %{libname}
# Summary: %{summary}
# %description -n %{libname}
# %{summary}.
#
# %package -n %{libname}-devel
# Summary: %{summary}
# %description -n %{libname}-devel
# %{summary}.
Deepin Font Manager is used to install and uninstall font file for users with bulk install function.
%prep
%autosetup -p1
%autosetup
%build
export PATH=%{_qt5_bindir}:$PATH
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
sed -i "s|lib/${CMAKE_LIBRARY_ARCHITECTURE}|lib64|" ./deepin-font-preview-plugin/CMakeLists.txt
mkdir build && pushd build
%cmake -DCMAKE_BUILD_TYPE=Release ../ -DAPP_VERSION=%{version} -DVERSION=%{version}
%make_build
popd
export PATH=$PATH:/usr/lib64/qt5/bin
mkdir build && cd build
%{_libdir}/qt5/bin/qmake ..
%{__make}
%install
%make_install -C build INSTALL_ROOT="%buildroot"
pushd %{_builddir}/%{name}-%{version}/build
%make_install INSTALL_ROOT=%{buildroot}
popd
%files
%doc README.md
%{_bindir}/deepin-font-manager
%{_bindir}/dfont-install
%{_bindir}/dfont-uninstall
%{_libdir}/*
%{_includedir}/%{name}
%{_datadir}/*
%license LICENSE
%{_bindir}/%{name}
%{_libdir}/dde-file-manager/plugins/previews/libdeepin-font-preview-plugin.so
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/%{name}/translations/*.qm
%{_datadir}/applications/%{name}.desktop
%{_datadir}/deepin-manual/manual-assets/application/deepin-font-manager/font-manager/*
%{_datadir}/deepin-font-manager/contents.txt
%doc README.md
%changelog
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.8.7-1
- update to 5.8.7
* Tue May 28 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.17.0-2
- Fix a security issue
* Fri Feb 11 2022 liweigang <liweiganga@uniontech.com> - 5.6.23-2
- fix build error
* Tue Feb 26 2019 mosquito <sensor.wen@gmail.com> - 3.17.0-1
- Update to 3.17.0
* Mon Jul 12 2021 weidong <weidong@uniontech.com> - 5.6.23-1
- Update 5.6.23
* Tue Feb 19 2019 Kalev Lember <klember@redhat.com> - 3.16.0-2
- Rebuilt against fixed atk (#1626575)
* Wed Sep 9 2020 chenbo pan <panchenbo@uniontech.com> - 5.6.1-2
- fix compile error
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.6.1-1
- Package init
* Thu Jan 31 2019 mosquito <sensor.wen@gmail.com> - 3.16.0-1
- Update to 3.16.0
* Thu Jan 31 2019 Robin Lee <cheeselee@fedoraproject.org> - 3.12.0-3
- Create deepin-sound-player user
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Dec 12 2018 mosquito <sensor.wen@gmail.com> - 3.12.0-1
- Update to 3.12.0
* Thu Nov 29 2018 mosquito <sensor.wen@gmail.com> - 3.10.0-1
- Update to 3.10.0
* Wed Nov 21 2018 mosquito <sensor.wen@gmail.com> - 3.9.0-1
- Update to 3.9.0
* Fri Nov 9 2018 mosquito <sensor.wen@gmail.com> - 3.5.0-1
- Update to 3.5.0
* Sat Aug 25 2018 mosquito <sensor.wen@gmail.com> - 3.1.26-1
- Update to 3.1.26
- build error with gobject-introspection 1.58 by gir-generator
https://github.com/linuxdeepin/developer-center/issues/604
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 3.1.20-3
- Rebuild with fixed binutils
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 16 2018 mosquito <sensor.wen@gmail.com> - 3.1.20-1
- Update to 3.1.20
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.18.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.1.18.1-2
- Remove obsolete scriptlets
* Thu Dec 21 2017 mosquito <sensor.wen@gmail.com> - 3.1.18.1-1
- Update to 3.1.18.1
* Wed Nov 15 2017 mosquito <sensor.wen@gmail.com> - 3.1.17-1
- Update to 3.1.17
* Fri Oct 27 2017 mosquito <sensor.wen@gmail.com> - 3.1.15-1
- Update to 3.1.15
* Mon Oct 16 2017 mosquito <sensor.wen@gmail.com> - 3.1.14-2
- Fix out of memory on armv7hl
* Sat Oct 14 2017 mosquito <sensor.wen@gmail.com> - 3.1.14-1
- Update to 3.1.14
* Sat Aug 26 2017 mosquito <sensor.wen@gmail.com> - 3.1.13-1
- Update to 3.1.13
* Tue Aug 8 2017 mosquito <sensor.wen@gmail.com> - 3.1.11-2
- Rename deepin-api-devel to golang-deepin-api-devel
* Tue Aug 1 2017 mosquito <sensor.wen@gmail.com> - 3.1.11-1
- Update to 3.1.11
* Fri Jul 14 2017 mosquito <sensor.wen@gmail.com> - 3.1.10-1.git79125e7
- Update to 3.1.10
* Fri May 19 2017 mosquito <sensor.wen@gmail.com> - 3.1.7-1.git4c8e030
- Update to 3.1.7
* Sun Feb 26 2017 mosquito <sensor.wen@gmail.com> - 3.1.2-1.gitf93dbd7
- Update to 3.1.2
* Tue Jan 17 2017 mosquito <sensor.wen@gmail.com> - 3.0.16.1-1.gitcfdb295
- Update to 3.0.16.1
* Mon Jan 16 2017 Jaroslav <cz.guardian@gmail.com> Stepanek 3.0.16-1
- Update to version 3.0.16
* Sun Dec 18 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 3.0.15-1
- Update to version 3.0.15
* Wed Dec 07 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 3.0.14-2
- Changed compilation procedure
* Wed Sep 28 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 3.0.14-1
- Initial package build

View File

@ -1,4 +0,0 @@
version_control: github
src_repo: linuxdeepin/deepin-font-manager
tag_prefix: ^v
seperator: .