2006-03-21 20:48:22 +00:00
|
|
|
%define source_name loki
|
|
|
|
Name: %{source_name}-lib
|
2006-02-27 00:15:01 +00:00
|
|
|
Summary: Loki C++ Library
|
|
|
|
Version: 0.1.4
|
2006-03-21 20:48:22 +00:00
|
|
|
Release: 2
|
2006-02-27 00:15:01 +00:00
|
|
|
License: MIT License
|
|
|
|
Group: Productivity/Development
|
2006-03-21 20:48:22 +00:00
|
|
|
URL: http://sourceforge.net/projects/loki-lib
|
2006-02-27 00:15:01 +00:00
|
|
|
Distribution: SuSE 10.0 (i586)
|
2006-03-21 20:48:22 +00:00
|
|
|
Source0: http://prdownloads.sourceforge.net/loki-lib/%{source_name}-%{version}.tar.gz
|
2006-02-27 00:15:01 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
BuildArch: i586
|
|
|
|
|
2006-03-21 20:48:22 +00:00
|
|
|
%package devel
|
|
|
|
Summary: The Loki C++ headers and development libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: The Loki C++ html docs
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
2006-02-27 00:15:01 +00:00
|
|
|
%description
|
|
|
|
A C++ library of designs, containing flexible implementations of common design
|
|
|
|
patterns and idioms.
|
|
|
|
|
2006-03-21 20:48:22 +00:00
|
|
|
%description devel
|
|
|
|
Headers, static libraries, and shared object symlinks for the Loki C++ Library
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
HTML documentation files for the Loki C++ Library
|
|
|
|
|
2006-02-27 00:15:01 +00:00
|
|
|
%prep
|
2006-03-21 20:48:22 +00:00
|
|
|
%setup -n %{source_name}-%{version} -q
|
2006-02-27 00:15:01 +00:00
|
|
|
|
|
|
|
%build
|
2006-03-21 20:48:22 +00:00
|
|
|
make build-static build-shared
|
2006-02-27 00:15:01 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/include
|
2006-03-21 20:48:22 +00:00
|
|
|
cp -a include/%{source_name} $RPM_BUILD_ROOT/usr/include
|
2006-02-27 00:15:01 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib
|
2006-03-21 20:48:22 +00:00
|
|
|
cp -a lib/lib%{source_name}.* $RPM_BUILD_ROOT/usr/lib
|
|
|
|
(cd $RPM_BUILD_ROOT/usr/lib && ln -s lib%{source_name}.so.%{version} lib%{source_name}.so)
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
|
|
|
|
cp -a doc/{flex,html,yasli} $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
|
2006-02-27 00:15:01 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
2006-03-21 20:48:22 +00:00
|
|
|
%defattr(755,root,root)
|
|
|
|
/usr/lib/lib%{source_name}.so
|
|
|
|
/usr/lib/lib%{source_name}.so.%{version}
|
|
|
|
|
|
|
|
%files devel
|
2006-02-27 00:15:01 +00:00
|
|
|
%defattr(644,root,root,755)
|
2006-03-21 20:48:22 +00:00
|
|
|
/usr/include/%{source_name}
|
|
|
|
/usr/lib/lib%{source_name}.a
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(644,root,root)
|
|
|
|
%doc /usr/share/doc/%{name}-%{version}
|
2006-02-27 00:15:01 +00:00
|
|
|
|
2006-03-21 20:48:22 +00:00
|
|
|
%post -p /sbin/ldconfig
|
2006-02-27 00:15:01 +00:00
|
|
|
|
2006-03-21 20:48:22 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
2006-02-27 00:15:01 +00:00
|
|
|
|
|
|
|
%changelog
|
2006-03-21 20:48:22 +00:00
|
|
|
* Thu Mar 16 2006 Regis Desgroppes <rdesgroppes@besancon.parkeon.com>
|
|
|
|
- Renamed package to loki-lib (SourceForge project name) as there is another package named loki (Biology)
|
|
|
|
- Created devel and doc subpackages
|
|
|
|
- Also building shared library
|
|
|
|
- Removed LF chars so that rpmbuild generated scriptlets work
|
|
|
|
|
2006-02-27 00:15:01 +00:00
|
|
|
* Mon Jan 06 2006 Andreas Scherer <andreas_hacker@freenet.de>
|
|
|
|
- Initial build
|