643b620
%global repo dde-dock
90f912b
%global start_logo start-here
7850776
%global __provides_exclude_from ^%{_libdir}/%{repo}/.*\\.so$
643b620
643b620
Name:           deepin-dock
68ed8ba
Version:        4.9.0
7850776
Release:        3%{?dist}
643b620
Summary:        Deepin desktop-environment - Dock module
643b620
License:        GPLv3
643b620
URL:            https://github.com/linuxdeepin/dde-dock
643b620
Source0:        %{url}/archive/%{version}/%{repo}-%{version}.tar.gz
643b620
70288ba
BuildRequires:  cmake
fe85c5d
BuildRequires:  gcc-c++
c9660d3
BuildRequires:  pkgconfig(dbusmenu-qt5)
70288ba
BuildRequires:  pkgconfig(dde-network-utils)
70288ba
BuildRequires:  pkgconfig(dtkwidget) >= 2.0.6
70288ba
BuildRequires:  pkgconfig(dframeworkdbus) >= 2.0
643b620
BuildRequires:  pkgconfig(gsettings-qt)
643b620
BuildRequires:  pkgconfig(gtk+-2.0)
aa43914
BuildRequires:  pkgconfig(Qt5Core)
643b620
BuildRequires:  pkgconfig(Qt5Gui)
643b620
BuildRequires:  pkgconfig(Qt5DBus)
643b620
BuildRequires:  pkgconfig(Qt5X11Extras)
643b620
BuildRequires:  pkgconfig(Qt5Svg)
aa43914
BuildRequires:  pkgconfig(x11)
643b620
BuildRequires:  pkgconfig(xtst)
aa43914
BuildRequires:  pkgconfig(xext)
643b620
BuildRequires:  pkgconfig(xcb-composite)
643b620
BuildRequires:  pkgconfig(xcb-ewmh)
643b620
BuildRequires:  pkgconfig(xcb-icccm)
643b620
BuildRequires:  pkgconfig(xcb-image)
643b620
BuildRequires:  qt5-linguist
90f912b
BuildRequires:  deepin-icon-theme
90f912b
BuildRequires:  fedora-logos
aa43914
Requires:       deepin-daemon
aa43914
Requires:       deepin-launcher
643b620
Requires:       deepin-menu
aa43914
Requires:       deepin-qt5integration
90f912b
Requires:       onboard
90f912b
Requires:       deepin-icon-theme
90f912b
Requires:       fedora-logos
643b620
643b620
%description
643b620
Deepin desktop-environment - Dock module.
643b620
643b620
%package devel
643b620
Summary:        Development package for %{name}
643b620
Requires:       %{name}%{?_isa} = %{version}-%{release}
643b620
643b620
%description devel
643b620
Header files and libraries for %{name}.
643b620
643b620
%prep
643b620
%setup -q -n %{repo}-%{version}
70288ba
sed -i '/TARGETS/s|lib|%{_lib}|' plugins/*/CMakeLists.txt
fe85c5d
sed -i 's|/lib|/%{_lib}|' frame/controller/dockpluginloader.cpp \
fe85c5d
    plugins/tray/system-trays/systemtrayloader.cpp
fe85c5d
sed -i 's|/lib|/libexec|' frame/item/showdesktopitem.cpp
fe85c5d
sed -i -E '35d;/dpkg-architecture|EXIT/d' CMakeLists.txt
90f912b
# set icon to Fedora logo
90f912b
sed -i 's|deepin-launcher|%{start_logo}|' frame/item/launcheritem.cpp
643b620
643b620
%build
68ed8ba
export PATH=%{_qt5_bindir}:$PATH
fe85c5d
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCHITECTURE=%{_arch} .
643b620
%make_build
643b620
643b620
%install
643b620
%make_install INSTALL_ROOT=%{buildroot}
90f912b
for theme in deepin deepin-dark; do
90f912b
    for dir in %{_datadir}/icons/$theme/places/*; do
90f912b
        size=$(basename $dir)
90f912b
        if [ -f %{_datadir}/icons/hicolor/${size}x${size}/places/%{start_logo}.png ]; then
90f912b
            mkdir -p %{buildroot}$dir
90f912b
            ln -sf ../../../hicolor/256x256/places/%{start_logo}.png %{buildroot}$dir
90f912b
        fi
90f912b
    done
90f912b
done
643b620
202e42c
%ldconfig_scriptlets
643b620
643b620
%files
643b620
%license LICENSE
90f912b
%{_sysconfdir}/%{repo}/
643b620
%{_bindir}/%{repo}
643b620
%{_libdir}/%{repo}/
643b620
%{_datadir}/%{repo}/
643b620
%{_datadir}/dbus-1/services/*.service
90f912b
%{_datadir}/icons/*/places/*/*.png
643b620
643b620
%files devel
643b620
%{_includedir}/%{repo}/
c9660d3
%{_libdir}/pkgconfig/%{repo}.pc
c9660d3
%{_libdir}/cmake/DdeDock/DdeDockConfig.cmake
643b620
643b620
%changelog
7850776
* Thu Mar  7 2019 Robin Lee <cheeselee@fedoraproject.org> - 4.9.0-3
7850776
- Filter private library provides
7850776
90f912b
* Thu Mar  7 2019 Robin Lee <cheeselee@fedoraproject.org> - 4.9.0-2
90f912b
- Change launcher icon to Fedora logo, Requires deepin-icon-theme and fedora-logos
90f912b
- Requires onboard, required by a plugin
90f912b
- Own %%{_sysconfdir}/%%{repo}/
90f912b
68ed8ba
* Tue Feb 26 2019 mosquito <sensor.wen@gmail.com> - 4.9.0-1
68ed8ba
- Update to 4.9.0
68ed8ba
fe85c5d
* Thu Jan 31 2019 mosquito <sensor.wen@gmail.com> - 4.8.9-1
fe85c5d
- Update to 4.8.9
fe85c5d
1471541
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.4.1-2
1471541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1471541
5d17ad4
* Sun Dec 23 2018 mosquito <sensor.wen@gmail.com> - 4.8.4.1-1
5d17ad4
- Update to 4.8.4.1
5d17ad4
75a3c00
* Wed Dec 12 2018 mosquito <sensor.wen@gmail.com> - 4.8.4-1
75a3c00
- Update to 4.8.4
75a3c00
6d45dac
* Thu Nov 29 2018 mosquito <sensor.wen@gmail.com> - 4.8.1-1
6d45dac
- Update to 4.8.1
6d45dac
c9660d3
* Mon Nov 12 2018 mosquito <sensor.wen@gmail.com> - 4.8.0-1
c9660d3
- Update to 4.8.0
c9660d3
62e981b
* Sat Aug 25 2018 mosquito <sensor.wen@gmail.com> - 4.7.2-1
62e981b
- Update to 4.7.2
62e981b
62e981b
* Fri Aug 10 2018 mosquito <sensor.wen@gmail.com> - 4.7.1.1-1
62e981b
- Update to 4.7.1.1
62e981b
4d78b3c
* Thu Aug  2 2018 mosquito <sensor.wen@gmail.com> - 4.6.9-1
4d78b3c
- Update to 4.6.9
4d78b3c
70288ba
* Fri Jul 27 2018 mosquito <sensor.wen@gmail.com> - 4.6.7-1
70288ba
- Update to 4.6.7
70288ba
6476440
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.12-2
6476440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6476440
5f4ebeb
* Fri Feb 16 2018 mosquito <sensor.wen@gmail.com> - 4.5.12-1
5f4ebeb
- Update to 4.5.12
5f4ebeb
5f4ebeb
* Sat Feb 10 2018 mosquito <sensor.wen@gmail.com> - 4.5.9.1-1
5f4ebeb
- Update to 4.5.9.1
5f4ebeb
54c66a4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.9-2
54c66a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
54c66a4
ac4f0ec
* Wed Dec 20 2017 mosquito <sensor.wen@gmail.com> - 4.5.9-1
ac4f0ec
- Update to 4.5.9
ac4f0ec
aa43914
* Sat Dec  9 2017 mosquito <sensor.wen@gmail.com> - 4.5.7.1-1
aa43914
- Update to 4.5.7.1
aa43914
aa43914
* Sat Dec  2 2017 mosquito <sensor.wen@gmail.com> - 4.5.7-1
aa43914
- Update to 4.5.7
aa43914
aa43914
* Wed Nov 15 2017 mosquito <sensor.wen@gmail.com> - 4.5.1-1
aa43914
- Update to 4.5.1
aa43914
aa43914
* Fri Oct 27 2017 mosquito <sensor.wen@gmail.com> - 4.4.1-1
aa43914
- Update to 4.4.1
aa43914
643b620
* Sun Aug 20 2017 mosquito <sensor.wen@gmail.com> - 4.3.4-1
643b620
- Update to 4.3.4
643b620
643b620
* Fri Jul 14 2017 mosquito <sensor.wen@gmail.com> - 4.3.3-1.gitbf79f1c
643b620
- Update to 4.3.3
643b620
643b620
* Fri May 19 2017 mosquito <sensor.wen@gmail.com> - 4.2.1-1.git42610ae
643b620
- Update to 4.2.1
643b620
643b620
* Tue Mar  7 2017 mosquito <sensor.wen@gmail.com> - 4.1.4-1.gitd772fe2
643b620
- Update to 4.1.4
643b620
643b620
* Sun Feb 26 2017 mosquito <sensor.wen@gmail.com> - 4.1.3-1.git26f189d
643b620
- Update to 4.1.3
643b620
643b620
* Tue Jan 17 2017 mosquito <sensor.wen@gmail.com> - 4.0.8-1.gita882590
643b620
- Update to 4.0.8
643b620
643b620
* Mon Jan 16 2017 Jaroslav <cz.guardian@gmail.com> Stepanek 4.0.7-1
643b620
- Update to version 4.0.7 and renamed to deepin-dock
643b620
643b620
* Mon Dec 19 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 4.0.6-1
643b620
- Update to version 4.0.6
643b620
643b620
* Sun Dec 04 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 4.0.5-2
643b620
- Rebuild with newer deepin-tool-kit
643b620
643b620
* Sun Oct 02 2016 Jaroslav <cz.guardian@gmail.com> Stepanek 4.0.5-1
643b620
- Initial package build