Remove % from configure/makeinstall comments near top to avoid premature expansion
svn: r1598
This commit is contained in:
parent
dcc8a2e346
commit
cb6b5acece
62
gramps.spec
62
gramps.spec
@ -1,6 +1,11 @@
|
|||||||
%define ver 0.9.1
|
%define ver 0.9.1
|
||||||
%define rel 1
|
%define rel 1
|
||||||
%define prefix /usr
|
%define prefix /usr
|
||||||
|
%define localstatedir /var/lib
|
||||||
|
# Ensure that internal RPM macros for configure & makeinstall
|
||||||
|
# will expand properly
|
||||||
|
%define _prefix %prefix
|
||||||
|
%define _localstatedir %localstatedir
|
||||||
|
|
||||||
Summary: Genealogical Research and Analysis Management Programming System.
|
Summary: Genealogical Research and Analysis Management Programming System.
|
||||||
Name: gramps
|
Name: gramps
|
||||||
@ -11,7 +16,7 @@ Group: Applications/Genealogy
|
|||||||
Source: http://download.sourceforge.net/gramps/gramps-%{ver}.tar.gz
|
Source: http://download.sourceforge.net/gramps/gramps-%{ver}.tar.gz
|
||||||
BuildRoot: /var/tmp/%{name}-%{version}-root
|
BuildRoot: /var/tmp/%{name}-%{version}-root
|
||||||
|
|
||||||
URL: http://gramps.sourceforge.net
|
URL: http://gramps.sourceforge.net/
|
||||||
|
|
||||||
Requires: python >= 2.2
|
Requires: python >= 2.2
|
||||||
Requires: gnome-python2 >= 1.99
|
Requires: gnome-python2 >= 1.99
|
||||||
@ -23,6 +28,7 @@ Requires: pygtk2-libglade >= 1.99
|
|||||||
BuildRequires: scrollkeeper >= 0.3.5
|
BuildRequires: scrollkeeper >= 0.3.5
|
||||||
BuildRequires: automake >= 1.6
|
BuildRequires: automake >= 1.6
|
||||||
BuildRequires: autoconf >= 2.52
|
BuildRequires: autoconf >= 2.52
|
||||||
|
BuildRequires: rpm >= 4.1
|
||||||
|
|
||||||
%description
|
%description
|
||||||
gramps (Genealogical Research and Analysis Management Programming
|
gramps (Genealogical Research and Analysis Management Programming
|
||||||
@ -34,65 +40,57 @@ based plugin system.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
if [ ! -f configure ]; then
|
if [ ! -f configure ]; then
|
||||||
CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%prefix
|
CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%prefix \
|
||||||
|
--localstatedir=%localstatedir --bindir=%{_bindir} \
|
||||||
|
--mandir=%{_mandir} --libdir=%{_libdir} --datadir=%{_datadir} \
|
||||||
|
--includedir=%{_includedir} --sysconfdir=%{_sysconfdir}
|
||||||
else
|
else
|
||||||
CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS --prefix=%prefix
|
CFLAGS="$MYCFLAGS" %configure
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
make GNOME_DATADIR=$RPM_BUILD_ROOT%{prefix}/share prefix=$RPM_BUILD_ROOT%{prefix} install
|
%makeinstall
|
||||||
|
%find_lang gramps
|
||||||
|
rm -rf $RPM_BUILD_ROOT/%{_localstatedir}/scrollkeeper/
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files -f gramps.lang
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
|
|
||||||
%doc README COPYING TODO INSTALL COPYING-DOCS
|
%doc README COPYING TODO INSTALL COPYING-DOCS
|
||||||
|
%doc %{_mandir}/man1/*
|
||||||
|
%doc %{_datadir}/gnome/help/*
|
||||||
|
|
||||||
%{prefix}/bin/gramps
|
%{prefix}/bin/gramps
|
||||||
|
|
||||||
%{_datadir}/gramps/gnome/help/gramps/C/*
|
|
||||||
%{_datadir}/gnome/apps/Applications/gramps.desktop
|
%{_datadir}/gnome/apps/Applications/gramps.desktop
|
||||||
%{_datadir}/pixmaps/gramps.png
|
%{_datadir}/pixmaps/gramps.png
|
||||||
%{_datadir}/locale/*/LC_MESSAGES/gramps.mo
|
|
||||||
|
|
||||||
%{_datadir}/gramps/*.xpm
|
%{_datadir}/gramps/*
|
||||||
%{_datadir}/gramps/*.jpg
|
|
||||||
%{_datadir}/gramps/gramps.desktop
|
|
||||||
%{_datadir}/gramps/*.png
|
|
||||||
%{_datadir}/gramps/*.py
|
|
||||||
%{_datadir}/gramps/*.pyo
|
|
||||||
%{_datadir}/gramps/*.glade
|
|
||||||
%{_datadir}/gramps/*.so
|
|
||||||
%{_datadir}/gramps/docgen/*.py
|
|
||||||
%{_datadir}/gramps/docgen/*.pyo
|
|
||||||
%{_datadir}/gramps/filters/*.py
|
|
||||||
%{_datadir}/gramps/filters/*.pyo
|
|
||||||
%{_datadir}/gramps/plugins/*.py
|
|
||||||
%{_datadir}/gramps/plugins/*.pyo
|
|
||||||
%{_datadir}/gramps/plugins/*.glade
|
|
||||||
%{_datadir}/gramps/data/gedcom.xml
|
|
||||||
%{_datadir}/gramps/data/templates/*.tpkg
|
|
||||||
%{_datadir}/gramps/data/templates/*.xml
|
|
||||||
%{_datadir}/gramps/example/*
|
|
||||||
%{_datadir}/omf/gramps
|
%{_datadir}/omf/gramps
|
||||||
|
|
||||||
%{prefix}/man/man1/gramps.1*
|
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q -o %{_datadir}/omf/gramps; fi
|
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q; fi
|
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 20 2003 Donald Peterson <dpeterson@sigmaxi.org>
|
||||||
|
- Override RPMs default of localstatedir to /var/lib..
|
||||||
|
This is done in accordance with GNOME and FHS compliance guidelines
|
||||||
|
(http://fedora.mplug.org/docs/rpm-packaging-guidelines.html)
|
||||||
|
- Use %find_lang macro to get NLS files
|
||||||
|
- Set %doc tags on appropriate files
|
||||||
|
- Remove temporary scrollkeeper-created files from install before packaging
|
||||||
|
to avoid rpm 4.1 complaints. (These aren't needed in the distribution.)
|
||||||
|
- Use default scrollkeeper-update scripts
|
||||||
* Mon Mar 24 2003 Alex Roitman <shura@alex.neuro.umn.edu>
|
* Mon Mar 24 2003 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
- update scrollkeeper dependencies and add post and postun to enable install on a machine without scrollkeeper
|
- update scrollkeeper dependencies and add post and postun to enable install on a machine without scrollkeeper
|
||||||
* Fri Jun 14 2002 Donald Peterson <dpeterso@engr.ors.edu>
|
* Fri Jun 14 2002 Donald Peterson <dpeterso@engr.ors.edu>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
%define rel @RELEASE@
|
%define rel @RELEASE@
|
||||||
%define prefix /usr
|
%define prefix /usr
|
||||||
%define localstatedir /var/lib
|
%define localstatedir /var/lib
|
||||||
# Ensure that internal RPM macros for %configure & %makeinstall
|
# Ensure that internal RPM macros for configure & makeinstall
|
||||||
# will expand properly
|
# will expand properly
|
||||||
%define _prefix %prefix
|
%define _prefix %prefix
|
||||||
%define _localstatedir %localstatedir
|
%define _localstatedir %localstatedir
|
||||||
@ -48,7 +48,7 @@ else
|
|||||||
CFLAGS="$MYCFLAGS" %configure
|
CFLAGS="$MYCFLAGS" %configure
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CFLAGS="$RPM_OPT_FLAGS" make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
Loading…
Reference in New Issue
Block a user