[monochrome-icon-theme/f16] First import
Mohamed ElMorabity
melmorabity at fedoraproject.org
Sat Nov 19 23:52:20 UTC 2011
commit 9e79dd3371875d448df67fa12ce83a79778c567d
Author: Mohamed El Morabity <melmorabity at fedoraproject.org>
Date: Sun Nov 20 00:52:15 2011 +0100
First import
.gitignore | 1 +
monochrome-icon-theme-generate-tarball.sh | 25 +++++++
monochrome-icon-theme.spec | 99 +++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 126 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..643f29b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/monochrome-icon-theme-0.0.38.tar.bz2
diff --git a/monochrome-icon-theme-generate-tarball.sh b/monochrome-icon-theme-generate-tarball.sh
new file mode 100644
index 0000000..5540e62
--- /dev/null
+++ b/monochrome-icon-theme-generate-tarball.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Regenerate monochrome-icon-theme tarball without copyrighted Ubuntu logos.
+# Original tarball can be found at:
+# https://launchpad.net/ubuntu/+archive/primary/+files/ubuntu-mono_$VERSION.tar.gz
+VERSION=$1
+
+wget -N -c https://launchpad.net/ubuntu/+archive/primary/+files/ubuntu-mono_$VERSION.tar.gz
+tar -xzf ubuntu-mono_$VERSION.tar.gz
+mv ubuntu-mono-$VERSION/ monochrome-icon-theme-$VERSION/
+pushd monochrome-icon-theme-$VERSION/
+mv ubuntu-mono-dark/ Monochrome-dark/
+mv ubuntu-mono-light/ Monochrome-light/
+sed -i "s/Name=Ubuntu-Mono/Name=Monochrome/" */index.theme
+find . \
+ \( \
+ -name "computer.*" \
+ -o -name "distributor-logo.*" \
+ -o -name "*dropbox*.*" \
+ -o -name "package-supported.*" \
+ -o -name "start-here.*" \
+ -o -name "*ubuntu*.*" \
+ \) -delete
+popd
+tar -cjf monochrome-icon-theme-$VERSION.tar.bz2 monochrome-icon-theme-$VERSION/
diff --git a/monochrome-icon-theme.spec b/monochrome-icon-theme.spec
new file mode 100644
index 0000000..68e7363
--- /dev/null
+++ b/monochrome-icon-theme.spec
@@ -0,0 +1,99 @@
+%global icon_theme Monochrome
+
+Name: monochrome-icon-theme
+Version: 0.0.38
+Release: 1%{?dist}
+Summary: Icons for the panel, designed in a simplified monochrome style
+
+Group: User Interface/Desktops
+License: CC-BY-SA
+URL: https://launchpad.net/ubuntu-mono
+Source0: %{name}-%{version}.tar.bz2
+# Ubuntu Mono icon theme contains copyrighted Ubuntu logo icons. Therefore we
+# use this script to delete these files and remove any reference to the Ubuntu
+# trademark before shipping it. Download the upstream tarball and invoke this
+# script while in the tarball's directory
+Source1: %{name}-generate-tarball.sh
+
+Requires: humanity-icon-theme
+BuildArch: noarch
+
+%description
+Dark and Light panel icons to make your desktop beautiful.
+
+
+%prep
+%setup -q
+
+# Delete dead icon symlinks
+find -L . -type l -exec rm {} \;
+
+
+%build
+
+
+%install
+install -dm 0755 $RPM_BUILD_ROOT%{_datadir}/icons/
+cp -a LoginIcons/ $RPM_BUILD_ROOT%{_datadir}/icons/
+cp -a %{icon_theme}-dark/ $RPM_BUILD_ROOT%{_datadir}/icons/
+cp -a %{icon_theme}-light/ $RPM_BUILD_ROOT%{_datadir}/icons/
+
+# SVG desktop icons reference the Ubuntu default wallpaper, not available in
+# Fedora and too heavy to be rendered inside a SVG file. Use the PNG icons
+# instead, as done in the Ubuntu package
+rm $RPM_BUILD_ROOT%{_datadir}/icons/%{icon_theme}-*/places/*/*desktop.svg
+cp -r debian/places/* $RPM_BUILD_ROOT%{_datadir}/icons/%{icon_theme}-dark/places/
+cp -r debian/places/* $RPM_BUILD_ROOT%{_datadir}/icons/%{icon_theme}-light/places/
+for d in $RPM_BUILD_ROOT%{_datadir}/icons/%{icon_theme}-*/places/*/; do
+ pushd $d
+ ln -s user-desktop.png desktop.png
+ popd
+done
+
+
+%post
+for i in LoginIcons %{icon_theme}-dark %{icon_theme}-light; do
+ /bin/touch --no-create %{_datadir}/icons/$i/ &>/dev/null || :
+done
+
+
+%postun
+if [ $1 -eq 0 ]; then
+ for i in LoginIcons %{icon_theme}-dark %{icon_theme}-light; do
+ /bin/touch --no-create %{_datadir}/icons/$i/ &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/$i/ &>/dev/null || :
+ done
+fi
+
+
+%posttrans
+for i in LoginIcons %{icon_theme}-dark %{icon_theme}-light; do
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/$i/ &>/dev/null || :
+done
+
+
+%files
+%doc debian/{changelog,copyright}
+%{_datadir}/icons/LoginIcons/
+%{_datadir}/icons/%{icon_theme}-dark/
+%{_datadir}/icons/%{icon_theme}-light/
+
+
+%changelog
+* Sat Nov 19 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 0.0.38-1
+- Update to 0.0.38
+
+* Mon Oct 17 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 0.0.37-4
+- Fix description
+
+* Wed Oct 12 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 0.0.37-3
+- Rename the package to monochrome-icon-theme (mono-icon-theme already exists in
+ the repositories)
+- Remove remaining Ubuntu trademarks and proprietary icons
+
+* Tue Oct 11 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 0.0.37-2
+- Rename the package to mono-icon-theme
+- Remove dependency on fedora-logos
+
+* Sun Oct 09 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 0.0.37-1
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..fd08bd9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f62be7e50e202d38eb64e198a0ba41d3 monochrome-icon-theme-0.0.38.tar.bz2
More information about the scm-commits
mailing list