mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12096 57a11ea4-9604-0410-9ed3-97b8803252fd
81 lines
1.8 KiB
RPMSpec
81 lines
1.8 KiB
RPMSpec
%define name libgsf-1
|
|
%define version @VERSION@
|
|
%define release 1
|
|
%define prefix /usr
|
|
|
|
Summary: GNOME specific extensions to libgsf
|
|
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Release: %{release}
|
|
Group: System Environment/Libraries
|
|
License: LGPL
|
|
|
|
Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libgsf/libgsf-%{version}.tar.gz
|
|
Buildroot: /var/tmp/%{name}-%{version}-%{release}-root
|
|
URL: http://www.gnumeric.org
|
|
|
|
Requires: libgsf-1 >= 1.3.0 gnome-vfs >= 2.0.0
|
|
|
|
%description
|
|
GNOME specific extensions to support bonobo and gnome-vfs
|
|
|
|
%package devel
|
|
Summary: Support files necessary to compile applications with libgsf-gnome.
|
|
Group: Development/Libraries
|
|
Requires: libgsf-gnome-1
|
|
|
|
%description devel
|
|
Libraries, headers, and support files necessary to compile applications using
|
|
GNOME specific extensions to libgsf.
|
|
|
|
%prep
|
|
%setup -n libgsf-%{version}
|
|
|
|
%build
|
|
%ifarch alpha
|
|
MYARCH_FLAGS="--host=alpha-redhat-linux"
|
|
%endif
|
|
|
|
if [ ! -f configure ]; then
|
|
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix}
|
|
else
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
|
|
fi
|
|
|
|
if [ "$SMP" != "" ]; then
|
|
(make "MAKE=make -k -j $SMP"; exit 0)
|
|
make
|
|
else
|
|
make
|
|
fi
|
|
|
|
%install
|
|
if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi
|
|
mkdir -p $RPM_BUILD_ROOT%{prefix}
|
|
make prefix=$RPM_BUILD_ROOT%{prefix} install
|
|
|
|
%files
|
|
%defattr(644,root,root,755)
|
|
%doc AUTHORS COPYING README
|
|
%{prefix}/lib/lib*.so.*
|
|
|
|
%files devel
|
|
%defattr(644,root,root,755)
|
|
%{prefix}/lib/lib*.so
|
|
%{prefix}/lib/*a
|
|
%{prefix}/include/libgsf-1/*
|
|
+%{prefix}/lib/pkgconfig/*
|
|
+%{prefix}/share/doc/*
|
|
|
|
%clean
|
|
rm -r $RPM_BUILD_ROOT
|
|
|
|
%changelog
|
|
* Sun Aug 03 2003 Joseph Frazee <jfrazee@ling.osu.edu>
|
|
- Fixed some things, %{setup} -n libgsf-%{version} and removed %files devel
|
|
%{prefix}/lib/*.sh and %{prefix}/share/doc/gsf/*
|
|
|
|
* Thu Aug 15 2002 Jody Goldberg <jody@gnome.org>
|
|
- Initial version
|