-
Notifications
You must be signed in to change notification settings - Fork 5
/
tinysvm.spec.in
77 lines (59 loc) · 1.45 KB
/
tinysvm.spec.in
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
%define prefix /usr
%define version @VERSION@
Summary: TinySVM is a small and fast SVM package
Name: TinySVM
Version: %{version}
Release: 1
Copyright: LGPL
Group: local
Packager: Taku Kudoh <[email protected]>
Source: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/TinySVM
%description
TinySVM is a small and fast SVM package
%package devel
Summary: Libraries and header files for TinySVM
Group: Development/Libraries
Requires: TinySVM = %{version}
%package perl
Summary: TinySVM Perl Module
Group: Development/Libraries
Requires: perl >= 5.6 TinySVM = %{version}
%description devel
Libraries and header files for TinySVM
%description perl
TinySVM Perl Module
%prep
%setup
%build
./configure --prefix=%{prefix}
make CFLAGS="$RPM_OPT_FLAGS"
cd src
ln -s . TinySVM
cd ../perl
perl Makefile.PL
make INC="-I../src -I%{prefix}/include -I/usr/include" LCFLAGS="$RPM_OPT_FLAGS" LDDLFLAGS="-shared -Wl,-rpath -Wl,%{prefix}/lib -L../src/.libs -ltinysvm"
cd ..
rm -f src/TinySVM
%install
make prefix=$RPM_BUILD_ROOT%{prefix} install
cd perl
make PREFIX=$RPM_BUILD_ROOT%{prefix} INSTALLMAN3DIR=$RPM_BUILD_ROOT%{prefix}/man/man3 install
cd ..
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc doc/*.html doc/*.css
%{prefix}/lib/*.so.*
%{prefix}/bin/*
%{prefix}/man/man1/*
%files devel
%defattr(-, root, root)
%{prefix}/include/*
%{prefix}/lib/*.so
%{prefix}/lib/*.a
%{prefix}/lib/*.la
%files perl
%defattr(-, root, root)
%{prefix}/lib/perl5/site_perl/*