Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
- Cleanup spec as per recently changed packaging guidelines
This commit is contained in:
parent
ce2e9be75a
commit
664a6f5daf
47
x3270.spec
47
x3270.spec
@ -1,11 +1,11 @@
|
||||
%define fontdir %{_datadir}/x3270/fonts
|
||||
%define catalogue /etc/X11/fontpath.d
|
||||
%global fontdir %{_datadir}/x3270/fonts
|
||||
%global catalogue /etc/X11/fontpath.d
|
||||
|
||||
%define majorver 3.3
|
||||
Summary: An X Window System based IBM 3278/3279 terminal emulator
|
||||
Name: x3270
|
||||
Version: 3.3.12ga11
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: BSD
|
||||
Group: Applications/Internet
|
||||
URL: http://x3270.sourceforge.net/
|
||||
@ -74,7 +74,8 @@ rm -rf wpr3287* wc3270* ws3270* tcl3270*
|
||||
|
||||
%build
|
||||
# Fix end of line encodings
|
||||
perl -pi -e "s/
//" */html/Keymap.html */html/Build.html
|
||||
perl -pi -e "s/
|
||||
//" */html/Keymap.html */html/Build.html
|
||||
# Set LIBX3270DIR to something we can share with x3270-text
|
||||
perl -pi -e "s,LIBX3270DIR =.*,LIBX3270DIR = %{_datadir}/x3270,g" x3270-%{majorver}/Imakefile.in
|
||||
# use rpmoptflags for x3270if
|
||||
@ -99,26 +100,26 @@ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults
|
||||
mkdir -p $RPM_BUILD_ROOT%{catalogue}
|
||||
|
||||
install -m755 x3270-%{majorver}/x3270 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m755 x3270-%{majorver}/x3270if $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m644 x3270-%{majorver}/*pcf.gz $RPM_BUILD_ROOT%{fontdir}
|
||||
install -m644 x3270-%{majorver}/ibm_hosts $RPM_BUILD_ROOT%{_sysconfdir}/
|
||||
install -m644 x3270-%{majorver}/X3270.ad $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults/X3270
|
||||
install -m644 x3270-%{majorver}/x3270.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270.1
|
||||
install -m644 x3270-%{majorver}/x3270if.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270if.1
|
||||
install -m644 x3270-%{majorver}/x3270-script.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270-script.1
|
||||
install -m644 x3270-%{majorver}/ibm_hosts.man $RPM_BUILD_ROOT%{_mandir}/man5/ibm_hosts.5
|
||||
install -p -m755 x3270-%{majorver}/x3270 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -p -m755 x3270-%{majorver}/x3270if $RPM_BUILD_ROOT%{_bindir}
|
||||
install -p -m644 x3270-%{majorver}/*pcf.gz $RPM_BUILD_ROOT%{fontdir}
|
||||
install -p -m644 x3270-%{majorver}/ibm_hosts $RPM_BUILD_ROOT%{_sysconfdir}/
|
||||
install -p -m644 x3270-%{majorver}/X3270.ad $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults/X3270
|
||||
install -p -m644 x3270-%{majorver}/x3270.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270.1
|
||||
install -p -m644 x3270-%{majorver}/x3270if.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270if.1
|
||||
install -p -m644 x3270-%{majorver}/x3270-script.man $RPM_BUILD_ROOT%{_mandir}/man1/x3270-script.1
|
||||
install -p -m644 x3270-%{majorver}/ibm_hosts.man $RPM_BUILD_ROOT%{_mandir}/man5/ibm_hosts.5
|
||||
|
||||
install -m755 pr3287-%{majorver}/pr3287 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m644 pr3287-%{majorver}/pr3287.man $RPM_BUILD_ROOT%{_mandir}/man1/pr3287.1x
|
||||
install -p -m755 pr3287-%{majorver}/pr3287 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -p -m644 pr3287-%{majorver}/pr3287.man $RPM_BUILD_ROOT%{_mandir}/man1/pr3287.1x
|
||||
|
||||
install -m755 c3270-%{majorver}/c3270 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m644 c3270-%{majorver}/c3270.man $RPM_BUILD_ROOT%{_mandir}/man1/c3270.1
|
||||
install -p -m755 c3270-%{majorver}/c3270 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -p -m644 c3270-%{majorver}/c3270.man $RPM_BUILD_ROOT%{_mandir}/man1/c3270.1
|
||||
|
||||
install -m755 s3270-%{majorver}/s3270 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m644 s3270-%{majorver}/s3270.man $RPM_BUILD_ROOT%{_mandir}/man1/s3270.1
|
||||
install -p -m755 s3270-%{majorver}/s3270 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -p -m644 s3270-%{majorver}/s3270.man $RPM_BUILD_ROOT%{_mandir}/man1/s3270.1
|
||||
|
||||
install -m644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/48x48/apps
|
||||
install -p -m644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/48x48/apps
|
||||
ln -sf %{fontdir} $RPM_BUILD_ROOT%{catalogue}/x3270
|
||||
mv x3270-%{majorver}/README* x3270-%{majorver}/LICENSE x3270-%{majorver}/Examples x3270-%{majorver}/html .
|
||||
mv c3270-%{majorver}/README README.c3270
|
||||
@ -129,7 +130,7 @@ mv s3270-%{majorver}/README README.s3270
|
||||
mv s3270-%{majorver}/html html_s3270
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
|
||||
desktop-file-install --vendor fedora \
|
||||
desktop-file-install \
|
||||
--dir $RPM_BUILD_ROOT/%{_datadir}/applications \
|
||||
%{SOURCE2}
|
||||
|
||||
@ -180,6 +181,10 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Feb 10 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 3.3.12ga11-5
|
||||
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
|
||||
- Cleanup spec as per recently changed packaging guidelines
|
||||
|
||||
* Thu Nov 22 2012 Dan Horák <dan[at]danny.cz> - 3.3.12ga11-4
|
||||
- fix license (BSD instead of MIT)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user