File plan.spec of Package plan
Name: plan
Summary: An X/Motif day planner
Version: 1.10
Release: 1
License: GPL
Group: Applications/Publishing
Source: %{name}-%{version}.tar.gz
Patch0: %{name}-debug.diff
Patch1: %{name}-64bit.diff
Patch2: oss112.diff
BuildRoot: %{_tmppath}/build-root-%{name}
Distribution: openSUSE
Prefix: /usr
Url: http://www.bitrot.de/plan.html
BuildRequires: motif-devel xorg-x11-devel bison flex
%if 0%{?suse_version} > 1010
BuildRequires: xorg-x11-libSM-devel
%endif
%description
Plan is a schedule planner based on X/Motif. It displays a month calendar
similar to xcal, but every day box is large enough to show appointments in
small print. By pressing on a day box, the appointments for that day can be
listed and edited. Appointments are entered with the following information
(everything except the time is optional):
- the date, time, and length (time and days) of the appointment,
- an optional text message to be printed,
- an optional script to be executed,
- early-warn and late-warn triggers that precede the alarm time
- repetitions: [n-th] weekdays, days-of-the-month, every n days, yearly
- optional fast command-line appointment entry
- flexible ways to specify holidays and vacations
- extensive context help
- multiuser capability using an IP server program (with access lists),
- grouping of appointments into files, per-user, private, and others
The action being taken when a warn or alarm time is reached is programmable;
by default a window pops up. In addition, a program can be executed, or mail
can be sent. Other methods of listing appointments (today, this week, next
week, or a keyword search for regular expressions) are also available. Plan
can be configured to display times in 12-hour or 24-hour formats, mmddyy and
ddmmyy date formats, and can show either Monday or Sunday in the leftmost
column. Four view modes are supported: month, year, week, day, and a 365-day
overview. The day, week, and overview plot appointments as colored and
labeled bars on a time chart.
%prep
%setup -q
%patch0 -p1
%ifarch x86_64
%patch1 -p1
%endif
%if 0%{?suse_version} > 1110
%patch2 -p1
%endif
%debug_package
%build
cd src
%if 0%{?suse_version} > 1110
./configure 6
%else
./configure 5
%endif
TARGET=linux
%ifarch x86_64
TARGET=linux64
%endif
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" make -j 2 $TARGET
%install
cd src
make DESTDIR=$RPM_BUILD_ROOT install
cd $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%if 0%{?suse_version} > 1110
/usr/bin/netplan
/usr/bin/plan
%else
/usr/X11R6/bin/netplan
/usr/X11R6/bin/plan
%endif
/usr/lib/plan
/usr/lib/plan/netplan.dir
/usr/lib/plan/notifier
/usr/lib/plan/plan.help
/usr/lib/plan/plan.lang.dutch
/usr/lib/plan/plan.lang.english
/usr/lib/plan/plan.lang.french
/usr/lib/plan/plan.lang.german
/usr/lib/plan/plan.lang.italian
/usr/lib/plan/plan.lang.polish
/usr/lib/plan/plan.lang.spanish
/usr/lib/plan/plan_cal.ps
/usr/lib/plan/pland
%changelog
* Fri Jun 26 2008 admin@eregion.de
- more buildservice rules adhered
* Tue Apr 24 2007 admin@eregion.de
- update to 1.10
* Thu Apr 12 2007 admin@eregion.de
- initital packaging after a packman request