1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
%define ver @VERSION@
%define RELEASE 1
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix /usr
Summary: MrProject
Name: mrproject
Version: %ver
Release: %rel
Vendor: CodeFactory AB
Copyright: GPL
Group: Applications/Project Management
Url: http://mrproject.codefactory.se
Source: %{name}-%{ver}.tar.gz
BuildRoot: /var/tmp/mrproject-%{PACKAGE_VERSION}-root
Docdir: %{prefix}/doc
Requires: glib >= @GLIB_REQUIRED@
Requires: gtk+ >= @GTK_REQUIRED@
Requires: libxml >= @LIBXML_REQUIRED@
Requires: gnome-libs >= @GNOME_LIBS_REQUIRED@
Requires: ORBit >= @ORBIT_REQUIRED@
Requires: oaf >= @OAF_REQUIRED@
Requires: gnome-vfs >= @GNOME_VFS_REQUIRED@
Requires: gdk-pixbuf >= @GDK_PIXBUF_REQUIRED@
Requires: bonobo >= @BONOBO_REQUIRED@
Requires: popt >= @POPT_REQUIRED@
Requires: gnome-print >= @GNOME_PRINT_REQUIRED@
Requires: gal >= @GAL_REQUIRED@
Requires: libglade >= @LIBGLADE_REQUIRED@
BuildRequires: glib-devel >= @GLIB_REQUIRED@
BuildRequires: gtk+-devel >= @GTK_REQUIRED@
BuildRequires: libxml-devel >= @LIBXML_REQUIRED@
BuildRequires: gnome-libs-devel >= @GNOME_LIBS_REQUIRED@
BuildRequires: ORBit-devel >= @ORBIT_REQUIRED@
BuildRequires: oaf-devel >= @OAF_REQUIRED@
BuildRequires: gnome-vfs-devel >= @GNOME_VFS_REQUIRED@
BuildRequires: gdk-pixbuf-devel >= @GDK_PIXBUF_REQUIRED@
BuildRequires: bonobo-devel >= @BONOBO_REQUIRED@
BuildRequires: popt >= @POPT_REQUIRED@
BuildRequires: gnome-print-devel >= @GNOME_PRINT_REQUIRED@
BuildRequires: gal-devel >= @GAL_REQUIRED@
BuildRequires: libglade-devel >= @LIBGLADE_REQUIRED@
%description
MrProject, a project management application for GNOME.
%prep
%setup -q
%build
%ifarch alpha
MYARCH_FLAGS="--host=alpha-redhat-linux"
%endif
## Warning! Make sure there are no spaces or tabs after the \
## continuation character, or else the rpm demons will eat you.
CFLAGS="$RPM_OPT_FLAGS" ./configure \
$MYARCH_FLAGS --enable-more-warnings=no \
--prefix=%{_prefix} --datadir=%{_datadir} \
--sysconfdir=%{_sysconfdir} --includedir=%{_includedir} \
--libdir=%{_libdir} --bindir=%{_bindir}
make -k
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make -k prefix=$RPM_BUILD_ROOT/%{_prefix} \
sysconfdir=$RPM_BUILD_ROOT/%{_sysconfdir} \
datadir=$RPM_BUILD_ROOT/%{_datadir} \
includedir=$RPM_BUILD_ROOT/%{_includedir} \
libdir=$RPM_BUILD_ROOT/%{_libdir} \
bindir=$RPM_BUILD_ROOT/%{_bindir} install
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(0555, bin, bin)
%doc ChangeLog NEWS README COPYING
%{_bindir}/mrproject-engine
%{_bindir}/mrproject
%{_bindir}/run-mrproject
%{_libdir}/mrproject/components/*.so
%defattr (0444, bin, bin)
%{_datadir}/gnome/apps/Applications/*.desktop
%{_datadir}/gnome/ui/*.ui
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_datadir}/images/mrproject/*
%{_datadir}/mrproject/*
%{_datadir}/oaf/*
%{_datadir}/mime-info/*
%{_prefix}/man/man1/*
|