SPECS: fftw++.spec - actually build library - removed LICENSE from...
qboosh
qboosh at pld-linux.org
Sun Jun 26 19:05:56 CEST 2005
Author: qboosh Date: Sun Jun 26 17:05:56 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- actually build library
- removed LICENSE from doc (just GPL text)
---- Files affected:
SPECS:
fftw++.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/fftw++.spec
diff -u SPECS/fftw++.spec:1.3 SPECS/fftw++.spec:1.4
--- SPECS/fftw++.spec:1.3 Sun Jun 26 18:48:46 2005
+++ SPECS/fftw++.spec Sun Jun 26 19:05:50 2005
@@ -12,13 +12,14 @@
URL: http://www.math.ualberta.ca/imaging/fftw++/
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: fftw3-devel
BuildRequires: libstdc++-devel
-Requires: fftw3
+BuildRequires: libtool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
FFTW++ is a C++ header class for version 3 of the highly optimized
-FFTW Fourier Transform library.
+FFTW Fast Fourier Transform library.
%description -l pl
FFTW++ jest biblioteką klas napisaną w C++ dla wersji 3 biblioteki
@@ -29,20 +30,34 @@
Summary(pl): Pliki programistyczne do fftw++
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: fftw3-devel
+Requires: libstdc++-devel
%description devel
This package contains the files you need to develop programs using the
-FFTW++ (fast fourier transform library).
+FFTW++ (Fast Fourier Transform library).
%description devel -l pl
Ten pakiet zawiera pliki potrzebne do tworzenia programów używających
biblioteki FFTW++ (wykonującej szybką transformatę Fouriera).
+%package static
+Summary: Static fftw++ library
+Summary(pl): Statyczna biblioteka fftw++
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static fftw++ library.
+
+%description static -l pl
+Statyczna biblioteka fftw++.
+
%package examples
Summary: Example files for fftw++
-Summary(pl): Przykłądy programistyczne do fftw++
+Summary(pl): Przykłady programistyczne do fftw++
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
%description examples
Examples how to use fftw++.
@@ -53,25 +68,41 @@
%prep
%setup -q
+%build
+libtool --mode=compile --tag CXX %{__cxx} %{rpmcxxflags} -fPIC -o fftw++.lo -c fftw++.cc
+libtool --mode=link --tag CXX %{__cxx} -o libfftw++.la -rpath %{_libdir} fftw++.lo -lfftw3
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_includedir}/fftw++,%{_examplesdir}/%{name}-%{version}}
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/fftw++,%{_examplesdir}/%{name}-%{version}}
-install fftw++.* $RPM_BUILD_ROOT%{_includedir}/fftw++
+libtool --mode=install install libfftw++.la $RPM_BUILD_ROOT%{_libdir}
+
+install fftw++.h $RPM_BUILD_ROOT%{_includedir}/fftw++
install %{SOURCE1} $RPM_BUILD_ROOT%{_includedir}/fftw++
-install example*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install example*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
-%doc README LICENSE
+%doc README
+%attr(755,root,root) %{_libdir}/libfftw++.so.*.*.*
%files devel
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libfftw++.so
+%{_libdir}/libfftw++.la
%{_includedir}/fftw++
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libfftw++.a
+
%files examples
%defattr(644,root,root,755)
%{_examplesdir}/%{name}-%{version}
@@ -82,6 +113,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2005/06/26 17:05:50 qboosh
+- actually build library
+- removed LICENSE from doc (just GPL text)
+
Revision 1.3 2005/06/26 16:48:46 darekr
- typo
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/fftw++.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list