LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File plan.spec of Package plan (Project home:lnussel:plan)

#
# spec file for package plan (Version 1.9)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           plan
%if 0%{?suse_version} > 1230
BuildRequires:  motif-devel libXmu-devel libXpm-devel
%else
BuildRequires:  openmotif-devel
%endif
BuildRequires:  update-desktop-files bison flex
License:        Other License(s), see package
Group:          Productivity/Office/Organizers
Requires:       cpp
Version:        1.10.1
Release:        1
Summary:        Clear and easy to use schedule planner
Source:         ftp://ftp.fu-berlin.de/pub/unix/graphics/plan-%{version}.tar.gz
Source3:        plan.desktop
Url:            http://www.IN-Berlin.DE/User/bitrot/plan.html
Patch:          plan-1.8.7.diff
Patch2:         plan-1.8.4-font.diff
Patch3:         plan-1.8.7-holiday-in-datadir.diff
Patch4:         plan.diff
Patch5:         plan-nom32.diff
Patch6:         plan-1.10.1-lockdir.diff
Patch7:         plan-1.10.1-tmp.diff
Patch8:         plan-1.10.1-yearBoxWidth.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.



Authors:
--------
    Thomas Driemeyer <thomas@bitrot.in-berlin.de>

%prep
%setup -q
%patch -p1
#patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%build
test -x /usr/sbin/switch_motif_linking && \
  /usr/sbin/switch_motif_linking dynamic
cat > src/Make.config <<EOF
DIR=%{_bindir}
SBIN=%{_sbindir}
LIB=%{_libdir}/plan
HELP=%{_datadir}/plan
NETPLANDIR=/var/lib
MAN=%{_mandir}/man
CATMAN=
DEFTARGET=linux
DEBUG=$RPM_OPT_FLAGS -Wall -g -Werror-implicit-function-declaration -fno-strict-aliasing -L/usr/X11R6/%{_lib}
NOB_GID=65533 
EOF
make -C src %{?jobs:-j%jobs}

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,4}
make -C src DESTDIR=$RPM_BUILD_ROOT install
cp -a holiday $RPM_BUILD_ROOT/usr/share/plan
rm -f $RPM_BUILD_ROOT/usr/share/plan/holiday/holiday_current
ln -sf holiday_us $RPM_BUILD_ROOT/usr/share/plan/holiday/holiday_current.english
ln -sf holiday_german $RPM_BUILD_ROOT/usr/share/plan/holiday/holiday_current.german
ln -sf holiday_german $RPM_BUILD_ROOT/usr/share/plan/holiday/holiday_current
ln -sf holiday_french $RPM_BUILD_ROOT/usr/share/plan/holiday/holiday_current.french
ln -sf holiday_italy $RPM_BUILD_ROOT/usr/share/plan/holiday/holiday_current.italian
ln -sf holiday_spain $RPM_BUILD_ROOT/usr/share/plan/holiday/holiday_current.spanish
mv $RPM_BUILD_ROOT/usr/%_lib/plan/*.{lang.*,ps,help} $RPM_BUILD_ROOT/usr/share/plan
# remove netplan. insecure
find $RPM_BUILD_ROOT | grep netplan | xargs rm -r
#
%suse_update_desktop_file -i %name Office Calendar

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc README HISTORY
/usr/%{_lib}/plan
/usr/bin/*
%doc /usr/share/man/*/*
/usr/share/plan
/usr/share/applications/plan.desktop

%changelog