1 %define source_name loki
2 Name: %{source_name}-lib
3 Summary: Loki C++ Library
7 Group: Productivity/Development
8 URL: http://sourceforge.net/projects/loki-lib
9 Distribution: SuSE 10.2 (i586)
10 Source0: http://prdownloads.sourceforge.net/loki-lib/%{source_name}-%{version}.tar.gz
11 BuildRoot: %{_tmppath}/%{name}-%{version}-root
15 Summary: The Loki C++ headers and development libraries
16 Group: System Environment/Libraries
19 Summary: The Loki C++ html docs
20 Group: System Environment/Libraries
23 A C++ library of designs, containing flexible implementations of common design
27 Headers, static libraries, and shared object symlinks for the Loki C++ Library
30 HTML documentation files for the Loki C++ Library
33 %setup -n %{source_name}-%{version} -q
36 make build-static build-shared
39 rm -rf $RPM_BUILD_ROOT
40 mkdir -p $RPM_BUILD_ROOT/usr/include
41 cp -a include/%{source_name} $RPM_BUILD_ROOT/usr/include
42 mkdir -p $RPM_BUILD_ROOT/usr/lib
43 cp -a lib/lib%{source_name}.* $RPM_BUILD_ROOT/usr/lib
44 (cd $RPM_BUILD_ROOT/usr/lib && ln -s lib%{source_name}.so.%{version} lib%{source_name}.so)
45 mkdir -p $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
46 cp -a doc/{flex,html,yasli} $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(755,root,root)
53 /usr/lib/lib%{source_name}.so
54 /usr/lib/lib%{source_name}.so.%{version}
57 %defattr(644,root,root,755)
58 /usr/include/%{source_name}
59 /usr/lib/lib%{source_name}.a
62 %defattr(644,root,root)
63 %doc /usr/share/doc/%{name}-%{version}
65 %post -p /sbin/ldconfig
67 %postun -p /sbin/ldconfig
70 * Thu Mar 16 2006 Regis Desgroppes <rdesgroppes@besancon.parkeon.com>
71 - Renamed package to loki-lib (SourceForge project name) as there is another package named loki (Biology)
72 - Created devel and doc subpackages
73 - Also building shared library
74 - Removed LF chars so that rpmbuild generated scriptlets work
76 * Mon Jan 06 2006 Andreas Scherer <andreas_hacker@freenet.de>