1 |
%define name libguess |
%define oname guess |
2 |
%define version 1.0 |
|
3 |
%define release %mkrel 1 |
%define major 1 |
4 |
%define major 1 |
%define libname %mklibname %{oname} %{major} |
5 |
%define libname %mklibname guess %major |
%define devname %mklibname -d %{oname} |
6 |
%define develname %mklibname -d guess |
|
7 |
Summary: A high-speed character set detection library |
Summary: A high-speed character set detection library |
8 |
Name: %{name} |
Name: libguess |
9 |
Version: %{version} |
Version: 1.0 |
10 |
Release: %{release} |
Release: %mkrel 1 |
11 |
Source0: http://mirror.billymays.us/%name/%{name}-%{version}.tgz |
Source0: http://distfiles.atheme.org/%{name}-%{version}.tgz |
12 |
License: BSD |
License: BSD |
13 |
Group: System/Libraries |
Group: System/Libraries |
14 |
Url: http://www.atheme.org/project/guess |
Url: http://www.atheme.org/project/guess |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
BuildRequires: libmowgli-devel >= 0.7.0 |
|
BuildRequires: libmowgli-devel >= 0.7.0 |
|
16 |
|
|
17 |
%description |
%description |
18 |
Libguess is a high-speed character set detection library. It employs |
Libguess is a high-speed character set detection library. It employs |
19 |
discrete-finite automata to deduce the character set of an imput buffer. |
discrete-finite automata to deduce the character set of an imput buffer. |
20 |
|
|
21 |
%package -n %libname |
%package -n %{libname} |
22 |
Group: System/Libraries |
Group: System/Libraries |
23 |
Summary: A high-speed character set detection library |
Summary: A high-speed character set detection library |
24 |
|
|
25 |
%description -n %libname |
%description -n %{libname} |
26 |
Libguess is a high-speed character set detection library. It employs |
Libguess is a high-speed character set detection library. It employs |
27 |
discrete-finite automata to deduce the character set of an imput buffer. |
discrete-finite automata to deduce the character set of an imput buffer. |
28 |
|
|
29 |
%package -n %develname |
%package -n %{devname} |
30 |
Group: Development/C |
Group: Development/C |
31 |
Summary: A high-speed character set detection library |
Summary: A high-speed character set detection library |
32 |
Requires: %libname = %version-%release |
Requires: %{libname} = %{version}-%{release} |
33 |
Provides: %name-devel = %version-%release |
Provides: %{name}-devel = %{version}-%{release} |
34 |
|
Provides: %{oname}-devel = %{version}-%{release} |
35 |
|
|
36 |
%description -n %develname |
%description -n %{devname} |
37 |
Libguess is a high-speed character set detection library. It employs |
Libguess is a high-speed character set detection library. It employs |
38 |
discrete-finite automata to deduce the character set of an imput buffer. |
discrete-finite automata to deduce the character set of an imput buffer. |
39 |
|
|
40 |
Install this if you want to build applications with %name. |
Install this if you want to build applications with %{name}. |
41 |
|
|
42 |
%prep |
%prep |
43 |
%setup -q -n %name-%version |
%setup -q |
44 |
|
|
45 |
%build |
%build |
46 |
%configure2_5x |
%configure2_5x |
53 |
%clean |
%clean |
54 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
55 |
|
|
56 |
%files -n %libname |
%files -n %{libname} |
57 |
%defattr(-,root,root) |
%defattr(-,root,root) |
58 |
%doc README COPYING |
%doc README COPYING |
59 |
%_libdir/libguess.so.%{major}* |
%{_libdir}/libguess.so.%{major}* |
60 |
|
|
61 |
%files -n %develname |
%files -n %{devname} |
62 |
%defattr(-,root,root) |
%defattr(-,root,root) |
63 |
%_libdir/libguess.so |
%{_libdir}/libguess.so |
64 |
%_libdir/pkgconfig/%name.pc |
%{_libdir}/pkgconfig/%{name}.pc |
65 |
%_includedir/%name |
%{_includedir}/%{name} |
66 |
|
|
67 |
|
|