-
Notifications
You must be signed in to change notification settings - Fork 2
/
loki.spec
executable file
·77 lines (61 loc) · 2.08 KB
/
loki.spec
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
%define source_name loki
Name: %{source_name}-lib
Summary: Loki C++ Library
Version: 0.1.6
Release: 2
License: MIT License
Group: Productivity/Development
URL: http://sourceforge.net/projects/loki-lib
Distribution: SuSE 10.2 (i586)
Source0: http://prdownloads.sourceforge.net/loki-lib/%{source_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
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
A C++ library of designs, containing flexible implementations of common design
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
%setup -n %{source_name}-%{version} -q
%build
make build-static build-shared
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/include
cp -a include/%{source_name} $RPM_BUILD_ROOT/usr/include
mkdir -p $RPM_BUILD_ROOT/usr/lib
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}
%clean
rm -rf $RPM_BUILD_ROOT
%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)
/usr/include/%{source_name}
/usr/lib/lib%{source_name}.a
%files doc
%defattr(644,root,root)
%doc /usr/share/doc/%{name}-%{version}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Thu Mar 16 2006 Regis Desgroppes <[email protected]>
- 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 <[email protected]>
- Initial build