Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > f165701ab8ca9fc2c60beec19a2ce9a2 > files > 3

listtools-1.0-8mdv2008.0.src.rpm

%define lib_major                       0
%define lib_name_orig                   %mklibname p2p
%define lib_name_orig_devel             %mklibname p2p -d
%define lib_name_orig_static_devel      %mklibname p2p -d -s
%define lib_name                        %mklibname p2p %{lib_major}
%define lib_name_devel                  %mklibname p2p %{lib_major} -d
%define lib_name_static_devel           %mklibname p2p %{lib_major} -d -s

Name:           listtools
Version:        1.0
Release:        %mkrel 8
Epoch:          0
Summary:        P2P List Library
URL:            http://peerguardian.sourceforge.net/
Source0:        %{name}-%{version}.tar.bz2
Patch0:         %{name}-unix.patch
License:        BSD-style
Group:          System/Libraries
BuildRequires:  doxygen
BuildRequires:  libboost-devel
BuildRequires:  libmysql-devel
BuildRequires:  tetex
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
P2P List Library.

%package -n %{lib_name}
Summary:        Main library for the libp2p library
Group:          System/Libraries

%description -n %{lib_name}
This package contains the libraries needed to run programs dynamically
linked with the libp2p library.

%package -n %{lib_name_devel}
Group:          Development/C++
Summary:        Shared libraries and header files for the libp2p library
Provides:       %{name}-devel = %{epoch}:%{version}-%{release}
Provides:       %{lib_name_orig_devel} = %{epoch}:%{version}-%{release}
Requires:       %{lib_name} = %{epoch}:%{version}-%{release}

%description -n %{lib_name_devel}
The %{name} package contains the shared libraries and header files
needed for developing libp2p applications.

%package -n %{lib_name_static_devel}
Group:          Development/C++
Summary:        Static libraries for the libp2p library
Provides:       %{lib_name_orig_static_devel} = %{epoch}:%{version}-%{release}
Requires:       %{lib_name_devel} = %{epoch}:%{version}-%{release}

%description -n %{lib_name_static_devel}
The %{name} package contains the static libraries needed for developing
libp2p applications.

%prep
%setup -q -n %{name}
%patch0 -p1
%{_bindir}/autoreconf -f --verbose -i

%build
%{configure2_5x}
%{make}
%{make} doxygen-doc

%install
%{__rm} -rf %{buildroot}
%{makeinstall}

%check
%{make} check

%clean
%{__rm} -rf %{buildroot}

%post -n %{lib_name} -p /sbin/ldconfig

%postun -n %{lib_name} -p /sbin/ldconfig

%files
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/dumpp2p
%attr(0755,root,root) %{_bindir}/filterp2p
%attr(0755,root,root) %{_bindir}/genallow
%attr(0755,root,root) %{_bindir}/mergep2p

%files -n %{lib_name}
%defattr(0644,root,root,0755)
%doc p2b.txt
%attr(0755,root,root) %{_libdir}/libp2p.so.*

%files -n %{lib_name_devel}
%defattr(0644,root,root,0755)
%doc Docs/html
%dir %{_includedir}/p2p
%{_includedir}/p2p/*.hpp
%attr(0755,root,root) %{_libdir}/libp2p.so
%attr(0755,root,root) %{_libdir}/libp2p.la
%{_libdir}/pkgconfig/libp2p.pc

%files -n %{lib_name_static_devel}
%defattr(0644,root,root,0755)
%{_libdir}/libp2p.a


%changelog
* Wed May 23 2007 David Walluck <walluck@mandriva.org> 1.0-8mdv2008.0
+ Revision: 30400
- update summary and description
- fix doxygen-generated documentation

* Wed May 23 2007 David Walluck <walluck@mandriva.org> 0:1.0-7mdv2008.0
+ Revision: 30051
- set doxygen INPUT to libp2p/src

* Wed May 23 2007 David Walluck <walluck@mandriva.org> 0:1.0-6mdv2008.0
+ Revision: 29984
- build doxygen using Makefile (which incorrectly forces latex)
- fix output file
- better file for AC_CONFIG_SRCDIR
- fix .pc.in Name and Description
- fix dumpp2p argument handling

* Tue May 22 2007 David Walluck <walluck@mandriva.org> 0:1.0-4mdv2008.0
+ Revision: 29694
- fix BuildRoot
- build API documentation

* Tue May 22 2007 David Walluck <walluck@mandriva.org> 0:1.0-2mdv2008.0
+ Revision: 29647
- add -Wall option

* Tue May 22 2007 David Walluck <walluck@mandriva.org> 0:1.0-1mdv2008.0
+ Revision: 29637
- Import listtools



* Mon May 21 2007 David Walluck <walluck@mandriva.org> 0:1.0-1mdv2008.0
- release