update loki.spec, thx to Regis Desgroppes and Andreas Scherer

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@612 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-03-21 20:48:22 +00:00
parent 1138dc9878
commit 6cd11abc10

View file

@ -1,47 +1,77 @@
Name: loki %define source_name loki
Name: %{source_name}-lib
Summary: Loki C++ Library Summary: Loki C++ Library
Version: 0.1.4 Version: 0.1.4
Release: 1 Release: 2
License: MIT License License: MIT License
Group: Productivity/Development Group: Productivity/Development
URL: http://prdownloads.sourceforge.net/loki-lib/loki-0.1.4.tar.gz URL: http://sourceforge.net/projects/loki-lib
Distribution: SuSE 10.0 (i586) Distribution: SuSE 10.0 (i586)
Source0: %{name}-%{version}.tar.gz Source0: http://prdownloads.sourceforge.net/loki-lib/%{source_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: i586 BuildArch: i586
%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
%description %description
A C++ library of designs, containing flexible implementations of common design A C++ library of designs, containing flexible implementations of common design
patterns and idioms. patterns and idioms.
%description devel
Headers, static libraries, and shared object symlinks for the Loki C++ Library
%description doc
HTML documentation files for the Loki C++ Library
%prep %prep
%setup -q %setup -n %{source_name}-%{version} -q
%build %build
make make build-static build-shared
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/include mkdir -p $RPM_BUILD_ROOT/usr/include
cp -a include/loki $RPM_BUILD_ROOT/usr/include cp -a include/%{source_name} $RPM_BUILD_ROOT/usr/include
mkdir -p $RPM_BUILD_ROOT/usr/lib mkdir -p $RPM_BUILD_ROOT/usr/lib
cp lib/libloki.a $RPM_BUILD_ROOT/usr/lib/libloki.a cp -a lib/lib%{source_name}.* $RPM_BUILD_ROOT/usr/lib
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/loki-%{version} (cd $RPM_BUILD_ROOT/usr/lib && ln -s lib%{source_name}.so.%{version} lib%{source_name}.so)
cp -a doc/{flex,html,yasli} $RPM_BUILD_ROOT/usr/share/doc/loki-%{version} mkdir -p $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
cp -a doc/{flex,html,yasli} $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(755,root,root)
/usr/lib/lib%{source_name}.so
/usr/lib/lib%{source_name}.so.%{version}
%files devel
%defattr(644,root,root,755) %defattr(644,root,root,755)
/usr/include/loki /usr/include/%{source_name}
/usr/lib/libloki.a /usr/lib/lib%{source_name}.a
/usr/share/doc/loki-%{version}
%post %files doc
%defattr(644,root,root)
%doc /usr/share/doc/%{name}-%{version}
%postun %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog %changelog
* 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
* Mon Jan 06 2006 Andreas Scherer <andreas_hacker@freenet.de> * Mon Jan 06 2006 Andreas Scherer <andreas_hacker@freenet.de>
- Initial build - Initial build