-
Notifications
You must be signed in to change notification settings - Fork 8
/
clipsmm.spec.m4
165 lines (126 loc) · 5.59 KB
/
clipsmm.spec.m4
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
%define clipsver 6.24
Summary: C++ interface to the CLIPS expert system C library
Name: clipsmm
Version: PACKAGE_VERSION
Release: 1%{?dist}
License: GPLv3
URL: http://clipsmm.sourceforge.net
Group: System Environment/Libraries
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-doc.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: clips-devel >= %{clipsver}
BuildRequires: glibmm24-devel >= 2.6.0
BuildRequires: cppunit-devel >= 1.11
BuildRequires: pkgconfig
BuildRequires: m4
%description
The clipsmm library provides a C++ interface to the CLIPS C library.
CLIPS (C Language Integrated Production System) is an expert system
development tool which provides a complete environment for the
construction of rule and/or object based expert systems.
Created in 1985 by NASA at the Johnson Space Center, CLIPS is now
widely used throughout the government, industry, and academia.
%package devel
Summary: Headers for developing C++ applications with CLIPS
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: clips-devel >= %{clipsver}
Requires: glibmm24-devel >= 2.6.0
Requires: pkgconfig
%description devel
This package contains the libraries and header files needed for
developing clipsmm applications.
clipsmm provides a C++ interface to the CLIPS C library.
CLIPS (C Language Integrated Production System) is an expert system
development tool which provides a complete environment for the
construction of rule and/or object based expert systems.
Created in 1985 by NASA at the Johnson Space Center, CLIPS is now
widely used throughout the government, industry, and academia.
%package doc
Summary: Documentation for the C++ clipsmm library
Group: Documentation
Requires: gtk-doc
Requires: devhelp
%if 0%{?fedora} > 9 || 0%{?rhel} > 5
BuildArch: noarch
%endif
%description doc
This package contains developer's documentation for the clipsmm
library. clipsmm provides C++ based bindings for the C based
CLIPS library.
The documentation can be viewed either through the devhelp
documentation browser or through a web browser.
If using a web browser the documentation is installed in the gtk-doc
hierarchy and can be found at /usr/share/gtk-doc/html/clipsmm-API_VERSION
CLIPS (C Language Integrated Production System) is an expert system
development tool which provides a complete environment for the
construction of rule and/or object based expert systems.
Created in 1985 by NASA at the Johnson Space Center, CLIPS is now
widely used throughout the government, industry, and academia.
%prep
%setup -q -b 1
%build
%configure --enable-static=no
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__make} DESTDIR=%{buildroot} INSTALL="%{__install} -p" install
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
%{__mkdir} -p %{buildroot}%{_datadir}/gtk-doc/html/clipsmm-API_VERSION/reference/html/
%{__install} -p --mode=0664 -t %{buildroot}%{_datadir}/gtk-doc/html/clipsmm-API_VERSION/reference/html/ doc/reference/html/*
%{__install} -p --mode=0664 -t %{buildroot}%{_datadir}/gtk-doc/html/clipsmm-API_VERSION/ doc/clipsmm-API_VERSION.devhelp
%clean
%{__rm} -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libclipsmm.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root,-)
%{_libdir}/libclipsmm.so
%{_libdir}/pkgconfig/clipsmm-PKGCONFIG_VERSION.pc
%{_includedir}/clipsmm-PACKAGE_RELEASE/
%doc ChangeLog
%files doc
%defattr(-,root,root,-)
%doc %{_datadir}/gtk-doc/html/clipsmm-API_VERSION/
%changelog
* Mon Jul 27 2009 Rick L Vinyard Jr <[email protected]> - 0.1.0-1
- New release
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 0.0.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Feb 24 2009 Fedora Release Engineering <[email protected]> - 0.0.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Mar 03 2008 Rick L Vinyard Jr <[email protected]> - 0.0.7-4
- Bump release for make-tag error
* Mon Mar 03 2008 Rick L Vinyard Jr <[email protected]> - 0.0.7-3
- Added boost-devel dependency
* Tue Feb 19 2008 Fedora Release Engineering <[email protected]> - 0.0.7-2
- Autorebuild for GCC 4.3
* Sun Nov 12 2006 Rick L Vinyard Jr <[email protected]> - 0.0.7-1
- New release
* Sun Aug 6 2006 Rick L Vinyard Jr <[email protected]> - 0.0.6-1
- New release
- Added m4 to BuildRequires
* Mon Jul 31 2006 Rick L Vinyard Jr <[email protected]> - 0.0.5-1
- New release fixes autoconf generated headers
- Removed pkgconfig from BuildRequires
- Added pkgconfig to -devel Requires
* Sun Jul 30 2006 Rick L Vinyard Jr <[email protected]> - 0.0.4-2
- Changed make to %%{__make}
- Changed %%{name} to autoconf subst that puts specific name in devel requires
- Added comment regarding why cp occurs for docs
- Added package name to globs in so libs, .pc and demos
- Changed clips-libs BuildRequires to clips-devel
- Added cppunit-devel BuildRequires
* Sat Jul 29 2006 Rick L Vinyard Jr <[email protected]> - 0.0.4-1
- New release
* Sat Jul 21 2006 Rick L Vinyard Jr <[email protected]> - 0.0.3-1
- New release
* Sat Jul 20 2006 Rick L Vinyard Jr <[email protected]> - 0.0.2-1
- New release
* Sun Jun 25 2006 Rick L Vinyard Jr <[email protected]> - 0.0.1-1
- Initial release