|
|
@@ -23,9 +23,6 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
-%define V_real 5078b
|
|
|
-%define V_here 5.078b
|
|
|
-
|
|
|
# package information
|
|
|
Name: aft
|
|
|
Summary: Almost Free Text
|
|
|
@@ -35,16 +32,16 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [PLUS]
|
|
|
Group: Text
|
|
|
License: GPL
|
|
|
-Version: %{V_here}
|
|
|
-Release: 20030115
|
|
|
+Version: 5.08b
|
|
|
+Release: 20030405
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: http://www.maplefish.com/todd/aft%{V_real}.tar.gz
|
|
|
+Source0: http://www.maplefish.com/todd/aft-%{version}.tar.gz
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20020206, perl, groff
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20020206, perl
|
|
|
PreReq: OpenPKG, openpkg >= 20020206, perl
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
@@ -61,23 +58,20 @@ AutoReqProv: no
|
|
|
files for specialized output.
|
|
|
|
|
|
%prep
|
|
|
- %setup -q -n aft
|
|
|
+ %setup -q
|
|
|
|
|
|
%build
|
|
|
- # no-op
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;$(docdir)/backends;$(datadir)/@PACKAGE@/backends;g' \
|
|
|
+ -e 's;$(docdir)/examples;$(datadir)/@PACKAGE@/doc;g' \
|
|
|
+ -e 's;$(datadir)/doc/@PACKAGE@;$(datadir)/@PACKAGE@/doc;g' \
|
|
|
+ Makefile.in
|
|
|
+ ./configure \
|
|
|
+ --prefix=%{l_prefix}
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
- %{l_shtool} mkdir -f -p -m 755 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/bin \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/share/aft
|
|
|
- ( echo "$RPM_BUILD_ROOT%{l_prefix}/share/aft"
|
|
|
- echo "$RPM_BUILD_ROOT%{l_prefix}/bin"
|
|
|
- echo ""
|
|
|
- ) | %{l_prefix}/bin/perl install.pl
|
|
|
- %{l_shtool} subst \
|
|
|
- -e "s;$RPM_BUILD_ROOT%{l_prefix}/share/aft;%{l_prefix}/share/aft;" \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/bin/aft
|
|
|
+ %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
%files -f files
|