File: freefem.spec.in

package info (click to toggle)
freefem 3.5.8-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 2,456 kB
  • sloc: cpp: 10,323; sh: 10,270; perl: 121; makefile: 120
file content (142 lines) | stat: -rw-r--r-- 3,628 bytes parent folder | download | duplicates (8)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
%define name freefem
%define version @VERSION@
%define prefix %{_prefix}
%define lib_name libfem
%define release 1


Name: %{name}
Summary: OOA and OOD for Linux
Version: %{version}
Release: 1
Epoch: 2
Source: http://dowload.sourceforge.net/kfem/freefem-%{version}.tar.gz
URL: http://corelinux.sourceforge.net
Group: System Environment/Libraries
Packager: Christophe Prud'homme <prudhomm@users.sourceforge.net>
License: LGPL
BuildRoot: /var/tmp/%{name}-buildroot
Requires: libfem = %{version}

%description
OOA and OOD for Linux dynamic libraries.

This package provides the shared libraries for corelinux
so that you can run any corelinux based code on the machine.

OOA: Object Oriented Analysis
OOD: Object Oriented Design
check http://corelinux.sourceforge.net

%package examples
Group: Development/Libraries
Summary: Examples for freefem
Requires: freefem = %{version}

%description examples
OOA and OOD for Linux: examples. 

This package provides examples for corelinux.

OOA: Object Oriented Analysis
OOD: Object Oriented Design
check http://corelinux.sourceforge.net

%package -n libfem
Group: Development/Libraries
Summary: shared libraries

%description -n libfem
OOA and OOD for Linux development kit. 

This package provides the include files, the manpages
and the static library for development with corelinux.

OOA: Object Oriented Analysis
OOD: Object Oriented Design
check http://corelinux.sourceforge.net


%package -n libfem-dev
Group: Development/Libraries
Summary: Header files, static library and manual pages for freefem
Requires: freefem = %{version}

%description -n libfem-dev
OOA and OOD for Linux development kit. 

This package provides the include files, the manpages
and the static library for development with corelinux.

OOA: Object Oriented Analysis
OOD: Object Oriented Design
check http://corelinux.sourceforge.net



%prep
%setup -q
make -f Makefile.dist

%build
./configure
make -j 2

# create the reference manual
(rm -rf doc/html doc/latex doc/man && cd doc && doxygen fem.cfg)
(cd doc/latex && for i in *.eps; do epstopdf $i; done)
(mkdir doc/ps)
(mkdir doc/pdf)
(cd doc/latex && make pdf && mv refman.pdf ../pdf/fem-ref.pdf && mv refman.ps ../ps/fem-ref.ps)
(gzip doc/ps/fem-ref.ps)
(gzip doc/pdf/fem-ref.pdf)

# the manual pages
(mkdir -p $RPM_BUILD_ROOT%{prefix}/man/man3)
(cp -r doc/man/* $RPM_BUILD_ROOT%{prefix}/man/man3)

# the examples
(mkdir -p examples)
(find src/testdrivers -name "*.pde" | xargs -ifilename cp filename examples)


%install

# install all the stuff
(cd lib/fem && make install prefix=$RPM_BUILD_ROOT%{prefix}  includedir=$RPM_BUILD_ROOT%{prefix}/include/fem)
(cd freefem && make install prefix=$RPM_BUILD_ROOT%{prefix}  includedir=$RPM_BUILD_ROOT%{prefix}/include/fem)

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
# remove BuildRoot
rm -rf $RPM_BUILD_ROOT
# we are in /usr/src/redhat/BUID/%{name}-%{version} and we want to delete it
cd .. && rm -rf %{name}-%{version}

%files 
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LIB README NEWS ChangeLog  README.emacs debian/README.Redhat
%attr(755,root,root) %{_bindir}/%{name}

%files -n libfem
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LIB README NEWS ChangeLog  README.emacs debian/README.Redhat
%attr(755,root,root) %{_libdir}/%{lib_name}.so*

%files -n libfem-dev
%defattr(-,root,root)
%{_includedir}/fem/*
%{_libdir}/%{lib_name}.a
%{_libdir}/%{lib_name}.la
%doc debian/README.Redhat

%files examples
%defattr(-,root,root)
%doc examples debian/README.examples debian/README.Redhat
 
%changelog
* Thu Jul  27 2000  Christophe Prud'homme <prudhomm@users.sourceforge.net>
- initial