[humanity-icon-theme/f16] First import
Mohamed ElMorabity
melmorabity at fedoraproject.org
Sun Oct 16 18:14:51 UTC 2011
commit e44e98c83879f4a9710aae9867809c0a3e65efb2
Author: Mohamed El Morabity <melmorabity at fedoraproject.org>
Date: Sun Oct 16 20:14:48 2011 +0200
First import
.gitignore | 1 +
humanity-icon-theme-generate-tarball.sh | 22 +++++++++
humanity-icon-theme.spec | 75 +++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f420f72 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/humanity-icon-theme-0.5.3.11-without-logos.tar.bz2
diff --git a/humanity-icon-theme-generate-tarball.sh b/humanity-icon-theme-generate-tarball.sh
new file mode 100644
index 0000000..91b670c
--- /dev/null
+++ b/humanity-icon-theme-generate-tarball.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Regenerate humanity-icon-theme tarball without copyrighted Ubuntu logos.
+# Original tarball can be found at:
+# https://launchpad.net/ubuntu/+archive/primary/+files/humanity-icon-theme_$VERSION.tar.gz
+
+VERSION=$1
+
+tar -xzf humanity-icon-theme_$VERSION.tar.gz
+find humanity-icon-theme/ \
+ \( \
+ -name "distributor-logo.*" \
+ -o -name "*dropbox*.*" \
+ -o -name "drive-harddisk-system.*" \
+ -o -name "gnome-main-menu.*" \
+ -o -name "novell-button.*" \
+ -o -name "start-here.*" \
+ -o -name "ubiquity.*" \
+ -o -name "*ubuntu*.*" \
+ -o -name "usb-creator*.*" \
+ \) -delete
+tar -cjf humanity-icon-theme-$VERSION-without-logos.tar.bz2 humanity-icon-theme/
diff --git a/humanity-icon-theme.spec b/humanity-icon-theme.spec
new file mode 100644
index 0000000..53c377f
--- /dev/null
+++ b/humanity-icon-theme.spec
@@ -0,0 +1,75 @@
+Name: humanity-icon-theme
+Version: 0.5.3.11
+Release: 2%{?dist}
+Summary: Humanity icon theme
+
+Group: User Interface/Desktops
+License: GPLv2
+URL: https://launchpad.net/humanity/
+Source0: %{name}-%{version}-without-logos.tar.bz2
+# Humanity 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: gnome-icon-theme
+BuildArch: noarch
+
+%description
+Humanity and Humanity Dark are nice and well polished icon themes for the GNOME
+desktop.
+
+
+%prep
+%setup -q -n %{name}
+
+# Delete dead icon symlinks
+find -L . -type l -delete
+
+
+%build
+
+
+%install
+install -dpm 0755 $RPM_BUILD_ROOT%{_datadir}/icons/
+cp -a Humanity/ $RPM_BUILD_ROOT%{_datadir}/icons/
+cp -a Humanity-Dark/ $RPM_BUILD_ROOT%{_datadir}/icons/
+
+# Remove documentation and license files in theme folders
+rm $RPM_BUILD_ROOT%{_datadir}/icons/Humanity/{AUTHORS,CONTRIBUTORS,COPYING}
+rm $RPM_BUILD_ROOT%{_datadir}/icons/Humanity-Dark/{AUTHORS,COPYING}
+
+
+%post
+/bin/touch --no-create %{_datadir}/icons/Humanity/ &>/dev/null || :
+/bin/touch --no-create %{_datadir}/icons/Humanity-Dark/ &>/dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ]; then
+ /bin/touch --no-create %{_datadir}/icons/Humanity/ &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/Humanity/ &>/dev/null || :
+ /bin/touch --no-create %{_datadir}/icons/Humanity-Dark/ &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/Humanity-Dark/ &>/dev/null || :
+fi
+
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/Humanity/ &>/dev/null || :
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/Humanity-Dark/ &>/dev/null || :
+
+
+%files
+%doc Humanity/{AUTHORS,CONTRIBUTORS,COPYING}
+%{_datadir}/icons/Humanity/
+%{_datadir}/icons/Humanity-Dark/
+
+
+%changelog
+* Tue Oct 11 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 0.5.3.11-2
+- Repack source to remove copyrighted Ubuntu logos
+- Remove dependency on fedora-logos
+
+* Sun Oct 09 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 0.5.3.11-1
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..ceffcd6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+280ab8f9394080e9f704786c9af0316c humanity-icon-theme-0.5.3.11-without-logos.tar.bz2
More information about the scm-commits
mailing list