summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Kristóf <venemo@msn.com>2011-05-03 22:53:46 +0200
committerTimur Kristóf <venemo@msn.com>2011-05-09 13:26:13 +0200
commit73b7d937d84f991f4cf64cdf6ed84d65c114f695 (patch)
tree9f34bc65c7307fc3c67cabf1af6688ee87d8f206
parentda76684517fa1a25642f55a8df932fb7b8ce3642 (diff)
downloadgnome-shell-extension-fedora-logo-73b7d937d84f991f4cf64cdf6ed84d65c114f695.tar.gz
gnome-shell-extension-fedora-logo-73b7d937d84f991f4cf64cdf6ed84d65c114f695.tar.xz
gnome-shell-extension-fedora-logo-73b7d937d84f991f4cf64cdf6ed84d65c114f695.zip
Various stuff related to packaging
-rwxr-xr-xcreate-rpm.sh15
-rw-r--r--gnome-shell-extension-fedora-logo.spec41
2 files changed, 56 insertions, 0 deletions
diff --git a/create-rpm.sh b/create-rpm.sh
new file mode 100755
index 0000000..08bcd97
--- /dev/null
+++ b/create-rpm.sh
@@ -0,0 +1,15 @@
+PROJECT='gnome-shell-extension-fedora-logo'
+VERSION='1.0'
+
+TARBALLDIR=$PROJECT-$VERSION
+
+rm $TARBALLDIR.tar.gz
+mkdir $TARBALLDIR
+cp * $TARBALLDIR/
+tar -cf $TARBALLDIR.tar $TARBALLDIR
+rm -rf $TARBALLDIR
+gzip $TARBALLDIR.tar
+
+cp $TARBALLDIR.tar.gz ~/rpmbuild/SOURCES/
+cp $PROJECT.spec ~/rpmbuild/SPECS/
+rpmbuild -ba ~/rpmbuild/SPECS/$PROJECT.spec
diff --git a/gnome-shell-extension-fedora-logo.spec b/gnome-shell-extension-fedora-logo.spec
new file mode 100644
index 0000000..9b195c2
--- /dev/null
+++ b/gnome-shell-extension-fedora-logo.spec
@@ -0,0 +1,41 @@
+Name: gnome-shell-extension-fedora-logo
+Version: 1.0
+Release: 2%{?dist}
+Summary: Simple Gnome shell extension to add the Fedora logo to the shell
+Group: User Interface/Desktops
+License: MIT
+#Actually this is way too small to have its own URL, but here is the announcement.
+URL: http://lists.fedoraproject.org/pipermail/design-team/2011-April/004215.html
+Source0: http://venemo.fedorapeople.org/sources/%{name}-%{version}.tar.gz
+BuildArch: noarch
+Requires: gnome-shell >= 3.0.0.2, fedora-logos
+#This is for those who installed the package with the old name
+Obsoletes: fedora-logo-gnome-shell-extension
+
+%description
+%{name} is a simple Gnome shell extension
+that adds the Fedora logo to the Activities button
+of the Gnome shell.
+
+%prep
+%setup -q
+
+%build
+%{nil}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/fedoralogo@fedoraproject.org/
+install -pm 644 extension.js $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/fedoralogo@fedoraproject.org/
+install -pm 644 metadata.json $RPM_BUILD_ROOT%{_datadir}/gnome-shell/extensions/fedoralogo@fedoraproject.org/
+
+%files
+%defattr(-,root,root,-)
+%{_datadir}/gnome-shell/extensions/fedoralogo@fedoraproject.org/extension.js
+%{_datadir}/gnome-shell/extensions/fedoralogo@fedoraproject.org/metadata.json
+%doc LICENSE
+%doc README
+
+%changelog
+* Sun Apr 10 2011 Timur Kristóf <venemo@msn.com> 1.0.0-1
+- Initial version