- Fix building with new rpm and just use the macros availiable in
place of current hardcoded stuff. Passing of arguments to cp in %doc macro seem not to be possible anymore. OBS-URL: https://build.opensuse.org/package/show/Base:System/x3270?expand=0&rev=24
This commit is contained in:
parent
9d51591fdd
commit
d62485013e
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 24 08:58:55 UTC 2013 - tchvatal@suse.com
|
||||
|
||||
- Fix building with new rpm and just use the macros availiable in
|
||||
place of current hardcoded stuff. Passing of arguments to cp in
|
||||
%doc macro seem not to be possible anymore.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 12 19:12:26 UTC 2013 - jjolly@suse.com
|
||||
|
||||
|
148
x3270.spec
148
x3270.spec
@ -16,21 +16,18 @@
|
||||
#
|
||||
|
||||
|
||||
%define appdefdir %{_datadir}/X11
|
||||
|
||||
Name: x3270
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: bdftopcf
|
||||
BuildRequires: fontpackages-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: xorg-x11
|
||||
BuildRequires: xorg-x11-devel
|
||||
%define appdefdir /usr/share/X11
|
||||
%define xbindir /usr/bin
|
||||
%define xmandir /usr/share/man
|
||||
%define xincludes /usr/include
|
||||
%define xlibraries /usr/%{_lib}
|
||||
BuildRequires: freetype2
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: tcl-devel
|
||||
BuildRequires: xorg-x11
|
||||
BuildRequires: xorg-x11-devel
|
||||
Version: 3.3.12
|
||||
Release: 0
|
||||
Summary: A Family of IBM 3270 Terminal Emulators
|
||||
@ -102,15 +99,12 @@ x026 is a fun toy which emulates an x026 puncher.
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export LIBX3270DIR=/etc/x3270
|
||||
export LIBX3270DIR=%{_sysconfdir}/x3270
|
||||
# the tcl variant
|
||||
cd tcl3270-3.3
|
||||
autoconf
|
||||
./configure \
|
||||
%configure \
|
||||
--cache-file=../config.cache \
|
||||
--bindir=%{_bindir} \
|
||||
--prefix=%{_prefix} \
|
||||
--mandir=%{_mandir} \
|
||||
--with-tcl=%tcl_version \
|
||||
--enable-ssl
|
||||
make LIBX3270DIR=${LIBX3270DIR}
|
||||
@ -118,14 +112,12 @@ cd ..
|
||||
# the X variant
|
||||
cd x3270-3.3
|
||||
# pr3287 is built from the separate source pr3287*.tgz above.
|
||||
./configure \
|
||||
%configure \
|
||||
--cache-file=../config.cache \
|
||||
--prefix=%{_prefix} \
|
||||
--enable-app-defaults \
|
||||
--without-pr3287 \
|
||||
--x-includes=%{xincludes} \
|
||||
--x-libraries=%{xlibraries} \
|
||||
--mandir=%{xmandir} \
|
||||
--x-includes=%{_includedir} \
|
||||
--x-libraries=%{_libdir} \
|
||||
--with-all-xinstall \
|
||||
--with-fontdir=%{_miscfontsdir} \
|
||||
--enable-ssl
|
||||
@ -135,32 +127,23 @@ cd x3270-3.3
|
||||
cd ..
|
||||
# the console variant
|
||||
cd c3270-3.3
|
||||
./configure \
|
||||
%configure \
|
||||
--cache-file=../config.cache \
|
||||
--bindir=%{_bindir} \
|
||||
--prefix=%{_prefix} \
|
||||
--mandir=%{_mandir} \
|
||||
--without-pr3287 \
|
||||
--enable-ssl
|
||||
make LIBX3270DIR=${LIBX3270DIR}
|
||||
cd ..
|
||||
# the scripting variant
|
||||
cd s3270-3.3
|
||||
./configure \
|
||||
%configure \
|
||||
--cache-file=../config.cache \
|
||||
--bindir=%{_bindir} \
|
||||
--prefix=%{_prefix} \
|
||||
--mandir=%{_mandir} \
|
||||
--enable-ssl
|
||||
make LIBX3270DIR=${LIBX3270DIR}
|
||||
cd ..
|
||||
# the printer
|
||||
cd pr3287-3.3
|
||||
./configure \
|
||||
%configure \
|
||||
--cache-file=../config.cache \
|
||||
--bindir=%{_bindir} \
|
||||
--prefix=%{_prefix} \
|
||||
--mandir=%{_mandir} \
|
||||
--enable-ssl
|
||||
make LIBX3270DIR=${LIBX3270DIR}
|
||||
cd ..
|
||||
@ -171,106 +154,109 @@ cd x026-1.0
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export LIBX3270DIR=/etc/x3270
|
||||
export LIBX3270DIR=%{_sysconfdir}/x3270
|
||||
# abort on error
|
||||
set -e
|
||||
# if RPM_BUILD_ROOT is set, clean it up
|
||||
${RPM_BUILD_ROOT:+rm -rf $RPM_BUILD_ROOT}
|
||||
# create the default directory structure in the build root
|
||||
mkdir --parents $RPM_BUILD_ROOT{/usr/bin,%{_mandir}/{man1,man5}}
|
||||
mkdir --parents %{buildroot}{%{_bindir},%{_mandir}/{man1,man5}}
|
||||
# the X variant
|
||||
cd x3270-3.3
|
||||
chmod -x html/Keymap.html
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
# make install does a mkfontdir, that creates a fonts.dir we don't
|
||||
# want in the package. remove that:
|
||||
rm $RPM_BUILD_ROOT%{_miscfontsdir}/fonts.dir
|
||||
rm %{buildroot}%{_miscfontsdir}/fonts.dir
|
||||
install -d -m 755 \
|
||||
$RPM_BUILD_ROOT%{appdefdir}/app-defaults
|
||||
%{buildroot}%{appdefdir}/app-defaults
|
||||
install -m 644 X3270.xad \
|
||||
$RPM_BUILD_ROOT%{appdefdir}/app-defaults/X3270
|
||||
%{buildroot}%{appdefdir}/app-defaults/X3270
|
||||
# clean up:
|
||||
# remove remainders of patching the examples, if existing
|
||||
rm -v Examples/*.orig || true
|
||||
cd ..
|
||||
# the console variant
|
||||
cd c3270-3.3
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
cd ..
|
||||
# the scripting variant
|
||||
cd s3270-3.3
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
cd ..
|
||||
# the tcl variant
|
||||
cd tcl3270-3.3
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
cd ..
|
||||
# the printer
|
||||
cd pr3287-3.3
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install
|
||||
make DESTDIR=%{buildroot} LIBX3270DIR=${LIBX3270DIR} install.man
|
||||
cd ..
|
||||
# the IBM 026 keypunch emulator
|
||||
cd x026-1.0
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
make DESTDIR=%{buildroot} install
|
||||
cd ..
|
||||
# move site config files to the standard locations
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/x3270
|
||||
mkdir -p %{buildroot}/usr/lib/x3270
|
||||
# this is a per-site, not a per-machine config file
|
||||
chmod 644 $RPM_BUILD_ROOT/etc/x3270/ibm_hosts
|
||||
chmod 644 %{buildroot}%{_sysconfdir}/x3270/ibm_hosts
|
||||
cp -a %{S:5} .
|
||||
# remove man-pages in /usr/man
|
||||
rm -rf $RPM_BUILD_ROOT/usr/man/man{1,5}
|
||||
rm -rf %{buildroot}/usr/man/man{1,5}
|
||||
# set permissions correct
|
||||
chmod ugo-x $RPM_BUILD_ROOT/usr/share/man/man{1,5}/*
|
||||
chmod ugo-x %{buildroot}%{_mandir}/man{1,5}/*
|
||||
|
||||
# copy the docs
|
||||
mkdir -p %{buildroot}%{_docdir}/%name
|
||||
cp -pr --parents x3270-3.3/{Examples,html,Playback} %{buildroot}%{_docdir}/%name
|
||||
cp -pr --parents c3270-3.3/html %{buildroot}%{_docdir}/%name
|
||||
cp -pr --parents pr3287-3.3/html %{buildroot}%{_docdir}/%name
|
||||
cp -pr --parents s3270-3.3/{Examples,html} %{buildroot}%{_docdir}/%name
|
||||
cp -pr --parents tcl3270-3.3/{Examples,html} %{buildroot}%{_docdir}/%name
|
||||
|
||||
%reconfigure_fonts_scriptlets
|
||||
|
||||
%clean
|
||||
#${RPM_BUILD_ROOT:+rm -rf $RPM_BUILD_ROOT}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,755)
|
||||
# common files
|
||||
%dir /etc/x3270
|
||||
%config(noreplace) /etc/x3270/ibm_hosts
|
||||
%doc /usr/share/man/man5/ibm_hosts.5.gz
|
||||
%doc /usr/share/man/man1/x3270if.1.gz
|
||||
%doc /usr/share/man/man1/x3270-script.1.gz
|
||||
/usr/bin/x3270if
|
||||
%dir %{_sysconfdir}/x3270
|
||||
%config(noreplace) %{_sysconfdir}/x3270/ibm_hosts
|
||||
%doc %{_mandir}/man5/ibm_hosts.5.gz
|
||||
%doc %{_mandir}/man1/x3270if.1.gz
|
||||
%doc %{_mandir}/man1/x3270-script.1.gz
|
||||
%{_bindir}/x3270if
|
||||
# x3270
|
||||
%{xbindir}/x3270
|
||||
%{_bindir}/x3270
|
||||
%{appdefdir}/app-defaults/X3270
|
||||
%dir %{_miscfontsdir}
|
||||
%{_miscfontsdir}/*
|
||||
%doc %{xmandir}/man1/x3270.1x.gz
|
||||
%doc --parents x3270-3.3/Examples
|
||||
%doc --parents x3270-3.3/html
|
||||
%doc --parents x3270-3.3/Playback
|
||||
%doc %{_mandir}/man1/x3270.1x.gz
|
||||
%doc %{_docdir}/%name/x3270-3.3/Examples
|
||||
%doc %{_docdir}/%name/x3270-3.3/html
|
||||
%doc %{_docdir}/%name/x3270-3.3/Playback
|
||||
# c3270
|
||||
/usr/bin/c3270
|
||||
%doc /usr/share/man/man1/c3270.1.gz
|
||||
%doc --parents c3270-3.3/html
|
||||
%{_bindir}/c3270
|
||||
%doc %{_mandir}/man1/c3270.1.gz
|
||||
%doc %{_docdir}/%name/c3270-3.3/html
|
||||
# pr3287
|
||||
/usr/bin/pr3287
|
||||
%doc /usr/share/man/man1/pr3287.1.gz
|
||||
%doc --parents pr3287-3.3/html
|
||||
%{_bindir}/pr3287
|
||||
%doc %{_mandir}/man1/pr3287.1.gz
|
||||
%doc %{_docdir}/%name/pr3287-3.3/html
|
||||
# s3270
|
||||
/usr/bin/s3270
|
||||
%doc /usr/share/man/man1/s3270.1.gz
|
||||
%doc --parents s3270-3.3/Examples
|
||||
%doc --parents s3270-3.3/html
|
||||
%{_bindir}/s3270
|
||||
%doc %{_mandir}/man1/s3270.1.gz
|
||||
%doc %{_docdir}/%name/s3270-3.3/Examples
|
||||
%doc %{_docdir}/%name/s3270-3.3/html
|
||||
# tcl3270
|
||||
/usr/bin/tcl3270
|
||||
%doc /usr/share/man/man1/tcl3270.1.gz
|
||||
%doc --parents tcl3270-3.3/Examples
|
||||
%doc --parents tcl3270-3.3/html
|
||||
%{_bindir}/tcl3270
|
||||
%doc %{_mandir}/man1/tcl3270.1.gz
|
||||
%doc %{_docdir}/%name/tcl3270-3.3/Examples
|
||||
%doc %{_docdir}/%name/tcl3270-3.3/html
|
||||
# x026
|
||||
%{xbindir}/x026
|
||||
%{_bindir}/x026
|
||||
%doc %attr(644,root,root) README.SuSE
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user