avatar
akdengi has added 04c274de3f
clean spec
... ... --- a/clucene.spec
... ... +++ b/clucene.spec
... ... @@ -1,14 +1,14 @@
1 1
%define date 20111220
2
%define major 2
3
%define develname %mklibname %{name} -d
2
%define major	2
3
%define devname	%mklibname %{name} -d
4 4
5 5
Summary:	C++ port of Lucene
6 6
Name:		clucene
7 7
Version:	2.3.3.4
8
Release:	%mkrel -c %{date} 4
8
Release:	0.%{date}.5
9 9
License:	LGPL
10 10
Group:		Archiving/Other
11
URL:            http://clucene.sourceforge.net/
11
Url:            http://clucene.sourceforge.net/
12 12
# Ze: we are using git, so to generate the source file we run:
13 13
# git archive --prefix=clucene-2.3.3.4/ master | xz > clucene-2.3.3.4.tar.xz
14 14
#Source0:	http://prdownloads.sourceforge.net/clucene/%{name}-core-%{version}.tar.gz
... ... @@ -18,8 +18,8 @@ Source0: %{name}-%{version}.tar.xz
18 18
Patch0:		clucene-core-2.3.3.4-pkgconfig_sys_includes.patch
19 19
Patch1:		clucene-2.3.3.4-fix-major.patch
20 20
Patch2:		patch-clucene-2.3.3.4-install-contribs-lib.diff
21
BuildRequires:	cmake
22
BuildRequires:  zlib-devel
21
BuildRequires:  cmake
22
BuildRequires:  pkgconfig(zlib)
23 23
24 24
%description
25 25
CLucene is a C++ port of Lucene: the high-performance, full-featured 
... ... @@ -68,35 +68,35 @@ Group: System/Libraries
68 68
Requires: %libclucene_core = %version-%release
69 69
70 70
%description -n %contrib
71
Language specific text analyzers for %name
71
Language specific text analyzers for %{name}
72 72
73 73
%files -n %contrib
74 74
%_libdir/libclucene-contribs-lib.so.%{major}*
75 75
76 76
#------------------------------------------------------------------------------
77
%package -n	%{develname}
78
Summary:	Static library and header files for the %{name} library
77
%package -n	%{devname}
78
Summary:	Development library and header files for the %{name} library
79 79
Group:		Development/C++
80 80
Provides:	%{name}-devel = %{version}-%{release}
81
Provides:	lib%{name}-devel = %{version}-%{release}
82
Requires:	%{libclucene_shared} = %{version}-%{release}
81
Requires:   %{libclucene_shared} = %{version}-%{release}
83 82
Requires:       %{libclucene_core} = %{version}-%{release}
84
# Zé: we need to add this provides to avoid break upgrade
83
Requires:       %{contrib} = %{version}-%{release}
84
# Ze: we need to add this provides to avoid break upgrade
85 85
%ifnarch x86_64
86 86
Provides:	devel(libclucene)
87 87
%else
88 88
Provides:	devel(libclucene(64bit))
89 89
%endif
90 90
91
%description -n	%{develname}
91
%description -n	%{devname}
92 92
CLucene is a C++ port of Lucene: the high-performance, full-featured 
93 93
text search engine written in Java. CLucene is faster than lucene 
94 94
as it is written in C++.
95 95
96
This package contains static libraries and development headers for 
96
This package contains development libraries and development headers for 
97 97
clucene.
98 98
99
%files -n %{develname}
99
%files -n %{devname}
100 100
%{_includedir}/CLucene.h
101 101
%{_includedir}/CLucene/
102 102
%{_libdir}/pkgconfig/libclucene-core.pc
... ... @@ -106,12 +106,11 @@ clucene.
106 106
#------------------------------------------------------------------------------
107 107
%prep
108 108
%setup -q
109
%patch0 -p1 -b .pkgconfig_sys_includes
110
%patch1 -p1 -b .fix-major
111
%patch2 -p1 -b .contrib-libs~
109
%apply_patches
112 110
113 111
%build
114
%cmake -DBUILD_CONTRIBS_LIB:BOOL=ON
112
%cmake \
113
	-DBUILD_CONTRIBS_LIB:BOOL=ON
115 114
%make
116 115
117 116
%install

Comments