Accepting request 125898 from KDE:Distro:Factory
Install hi-res icons in the hicolor-icon directory for better appearance in desktop menus (forwarded request 125896 from mrdocs) OBS-URL: https://build.opensuse.org/request/show/125898 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/scribus?expand=0&rev=44
This commit is contained in:
parent
045e7da81d
commit
0956a7e19e
3
scribus-icon128.png
Normal file
3
scribus-icon128.png
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b2dd2ae425f33a6b5d5e50452b7167764f324e5b2bc84133de81a7985b20d936
|
||||
size 14880
|
3
scribus-icon24.png
Normal file
3
scribus-icon24.png
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1e39960309f4d5c8d98b82a4fb9ce9e610967e3f489a8ab983bdfcdc437326a4
|
||||
size 1573
|
3
scribus-icon256.png
Normal file
3
scribus-icon256.png
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9ee630588a22f26e5653e96eddde1916842ba7df324423b849ab0a0ca23f6068
|
||||
size 42627
|
3
scribus-icon32.png
Normal file
3
scribus-icon32.png
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f14d678e29ab2ccc143adb09a4ae7de30d72f23ce046231614a2945454746068
|
||||
size 2268
|
3
scribus-icon64.png
Normal file
3
scribus-icon64.png
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:adb445babf7b4c42be3142c0bbfadcb6febbded47f9b789bbcb33986fc9240d5
|
||||
size 5776
|
@ -1,5 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 23 08:42:03 UTC 2012 - badshah@localhost
|
||||
Mon Jun 25 00:03:47 UTC 2012 - badshah400@gmail.com
|
||||
|
||||
- Install hi-res icons in the hicolor icon directory for better
|
||||
appearance on desktop menu, specifically on the gnome-shell; add
|
||||
BuildRequires: hicolor-icon-theme for this purpose.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 23 08:42:03 UTC 2012 - badshah400@gmail.com
|
||||
|
||||
- Delete non-free colour swatches (givelife and dtp-studio) from
|
||||
the package (bnc#763586)
|
||||
|
27
scribus.spec
27
scribus.spec
@ -24,7 +24,12 @@ Summary: Open Source Page Layout and Desktop Publishing (DTP)
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Publishing/Other
|
||||
Url: http://www.scribus.net/
|
||||
Source: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
||||
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
||||
Source1: %{name}-icon24.png
|
||||
Source2: %{name}-icon32.png
|
||||
Source3: %{name}-icon64.png
|
||||
Source4: %{name}-icon128.png
|
||||
Source5: %{name}-icon256.png
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: aspell
|
||||
BuildRequires: aspell-devel
|
||||
@ -34,6 +39,7 @@ BuildRequires: cmake >= 2.6.0
|
||||
BuildRequires: cups-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: fontconfig-devel
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: libQtWebKit-devel
|
||||
BuildRequires: liblcms2-devel
|
||||
BuildRequires: libpodofo-devel
|
||||
@ -118,10 +124,18 @@ make install DESTDIR=%{buildroot}
|
||||
|
||||
popd
|
||||
|
||||
# install hi-res icons for better appearance on gnome-shell
|
||||
install -D -m 0644 %{S:1} %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
|
||||
install -D -m 0644 %{S:2} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
||||
install -D -m 0644 %{S:3} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
|
||||
install -D -m 0644 %{S:4} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
||||
install -D -m 0644 %{S:5} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%suse_update_desktop_file -r -i %{name} Qt Office Publishing WordProcessor
|
||||
mkdir %{buildroot}%{_datadir}/pixmaps
|
||||
install -m 644 %{buildroot}%{_datadir}/%{name}/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/
|
||||
%suse_update_desktop_file -r -i %{name} Qt Office Publishing WordProcessor
|
||||
# hi-res icons are already installed in hicolor-icon-theme directory
|
||||
# mkdir %{buildroot}%{_datadir}/pixmaps
|
||||
# install -m 644 %{buildroot}%{_datadir}/%{name}/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/
|
||||
%endif
|
||||
|
||||
%fdupes %{buildroot}%{_includedir}/%{name}/
|
||||
@ -137,12 +151,14 @@ if [ -f /usr/bin/update-mime-database ]; then
|
||||
/usr/bin/update-mime-database /usr/share/mime > /dev/null
|
||||
fi
|
||||
%desktop_database_post
|
||||
%icon_theme_cache_post
|
||||
|
||||
%postun
|
||||
if [ -f /usr/bin/update-mime-database ]; then
|
||||
/usr/bin/update-mime-database /usr/share/mime > /dev/null
|
||||
fi
|
||||
%desktop_database_postun
|
||||
%icon_theme_cache_postun
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
@ -154,13 +170,14 @@ fi
|
||||
%{_datadir}/scribus
|
||||
%{_datadir}/doc/scribus
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/pixmaps/%{name}.png
|
||||
#%%{_datadir}/pixmaps/%%{name}.png
|
||||
# This should be owned by filesystem or man, but there are only scribus files:
|
||||
%lang(pl) %dir %{_mandir}/pl
|
||||
%lang(pl) %{_mandir}/pl/man1
|
||||
%dir %{_datadir}/mimelnk
|
||||
%dir %{_datadir}/mimelnk/application
|
||||
%{_datadir}/mimelnk/application/vnd.scribus.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user