Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29953b8bcb | ||
|
|
e4bb023ad6 |
1 changed files with 21 additions and 4 deletions
25
ann.spec
25
ann.spec
|
|
@ -1,6 +1,6 @@
|
|||
Name: ann
|
||||
Version: 1.1.2
|
||||
Release: 1%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Library for searching Approximate Nearest Neighbors
|
||||
|
||||
Group: Applications/System
|
||||
|
|
@ -52,6 +52,7 @@ make %{?_smp_mflags} linux CFLAGS="-fPIC -DPIC $RPM_OPT_FLAGS"
|
|||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_includedir}/ANN
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||
|
||||
install -p -m 0644 include/ANN/*.h $RPM_BUILD_ROOT%{_includedir}/ANN
|
||||
|
|
@ -63,6 +64,21 @@ ln -s libANN.so.1.0 libANN.so.1
|
|||
ln -s libANN.so.1.0 libANN.so
|
||||
popd
|
||||
|
||||
# create pkg-config file
|
||||
cat << EOF > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/%{name}.pc
|
||||
prefix=%{_prefix}
|
||||
exec_prefix=%{_exec_prefix}
|
||||
libdir=%{_libdir}
|
||||
includedir=%{_includedir}
|
||||
|
||||
Name: %{name}
|
||||
Description: Library for searching Approximate Nearest Neighbors
|
||||
Version: %{version}
|
||||
Requires:
|
||||
Libs: -L\${libdir} -lANN
|
||||
Cflags: -I\${includedir}
|
||||
EOF
|
||||
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
|
|
@ -83,17 +99,18 @@ popd
|
|||
%doc doc/ANNmanual.pdf
|
||||
%{_includedir}/ANN
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Aug 18 2013 Dan Horák <dan[at]danny.cz> - 1.1.2-3
|
||||
- add pkg-config file (#997212)
|
||||
|
||||
* Fri Mar 22 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.1.2-1
|
||||
- Upstream update.
|
||||
- Rebase patches.
|
||||
- Modernize spec.
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue