[Planner Dev] Re: [PATCH] new spec file




Here is another update to the spec file that I am using locally. It supsersedes the version in my previous message and fixes a couple issues with dependencies and %post scripts (somebody should double check that I am using the right %post syntax)

N
%define ver 0.11
%define name planner

Summary: 	A graphical project management tool.
Name:           %name
Version:        %ver
Release:	imendio2
License: 	GPL
Group: 		Applications/Productivity
Url:		http://planner.imendio.org/
Source: 	%{name}-%{ver}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{ver}-root
Obsoletes:	mrproject
Requires:	gtk2 >= 2.0.3
Requires:       libgnomeui >= 2.0.1
Requires:	popt >= 1.5
Requires:	libglade2 >= 2.0.0
Requires:       %{name}-libs = %{ver}
Requires:       gnome-vfs2 >= 2.0.2
Requires:       libgnomeprintui22 >= 2.2.0
Requires:       libxslt >= 1.0
PreReq:         scrollkeeper >= 0.3.10

BuildRequires:	gtk2-devel >= 2.0.3
BuildRequires:	libgnomeui-devel >= 2.0.1
BuildRequires:	libglade2-devel >= 2.0.0
BuildRequires:  gnome-vfs2-devel >= 2.0.2
BuildRequires:  libgnomeprintui22-devel >= 2.2.0
BuildRequires:  libxslt-devel >= 1.0
BuildRequires:	intltool
BuildRequires:  libgsf-devel >= 1.4

%description
Planner is a visual project management application which allows users to
manage several aspects of a project, including schedule tracking using
Gantt charts.

You should install Planner if you wish to manage schedules, allocate
resources, and track the progress of your projects.

%package sql
Summary:	Planner SQL plugin
Group:          Applications/Productivity
Requires:       %name = %{PACKAGE_VERSION}
Requires:       postgresql-libs
BuildRequires:  postgresql-devel

%description sql
SQL plugin for Planner, this plugin can be used to store projects in a PostgreSQL database.

%package libs
Summary:	Support libraries for Planner
Group:		System Environment/Libraries
Requires:	%name = %{PACKAGE_VERSION}
Obsoletes:	libmrproject

%description libs
A support library for accessing Planner data.

%package devel
Summary:	Development files for Planner
Group:		Development/Libraries
Requires:	%name = %{PACKAGE_VERSION}
Obsoletes:	libmrproject-devel

%description devel
Development headers / libtool library stubs for Planner (libplanner).

%prep
%setup -q

%build

intltoolize
%configure --disable-timetable --enable-postgres

make

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%makeinstall MRP_PLUGINDIR=$RPM_BUILD_ROOT/%{_libdir}/planner/plugins MRP_VIEWDIR=$RPM_BUILD_ROOT/%{_libdir}/planner/views

rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
rm -f $RPM_BUILD_ROOT%{_libdir}/planner/*/*la
rm -f $RPM_BUILD_ROOT%{_libdir}/planner/*la

desktop-file-install --vendor imendio --delete-original     \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications             \
  --add-category X-Red-Hat-Base                             \
  $RPM_BUILD_ROOT%{_datadir}/applications/planner.desktop


%find_lang %name


%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%post libs
/sbin/ldconfig

%post
scrollkeeper-update

%postun libs
/sbin/ldconfig

%postun
scrollkeeper-update

%files -f %{name}.lang
%defattr(-, root, root)
%doc ChangeLog NEWS README COPYING
%{_bindir}/planner
%{_libdir}/planner
%{_datadir}/planner
%{_datadir}/application-registry/*
%{_datadir}/mime-info/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_datadir}/gnome/help/planner/*
%{_datadir}/omf/planner/*

%exclude %{_libdir}/planner/plugins/libsql-plugin*
%exclude %{_datadir}/planner/glade/sql.glade
%exclude %{_datadir}/planner/ui/sql-plugin.ui
%exclude %{_libdir}/planner/storage-modules/libstorage-sql.so

%files sql
%defattr(-,root,root)
%{_libdir}/planner/plugins/libsql-plugin*
%{_datadir}/planner/glade/sql.glade
%{_datadir}/planner/ui/sql-plugin.ui
%{_libdir}/planner/storage-modules/libstorage-sql.so

%files libs
%defattr(-,root,root)
%{_libdir}/libplanner-1.so
%{_datadir}/locale/*

%files devel
%defattr(-,root,root)
%{_libdir}/libplanner-1.la
%{_libdir}/pkgconfig/libplanner-1.pc
%{_includedir}/planner-1.0

%changelog
* Wed Mar 31 2004 Nathan Bryant <nbryant optonline net>
- Update spec file. libplanner is now included in the build, so name these packages planner-libs and
  planner-devel.
- Fix dependency issues against postgresql-libs
- Fix association of %post and %postun with the -libs package
* Mon Dec 1 2003 Richard Hult <richard imendio com>
- Start over with a new spec file, needs a lot more work.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]