Accepting request 306832 from home:aeneas_jaissle:branches:X11:Utilities
Add icon and .desktop file; if possible, please release a maintenance update for openSUSE 13.2 OBS-URL: https://build.opensuse.org/request/show/306832 OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/putty?expand=0&rev=20
This commit is contained in:
parent
395fb8ba92
commit
772ddd573d
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 13 13:21:36 UTC 2015 - aj@ajaissle.de
|
||||||
|
|
||||||
|
- Build icons and add a .desktop file for putty
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 2 10:19:15 UTC 2015 - jengelh@inai.de
|
Mon Mar 2 10:19:15 UTC 2015 - jengelh@inai.de
|
||||||
|
|
||||||
|
46
putty.spec
46
putty.spec
@ -31,8 +31,10 @@ Source2: http://the.earth.li/~sgtatham/putty/latest/%name-%version.tar.gz
|
|||||||
Source4: %name.keyring
|
Source4: %name.keyring
|
||||||
Patch1: putty-03-config.diff
|
Patch1: putty-03-config.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: ImageMagick
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
BuildRequires: krb5-devel
|
BuildRequires: krb5-devel
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
Conflicts: pssh
|
Conflicts: pssh
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -46,19 +48,53 @@ serial console client.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags};
|
make %{?_smp_mflags}
|
||||||
|
make %{?_smp_mflags} -C icons cicons pngs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/applications/
|
||||||
|
cat >%{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=PuTTY SSH Client
|
||||||
|
GenericName=PuTTY
|
||||||
|
Comment=Connect to an SSH server with PuTTY
|
||||||
|
Exec=putty
|
||||||
|
Icon=putty
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=GTK;Network;RemoteAccess;
|
||||||
|
EOF
|
||||||
|
|
||||||
|
%suse_update_desktop_file -n %name
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/pixmaps/
|
||||||
|
install -m644 icons/xpmpterm.c %{buildroot}%{_datadir}/pixmaps/pterm.xpm
|
||||||
|
install -m644 icons/xpmputty.c %{buildroot}%{_datadir}/pixmaps/putty.xpm
|
||||||
|
install -m644 icons/pterm-32.png %{buildroot}%{_datadir}/pixmaps/pterm.png
|
||||||
|
install -m644 icons/putty-32.png %{buildroot}%{_datadir}/pixmaps/putty.png
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1140
|
||||||
|
%post
|
||||||
|
%desktop_database_post
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1140
|
||||||
|
%postun
|
||||||
|
%desktop_database_postun
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENCE
|
%doc LICENCE doc/*.html
|
||||||
%_bindir/*
|
%doc %{_mandir}/man*/*
|
||||||
%doc %_mandir/man*/*
|
%{_bindir}/*
|
||||||
%doc doc/*.html
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
%{_datadir}/pixmaps/*.png
|
||||||
|
%{_datadir}/pixmaps/*.xpm
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user