diff options
author | Rui M. Silva Seabra <rms@1407.org> | 2003-07-16 21:25:46 +0000 |
---|---|---|
committer | Rui M. Silva Seabra <rms@1407.org> | 2003-07-16 21:25:46 +0000 |
commit | e4fbc6cc376ea1d026fd393bee29cf8d60c8498d (patch) | |
tree | cd2047a6302d67d30b610aa62367668f46e15edc | |
parent | 24e66b8e0739de4908483bd08f0f3fb8f4cdd223 (diff) | |
download | enchant-e4fbc6cc376ea1d026fd393bee29cf8d60c8498d.tar.gz |
Spec fully works, takes advantage of rpm macros and dist tarballs are
rpm enabled.
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20739 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | libenchant.spec.in | 39 |
2 files changed, 22 insertions, 18 deletions
diff --git a/Makefile.am b/Makefile.am index 92337c6..ee95036 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,4 +7,5 @@ EXTRA_DIST = \ autogen.sh \ libenchant.pc.in \ libenchant.spec.in \ + libenchant.spec \ README TODO HACKING NEWS BUGS ChangeLog MAINTAINERS AUTHORS COPYING.LIB diff --git a/libenchant.spec.in b/libenchant.spec.in index 8ae7ed3..4a1c657 100644 --- a/libenchant.spec.in +++ b/libenchant.spec.in @@ -1,7 +1,6 @@ %define name libenchant %define version @VERSION@ %define release 1 -%define prefix /usr Summary: An Enchanting Spell Checking Library @@ -11,7 +10,7 @@ Release: %{release} Group: System Environment/Libraries License: LGPL -Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libgsf/%{name}-%{version}.tar.gz +Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libenchant/%{name}-%{version}.tar.gz Buildroot: /var/tmp/%{name}-%{version}-%{release}-root URL: http://www.abisource.com/ @@ -24,7 +23,7 @@ A library that wraps other spell checking backends. %package devel Summary: Support files necessary to compile applications with libenchant. Group: Development/Libraries -Requires: libgsf +Requires: libenchant %description devel Libraries, headers, and support files necessary to compile applications using libenchant. @@ -39,37 +38,41 @@ Libraries, headers, and support files necessary to compile applications using li %endif if [ ! -f configure ]; then -CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix} -else -CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} +CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{_prefix} fi +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} if [ "$SMP" != "" ]; then - (make "MAKE=make -k -j $SMP"; exit 0) - make + (%__make "MAKE=%__make -k -j $SMP"; exit 0) + %__make else - make +%__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 +%__make DESTDIR=$RPM_BUILD_ROOT install +find $RPM_BUILD_ROOT/%{_libdir} -name \*.la -exec rm -f \{\} \; %files %defattr(644,root,root,755) -%doc AUTHORS COPYING README -%{prefix}/lib/lib*.so* +%doc AUTHORS COPYING.LIB README +%{_libdir}/lib*.so* +%{_libdir}/enchant/lib*.so* %files devel %defattr(644,root,root,755) -%{prefix}/lib/*a -%{prefix}/lib/pkgconfig/libenchant.pc -%{prefix}/include/libenchant/* +%{_libdir}/*.a +%{_libdir}/enchant/*.a +%{_libdir}/pkgconfig/libenchant.pc +%{_includedir}/enchant/* %clean -rm -r $RPM_BUILD_ROOT +%__rm -r $RPM_BUILD_ROOT %changelog -* Sun Jul 13 11:48:04 EDT 2003 Dom Lachowicz <cinamod@hotmail.com> +* Wed Jul 16 2003 Rui Miguel Seabra <rms@1407.org> +- take advantage of environment rpm macros + +* Sun Jul 13 2003 Dom Lachowicz <cinamod@hotmail.com> - Initial version |