Search
j0ke.net Open Build Service
>
Projects
>
server:search
>
libtextcat
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
libtextcat.spec
@@ -9,15 +9,16 @@ # # norootforbuild - -Name: libtextcat +%define pkgname libtextcat +%define soname %{pkgname}0 +Name: %{soname} Version: 2.2 Release: 0 # License: BSD Group: Development/Languages/C and C++ # -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRoot: %{_tmppath}/%{pkgname}-%{version}-build # Url: http://software.wise-guys.nl/libtextcat/ Source: http://software.wise-guys.nl/download/libtextcat-%{version}.tar.gz @@ -50,7 +51,7 @@ %package devel Group: Development/Languages/C and C++ -Requires: %{name} = %{version} +Requires: %{soname} = %{version} # Summary: Development files for libtextcat @@ -96,18 +97,22 @@ # install missing header file install -D -m 644 src/textcat.h %{buildroot}%{_includedir}/textcat.h # Configuration and language files -%{__install} -d -m 0755 %{buildroot}%{_datadir}/%{name} -%{__cp} -av langclass/conf.txt langclass/LM langclass/ShortTexts %{buildroot}%{_datadir}/%{name}/ +%{__install} -d -m 0755 %{buildroot}%{_datadir}/%{soname} +%{__cp} -av langclass/conf.txt langclass/LM langclass/ShortTexts %{buildroot}%{_datadir}/%{soname}/ %clean %{__rm} -rf %{buildroot} +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + %files %defattr(-,root,root,-) %{_bindir}/createfp %{_libdir}/libtextcat.so.0 %{_libdir}/libtextcat.so.0.0.0 -%{_datadir}/%{name}/ +%{_datadir}/%{soname}/ %doc ChangeLog LICENSE README TODO %files devel