# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: linux1g1g
Version: 0.9
Release: 2
License: GPL-3.0
Summary: 1g1g client for linux
Url: http://www.1g1g.com/
Group: Productivity/Multimedia/Sound/Players
Source: %{name}-%{version}.tar.bz2
BuildRequires: libqt4
BuildRequires: libqt4-devel
BuildRequires: libQtWebKit-devel
BuildRequires: libQtWebKit4
Provides: linux1g1 = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch1: 0001-add-system-tray.patch
Patch2: 0002-add-desktop-entry-optimize-installation.patch
%description
Linux 1g1g is a desktop application for 1g1g.com
Linux1g1g is a desktop application for linux user
to listen to 1g1g.com without opening a browser.
It is based on Qt and Webkit and developed by
two fans of 1g1g.com
Visit www.1g1g.com and you will like it.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
/usr/bin/qmake
make %{?_smp_mflags}
%install
make INSTALL_ROOT=%{buildroot} install
%post
%postun
%files
%defattr(-,root,root)
%doc README debian/copyright debian/changelog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog
rpmlint -i linux1g1g-0.9-2.x86_64.rpm
linux1g1g.x86_64: E: useless-provides linux1g1g
This package provides 2 times the same capacity. It should only provide it
once.
linux1g1g.x86_64: W: no-manual-page-for-binary linux1g1g
Each executable in standard binary directories should have a man page.
1 packages and 0 specfiles checked; 1 errors, 1 warnings.
这个 useless-provides 和 This package provides 2 times the same capacity 是什么情况?
rpm -ql linux1g1g
package linux1g1g is not installed
whereis linux1g1g
linux1g1g:
ls /usr/bin/linux1g1g
ls: cannot access /usr/bin/linux1g1g: No such file or directory
ls /usr/bin/X11/linux1g1g
ls: cannot access /usr/bin/X11/linux1g1g: No such file or directory
zypper if linux1g1g
Loading repository data...
Reading installed packages...
Information for package linux1g1g:
Repository: myrepo
Name: linux1g1g
Version: 0.9-8.1
Arch: x86_64
Vendor: obs://build.opensuse.org/home:xtzh
Installed: No
Status: not installed
Installed Size: 40.2 KiB
Summary: 1g1g client for linux
Description:
Linux 1g1g is a desktop application for 1g1g.com
Linux1g1g is a desktop application for linux user
to listen to 1g1g.com without opening a browser.
It is based on Qt and Webkit and developed by
two fans of 1g1g.com
Visit www.1g1g.com and you will like it.
3,安装:
sudo zypper in linux1g1g
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
linux1g1g
1 new package to install.
Overall download size: 17.5 KiB. After the operation, additional 40.2 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package linux1g1g-0.9-8.1.x86_64 (1/1), 17.5 KiB ( 40.2 KiB unpacked)
Retrieving: linux1g1g-0.9-8.1.x86_64.rpm ..................................................................................................................................................................................[done]
(1/1) Installing: linux1g1g-0.9-8.1 .......................................................................................................................................................................................[done]
rpm -qf /usr/bin/X11/linux1g1g
linux1g1g-0.9-8.1.x86_64
rpm -qf /usr/bin/linux1g1g
linux1g1g-0.9-8.1.x86_64
rpm -ql linux1g1g
/usr/bin/linux1g1g
/usr/share/applications/linux1g1g.desktop
/usr/share/doc/packages/linux1g1g
/usr/share/doc/packages/linux1g1g/README
/usr/share/doc/packages/linux1g1g/changelog
/usr/share/doc/packages/linux1g1g/copyright
/usr/share/pixmaps/linux1g1g.png
zypper if linux1g1g
Loading repository data...
Reading installed packages...
Information for package linux1g1g:
Repository: myrepo
Name: linux1g1g
Version: 0.9-8.1
Arch: x86_64
Vendor: obs://build.opensuse.org/home:xtzh
Installed: Yes
Status: up-to-date
Installed Size: 40.2 KiB
Summary: 1g1g client for linux
Description:
Linux 1g1g is a desktop application for 1g1g.com
Linux1g1g is a desktop application for linux user
to listen to 1g1g.com without opening a browser.
It is based on Qt and Webkit and developed by
two fans of 1g1g.com
Visit http://www.1g1g.com and you will like it.
linux1g1g.x86_64: W: no-manual-page-for-binary linux1g1g
Each executable in standard binary directories should have a man page.
2 packages and 0 specfiles checked; 0 errors, 1 warnings.