diff --git a/orage-4.12.1-libical3.patch b/orage-4.12.1-libical3.patch new file mode 100644 index 0000000..af962b3 --- /dev/null +++ b/orage-4.12.1-libical3.patch @@ -0,0 +1,59 @@ +diff -up orage-4.12.1/src/ical-code.c.libical-3.0 orage-4.12.1/src/ical-code.c +--- orage-4.12.1/src/ical-code.c.libical-3.0 2017-11-14 08:41:30.917375493 +0100 ++++ orage-4.12.1/src/ical-code.c 2017-11-14 08:41:56.823375135 +0100 +@@ -129,7 +129,6 @@ static struct icaltimetype ical_get_curr + && (strcmp(g_par.local_timezone, "floating") != 0)) + ctime = icaltime_current_time_with_zone(local_icaltimezone); + else { / * use floating time * / +- ctime.is_utc = 0; + ctime.is_date = 0; + ctime.is_daylight = 0; + ctime.zone = NULL; +@@ -2579,7 +2578,6 @@ static struct icaltimetype count_first_a + * when counting alarm time. */ + if (rel == ICAL_RELATED_START) { + per.stime.is_date = 0; +- per.stime.is_utc = 1; + per.stime.is_daylight = 0; + per.stime.zone = utc_icaltimezone; + per.stime.hour = 0; +@@ -2588,7 +2586,6 @@ static struct icaltimetype count_first_a + } + else { + per.etime.is_date = 0; +- per.etime.is_utc = 1; + per.etime.is_daylight = 0; + per.etime.zone = utc_icaltimezone; + per.etime.hour = 0; +@@ -2613,7 +2610,6 @@ static struct icaltimetype count_next_al + /* HACK: convert to UTC time so that we can use time arithmetic + * when counting alarm time. */ + start_time.is_date = 0; +- start_time.is_utc = 1; + start_time.is_daylight = 0; + start_time.zone = utc_icaltimezone; + start_time.hour = 0; +@@ -2768,7 +2764,6 @@ static alarm_struct *process_alarm_trigg + */ + if (icaltime_is_date(per.stime)) { + if (local_icaltimezone != utc_icaltimezone) { +- next_alarm_time.is_utc = 0; + next_alarm_time.is_daylight = 0; + next_alarm_time.zone = local_icaltimezone; + } +@@ -2850,7 +2845,6 @@ orage_message(120, P_N "Alarm rec loop n + */ + if (icaltime_is_date(per.stime)) { + if (local_icaltimezone != utc_icaltimezone) { +- next_alarm_time.is_utc = 0; + next_alarm_time.is_daylight = 0; + next_alarm_time.zone = local_icaltimezone; + } +@@ -2944,7 +2938,6 @@ orage_message(120, P_N "*****After loop + */ + if (icaltime_is_date(per.stime)) { + if (local_icaltimezone != utc_icaltimezone) { +- next_alarm_time.is_utc = 0; + next_alarm_time.is_daylight = 0; + next_alarm_time.zone = local_icaltimezone; + } diff --git a/orage-4.12.1.tar.bz2 b/orage-4.12.1.tar.bz2 new file mode 100644 index 0000000..a31e325 Binary files /dev/null and b/orage-4.12.1.tar.bz2 differ diff --git a/orage.spec b/orage.spec new file mode 100644 index 0000000..a7433c6 --- /dev/null +++ b/orage.spec @@ -0,0 +1,82 @@ +%global xfceversion 4.14 + +Name: orage +Version: 4.12.1 +Release: 1 +Summary: Time-managing application for the Xfce desktop environment +License: GPLv2+ +#Group: Development/Libraries +URL: http://www.xfce.org/ +Source0: http://archive.xfce.org/src/apps/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2 +Patch0: %{name}-%{version}-libical3.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +#BuildArch: noarch +BuildRequires: gcc +BuildRequires: pkgconfig(libxfce4panel-1.0) >= 4.6.0 +BuildRequires: pkgconfig(libnotify) >= 0.3.2 +BuildRequires: pkgconfig(libical) >= 0.43 +BuildRequires: pkgconfig(dbus-glib-1) >= 0.34 +BuildRequires: popt-devel +BuildRequires: gettext intltool +BuildRequires: desktop-file-utils +Requires: dbus +Requires: xfce4-panel +Provides: xfcalendar = %{version}-%{release} + +%description +Orage provides a calendar which integrates nicely into the Xfce Desktop +Environment. It is highly configurable and supports alerts based on dates. +It warns you with popup or audio alarm. As it is an application for every +day use it launches itself in the background as a daemon and can be accessed +using the Orage Clock plugin for the panel. + +%prep +%setup -q +%patch0 -p1 + +%build +export CFLAGS="$RPM_OPT_FLAGS -I/usr/include/libical" +%configure --disable-static --enable-libical + +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} INSTALL='install -p' +%find_lang %{name} + +desktop-file-install \ + --dir %{buildroot}%{_datadir}/applications \ + --delete-original \ + %{buildroot}%{_datadir}/applications/xfcalendar.desktop + +desktop-file-install \ + --dir %{buildroot}%{_datadir}/applications \ + --remove-category Application \ + --delete-original \ + %{buildroot}%{_datadir}/applications/globaltime.desktop + +# remove unneeded .la file +rm -f %{buildroot}%{_libdir}/xfce4/panel/plugins/liborageclock.la + +%files -f %{name}.lang +%license COPYING +%doc README ChangeLog AUTHORS +%{_bindir}/globaltime +%{_bindir}/orage +%{_bindir}/tz_convert +%{_datadir}/applications/*xfcalendar.desktop +%{_datadir}/applications/globaltime.desktop +%{_datadir}/applications/xfce-xfcalendar-settings.desktop +%{_datadir}/orage/ +%{_datadir}/icons/hicolor/*/*/* +%{_datadir}/dbus-1/services/org.xfce.calendar.service +%{_datadir}/dbus-1/services/org.xfce.orage.service +%{_datadir}/xfce4/panel/plugins/xfce4-orageclock-plugin.desktop +%{_libdir}/xfce4/panel/plugins/liborageclock.so +%{_mandir}/man1/globaltime.1.* +%{_mandir}/man1/orage.1.* +%{_mandir}/man1/tz_convert.1.* + +%changelog +* Mon Jul 27 2020 Dillon Chen - 4.12.1-1 +- Init package