Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release-src > by-pkgid > af04a0cc6fd080914f6a5bc1e6a3b255 > files > 3

scintilla-2.02-1mdv2010.1.src.rpm

%define name 	scintilla
%define version 2.02
%define release %mkrel 1
%define libname %mklibname scintilla 2
%define develname %mklibname -d scintilla

%define scintillaver %(echo %{version} | sed -e 's/\\.//')

Summary: 	Free source code editing component
Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
License: 	BSD
Group: 		Editors
Url: 		http://www.scintilla.org/index.html
Source0: 	http://prdownloads.sourceforge.net/scintilla/scintilla%scintillaver.tgz
Source1:	scintilla.cmake
Source2:	scintilla.pc.cmake
BuildRoot: 	%{_tmppath}/%{name}-root
BuildRequires:	gtk+2-devel pkgconfig
BuildRequires:	cmake >= 2.6

%description
Scintilla is a free source code editing component. As well as features
found in standard text editing components, Scintilla includes features
especially useful when editing and debugging source code. These include
support for syntax styling, error indicators, code completion and call
tips.

%package -n %{libname}
Summary:	Scintilla shared libraries
Group:		System/Servers
Obsoletes:      %{_lib}scintilla0 < 1.79-2

%description -n %{libname}
This package contains scintilla shared libraries.

%package -n	%{develname}
Group:		Development/C
Summary:	Headers and static lib for scintilla development
Requires:	%{libname} = %{version}-%{release}
Provides:	scintilla-devel = %{version}-%{release}
Conflicts:	%{_lib}scintilla0 < 1.79-2

%description -n	%{develname}
Install this package if you want do compile applications using the
scintilla library.

%prep
%setup -q -n scintilla
cp %SOURCE1 $RPM_BUILD_DIR/scintilla/CMakeLists.txt
cp %SOURCE2 $RPM_BUILD_DIR/scintilla/scintilla.pc.cmake

%build
%{cmake}
%make

%install
rm -fr $RPM_BUILD_ROOT
cd build
%{makeinstall_std}

%clean
rm -fr $RPM_BUILD_ROOT

%files -n %{libname}
%defattr(644, root, root)
%{_libdir}/libscintilla.so.2*

%files -n %{develname}
%defattr(644, root, root)
%attr(755, root, root) %dir %{_includedir}/scintilla
%{_libdir}/libscintilla.so
%{_libdir}/pkgconfig/scintilla.pc
%{_includedir}/scintilla/*.h


%changelog
* Fri Feb 12 2010 Sandro Cazzaniga <kharec@mandriva.org> 2.02-1mdv2010.1
+ Revision: 505083
- update to 202

* Sat Dec 12 2009 Funda Wang <fwang@mandriva.org> 2.01-1mdv2010.1
+ Revision: 477834
- new version 2.01

* Tue Oct 27 2009 Funda Wang <fwang@mandriva.org> 1.79-2mdv2010.0
+ Revision: 459454
- move so file into devel package

* Mon Jul 20 2009 Raphaël Gertz <rapsys@mandriva.org> 1.79-1mdv2010.0
+ Revision: 398016
- Fix install path
- Add cmake dep
- Import new scintilla library
  Use an alternative cmake build system
- Created package structure for scintilla.