rpms/lpf-skype/devel LICENSE, NONE, 1.1 README, NONE, 1.1 lpf-skype.spec, NONE, 1.1 skype.spec.in, NONE, 1.1

Simone Caronni slaanesh at rpmfusion.org
Thu Nov 21 11:50:28 CET 2013


Author: slaanesh

Update of /cvs/nonfree/rpms/lpf-skype/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv1624

Added Files:
	LICENSE README lpf-skype.spec skype.spec.in 
Log Message:
* Thu Nov 21 2013 Simone Caronni <negativo17 at gmail.com> - 4.2.0.11-5
- Remove skype-wrapper; is generated inside the spec file.
- Use description as close as possible to bundled spec file.
- Format README file.



--- NEW FILE LICENSE ---
THIS SOFTWARE IS PROVIDED 'AS-IS', WITHOUT ANY EXPRESS OR IMPLIED
WARRANTY.  IN NO EVENT WILL THE AUTHORS BE HELD LIABLE FOR ANY DAMAGES
ARISING FROM THE USE OF THIS SOFTWARE.

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely.



--- NEW FILE README ---
lpf-skype
=========

This is a lpf package. It's only use is to install another package, called the
target package. For lpf-skype, the target package is skype.

The package can be used in two ways:

In the GUI, you could find the lpf-skype icon. By clicking on it you will
download skype, build and install an rpm.

On the command line, you can use the lpf command, see lpf -h for usage. The
basic usage is

 $ lpf update

which does the same thing as clicking on the GUI icon.


--- NEW FILE lpf-skype.spec ---
# %%global will not work here, lazy evaluation needed.
%define         target_pkg %(t=%{name}; echo ${t#lpf-})

Name:           lpf-skype
Version:        4.2.0.11
Release:        5%{?dist}
Summary:        Skype Messaging and Telephony Client package bootstrap

License:        MIT
URL:            http://github.com/leamas/lpf
Group:          Development/Tools
BuildArch:      noarch
Source0:        skype.spec.in
Source1:        README
Source2:        LICENSE

BuildRequires:  desktop-file-utils
BuildRequires:  lpf
Requires:       lpf

BuildArch:      %{ix86}

%description
Bootstrap package allowing the lpf system to build the non-redistributable skype
package.


%prep
%setup -cT
cp %{SOURCE1} README
cp %{SOURCE2} LICENSE


%build


%install
# lpf-setup-pkg [eula] <topdir> <specfile> [sources...]
/usr/share/lpf/scripts/lpf-setup-pkg %{buildroot} %{SOURCE0}
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop


%post
DISPLAY= lpf scan 2>/dev/null || :

%postun
DISPLAY= lpf scan 2>/dev/null || :


%files
%doc README LICENSE
/usr/share/applications/%{name}.desktop
/usr/share/lpf/packages/%{target_pkg}
%attr(775,pkg-build,pkg-build) /var/lib/lpf/packages/%{target_pkg}
%attr(664,pkg-build,pkg-build) /var/lib/lpf/packages/%{target_pkg}/state


%changelog
* Thu Nov 21 2013 Simone Caronni <negativo17 at gmail.com> - 4.2.0.11-5
- Remove skype-wrapper; is generated inside the spec file.
- Use description as close as possible to bundled spec file.
- Format README file.

* Wed Nov 6 2013 Alec Leamas <leamas at nowhere.net> - 4.2.0.11-4
- Unset DISPLAY in snippets.
- Using lpf spec file from rpmfusiun request 2978 as spec.in.
- Reverting parts of .2 %%files fixes, %%exclude -> wrong permissions.

* Tue Nov 5 2013 Alec Leamas <leamas at nowhere.net> - 4.2.0.11-3
- Adding LICENSE
- Review remarks: %%files cleanup, URL: updated.

* Sun May 05 2013 Alec Leamas <leamas at nowhere.net> - 4.2.0.11-1
- Initial release


--- NEW FILE skype.spec.in ---
%define debug_package %{nil}
%define __spec_install_post /usr/lib/rpm/brp-compress

Name:           skype
Version:        4.2.0.11
Release:        8%{?dist}
Summary:        Skype Messaging and Telephony Client

License:        Skype End User License Agreement
URL:            http://www.skype.com/products/skype/linux/
# Download at:
# http://www.skype.com/intl/en/get-skype/on-your-computer/linux/downloading.dynamic
Source0:        http://download.skype.com/linux/%{name}-%{version}.tar.bz2

BuildRequires:  desktop-file-utils
Requires:       hicolor-icon-theme
Requires:       %{name}-data = %{version}-%{release}
# Needed for the welcome screen, not pulled in by dependencies
Requires:       webkitgtk%{_isa}

ExclusiveArch:  %{ix86}

%description
Millions of individuals and businesses use Skype to make free video and voice
calls, send instant messages and share files with other Skype users. Everyday,
people also use Skype to make low-cost calls to landlines and mobiles.

%package data
Summary:        Skype Messaging and Telephony Client data files
BuildArch:		noarch
Requires:       %{name} = %{version}-%{release}

%description data
This package contains icons, sounds and support files for the main Skype package.

%prep
%setup -q
cat << EOF > %{name}-wrapper
#!/bin/sh
PULSE_LATENCY_MSEC=30 skype-bin
EOF

%build
# Nothing to build

%install
# Fedora 20+ needs a wrapper for PulseAudio latency
mkdir -p %{buildroot}%{_sysconfdir}/prelink.conf.d/
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
install -p -D -m 755 %{name}-wrapper %{buildroot}%{_bindir}/%{name}
install -p -D -m 655 %{name} %{buildroot}%{_bindir}/%{name}-bin
echo "-b %{_bindir}/skype-bin" > %{buildroot}%{_sysconfdir}/prelink.conf.d/%{name}-%{_arch}.conf
%else
install -p -D -m 655 %{name} %{buildroot}%{_bindir}/%{name}
echo "-b %{_bindir}/skype" > %{buildroot}%{_sysconfdir}/prelink.conf.d/%{name}-%{_arch}.conf
%endif

install -p -D -m 644 %{name}.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/%{name}.conf

for size in 16 24 32 48 64 96 128 256; do
    install -p -D -m 644 icons/SkypeBlue_${size}x${size}.png \
        %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png
done

mkdir -p %{buildroot}%{_datadir}/%{name}
cp -afr sounds avatars lang %{buildroot}%{_datadir}/%{name}

sed -i -e 's/.png//g' %{name}.desktop
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop

%post data
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
update-mime-database /usr/share/mime &> /dev/null || :

%postun data
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
update-mime-database /usr/share/mime &> /dev/null || :

%posttrans data
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

%files
%config %{_sysconfdir}/prelink.conf.d/%{name}-%{_arch}.conf
%{_bindir}/%{name}
%if 0%{?fedora} >= 20
%{_bindir}/%{name}-bin
%endif

%files data
%doc LICENSE README third-party_attributions.txt
%config %{_sysconfdir}/dbus-1/system.d/%{name}.conf
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}

%changelog
* Wed Nov 20 2013 Simone Caronni <negativo17 at gmail.com> - 4.2.0.11-8
- Split main executable from data files (preparation for x86_64 binaries).

* Wed Nov 6 2013 Alec Leamas <leamas at nowhere.net>  - 4.2.0.11-7
- Importing spec from rpmfusion #2978 into lpf-skype package.
- Kudos Simone Caronni for writing that spec!
- Generate skype-wrapper in the spec file.
- Add -a to cp command.

* Mon Oct 21 2013 Simone Caronni <negativo17 at gmail.com> - 4.2.0.11-6
- Add webkitgtk as requirement; it's required by the welcome screen and not
  pulled in automatically.

* Thu Oct 10 2013 Simone Caronni <negativo17 at gmail.com> - 4.2.0.11-5
- Convert the profile to wrapper for Fedora 20.

* Tue Oct 08 2013 Simone Caronni <negativo17 at gmail.com> - 4.2.0.11-4
- Force PulseAudio latency in Fedora 20+ through an alias to the skype command
  in /etc/profile.d/.

* Fri Sep 20 2013 Simone Caronni <negativo17 at gmail.com> - 4.2.0.11-3
- Rpmlint fixes.

* Tue May 21 2013 Simone Caronni <negativo17 at gmail.com> - 4.2.0.11-2
- Added new icon sizes.

* Mon May 20 2013 Simone Caronni <negativo17 at gmail.com> - 4.2.0.11-1
- Update to 4.2.0.11.

* Thu Nov 15 2012 Simone Caronni <negativo17 at gmail.com> - 4.1.0.20-1
- Updated to 4.1.0.20.

* Thu Sep 06 2012 Simone Caronni <negativo17 at gmail.com> - 4.0.0.8-1
- Updated to 4.0.0.8.

* Thu Feb 16 2012 Simone Caronni <negativo17 at gmail.com> - 2.2.0.35-3
- Removed main binary from prelinking.

* Thu Feb 09 2012 Simone Caronni <negativo17 at gmail.com> - 2.2.0.35-2
- Do not strip debuginfo.

* Tue Dec 20 2011 Simone Caronni <negativo17 at gmail.com> - 2.2.0.35-1
- First build.


More information about the rpmfusion-commits mailing list