All pastes #57999 Raw Edit

jeffery

public text v1 · immutable
#57999 ·published 2006-05-22 12:40 UTC
rendered paste body

%define name	libtorrent
%define version	0.9.1
%define release	%mkrel 1

%define _docdir	 %_datadir/doc


Summary     	: libtorrent is a C++ bittorrent library.
Name			: %{name}
Version			: %{version}
Release			: %{release}
License			: GPL
Group       	: Development/C++
Source0			: http://www.rasterbar.com/products/libtorrent/libtorrent-0.9.1.tar.bz2
URL				: http://www.rasterbar.com
BuildRequires	: boost
BuildRoot		:  %_tmppath/%name-%version-%release-root

%description
libtorrent is a C++ library that aims to be a good alternative 
to all the other bittorrent implementations around.



%package -n %{name}-devel
Group:      Development/C++
Summary:    Devel files for %{name}
Requires:   %{name}
%description -n %{name}-devel
Devel files for %{name}


%prep
%setup

%build
%configure --prefix=%_prefix
%make

%install
%makeinstall

# Create directories for the package 
install -d %{buildroot}/%_includedir/%{name}
install -d %{buildroot}/%_libdir/pkgconfig
install -d %{buildroot}/%{_docdir}/%{name}-%{version}/docs/

%clean
rm -rf %{buildroot}


%files
# The binaries
%_bindir/*

%defattr(0644, root, root, 0755)

# Documentation
%doc README AUTHORS INSTALL COPYING ChangeLog NEWS
%{_docdir}/%{name}-%{version}/docs/client_test.html
%{_docdir}/%{name}-%{version}/docs/client_test.png
%{_docdir}/%{name}-%{version}/docs/client_test.rst
%{_docdir}/%{name}-%{version}/docs/extension_protocol.html
%{_docdir}/%{name}-%{version}/docs/extension_protocol.rst
%{_docdir}/%{name}-%{version}/docs/manual.html
%{_docdir}/%{name}-%{version}/docs/manual.rst
%{_docdir}/%{name}-%{version}/docs/style.css
%{_docdir}/%{name}-%{version}/docs/udp_tracker_protocol.html
%{_docdir}/%{name}-%{version}/docs/udp_tracker_protocol.rst
%{_docdir}/%{name}-%{version}/docs/unicode_support.png


# Devel Package
%files -n %name-devel
%defattr(-,root,root,-)
%dir %_includedir/%{name}/
%_includedir/%{name}/*.hpp
%_libdir/%{name}.*
%_libdir/pkgconfig/libtorrent.pc


################# Failure ####################
Processing files: libtorrent-devel-0.9.1-0.1.20060mdk
Finding  Provides: /usr/lib/rpm/mandriva/filter.sh ' ' /usr/lib/rpm/mandriva/find-provides
Using BuildRoot: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root to search libs
Finding  Requires: /usr/lib/rpm/mandriva/filter.sh ' ' /usr/lib/rpm/mandriva/find-requires /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root i586
Provides: libtorrent.so.0 devel(libtorrent)
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1


RPM build errors:
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/client_test.html
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/client_test.png
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/client_test.rst
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/extension_protocol.html
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/extension_protocol.rst
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/manual.html
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/manual.rst
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/style.css
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/udp_tracker_protocol.html
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/udp_tracker_protocol.rst
    File not found: /home/jeffery/redhat/tmp/libtorrent-0.9.1-0.1.20060mdk-root/usr/share/doc/libtorrent-0.9.1/docs/unicode_support.png