[starcal] Initial import (#679133)

Hedayat Vatankhah hedayat at fedoraproject.org
Thu May 5 19:35:22 UTC 2011


commit b3c9bacb3e9a81d2d432d41f8ae2f5f0b20290cf
Author: Hedayat Vatankhah <hedayat.fwd at gmail.com>
Date:   Fri May 6 00:05:08 2011 +0430

    Initial import (#679133)

 .gitignore      |    1 +
 sources         |    1 +
 starcal.desktop |    8 +++++++
 starcal.spec    |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..981ce58 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/starcal-1.5.3-src.tar.gz
diff --git a/sources b/sources
index e69de29..588db17 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f082eaadb5b2df75cd388209ba560b71  starcal-1.5.3-src.tar.gz
diff --git a/starcal.desktop b/starcal.desktop
new file mode 100644
index 0000000..6dc60c0
--- /dev/null
+++ b/starcal.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=StarCalendar
+Comment=A desktop calendar with Gregorian, Jalali and Hijri support
+Exec=starcal
+Icon=starcal
+Terminal=false
+Type=Application
+Categories=Office;Calendar;GTK;
diff --git a/starcal.spec b/starcal.spec
new file mode 100644
index 0000000..9acd368
--- /dev/null
+++ b/starcal.spec
@@ -0,0 +1,64 @@
+Name:           starcal
+Version:        1.5.3
+Release:        1%{?dist}
+Summary:        A desktop calendar with Gregorian, Jalali and Hijri support
+
+Group:          User Interface/Desktops
+License:        GPLv3+
+URL:            http://sourceforge.net/projects/starcal/
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.tar.gz
+# Source 1 is created by me.
+Source1:        %{name}.desktop
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires:       pygtk2
+BuildArch:      noarch
+BuildRequires:  python2-devel desktop-file-utils
+
+%description
+A perfect calendar with Gregorian, Jalali and Hijri support for GNU/Linux.
+It is written in PyGTK and can reside in system tray like an applet.
+
+%prep
+%setup -q -n %{name}-%{version}-src
+find -type f -not -name "*.py" -exec chmod a-x {} \;
+chmod a+x src/lang
+find -name "*.py" -exec sh -c 'if ! grep "^#\!" {} &> /dev/null;  then \
+   sed -i -e "1i#!/usr/bin/python" {}; fi'  \;
+
+%build
+rm -f src/{customday-new.py,htmlview.py,starcal_main.py}
+cat > starcal <<EOF
+#!/bin/sh
+SRC_DIR="%{_datadir}/starcal/src"
+python "\$SRC_DIR/starcal.py" "\$@"
+EOF
+chmod a+x starcal
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_datadir}/%{name} %{buildroot}%{_bindir}\
+            %{buildroot}%{_datadir}/pixmaps/
+cp -a pixmaps plugins src %{buildroot}%{_datadir}/%{name}
+cp -p %{name} %{buildroot}%{_bindir}
+ln -s %{_datadir}/%{name}/pixmaps/%{name}.png %{buildroot}%{_datadir}/pixmaps/
+
+desktop-file-install     \
+  --dir=%{buildroot}/%{_datadir}/applications %{SOURCE1}
+ 
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc ChangeLog src/license
+%{_bindir}/*
+%{_datadir}/%{name}
+%{_datadir}/pixmaps/*
+%{_datadir}/applications/*
+
+%changelog
+* Mon Feb 21 2011 Hedayat Vatankhah <hedayat.fwd+rpmchlog at gmail.com> - 1.5.3-1
+- Initial version
+


More information about the scm-commits mailing list