1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
%define name @PACKAGE@
%define version @VERSION@
%define release 1
%define libsuffix @SKSTREAM_LIB_SUFFIX@
Summary: An iostream socket library.
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: System Environment/Libraries
URL: http://www.worldforge.org/dev/eng/libraries/skstream
Packager: Al Riddoch <alriddoch@zepler.org>
Vendor: WorldForge
Distribution: Mason
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
%{name} is an iostream based socket library in C++. It is based on
the Freesockets library, and has been packaged for use by WorldForge.
%package devel
Summary: An iostream socket library headers and static libs.
Group: Development/Libraries
Requires: %{name} = %{version} libstdc++-devel
%description devel
%{name} is an iostream based socket library in C++. It is based on
the Freesockets library, and has been packaged for use by WorldForge.
%prep
%setup -q
%build
CXXFLAGS=$RPM_OPT_FLAGS %configure --enable-static
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%doc README COPYING AUTHORS NEWS ChangeLog
%files devel
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_libdir}/lib*.a
%{_libdir}/pkgconfig/*
%{_includedir}/%{name}%{libsuffix}
%{_libdir}/%{name}%{libsuffix}
|