From aaae51891000ab580a3eb8265e5d0045e19ce8ed Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 16 Dec 2003 14:54:51 +0000 Subject: [PATCH] - pl, unifications, add SONAME, use system scintilla - removed COPYING from doc (just LGPL) Changed files: GtkScintilla2.spec -> 1.3 --- GtkScintilla2.spec | 78 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 59 insertions(+), 19 deletions(-) diff --git a/GtkScintilla2.spec b/GtkScintilla2.spec index 6df9d70..add4f90 100644 --- a/GtkScintilla2.spec +++ b/GtkScintilla2.spec @@ -1,55 +1,95 @@ Summary: GtkScintilla2 - A GTK+2 wrapper for Scintilla editing component +Summary(pl): GtkScintilla2 - wrapper GTK+2 do komponentu edycyjnego Scintilla Name: GtkScintilla2 Version: 0.0.8 Release: 0.1 License: LGPL -Group: Development/Libraries +Group: Libraries Source0: http://www.gphpedit.org/releases/%{name}-%{version}.tar.gz +# Source0-md5: e275b450c59575adef18175c099df79d +BuildRequires: gtk+2-devel >= 2.0.0 +BuildRequires: pkgconfig +BuildRequires: python +BuildRequires: scintilla-devel >= 1.53 +Requires: scintilla >= 1.53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -Provides: libgtkscintilla2.so %description This is GtkScintilla2, a GTK+2 wrapper for the Scintilla -(www.scintilla.org) editing component wich adds some facility to this -powerful component written by Neil Hodgson (and may others). +(http://www.scintilla.org/) editing component which adds some facility +to this powerful component written by Neil Hodgson (and many others). + +%description -l pl +To jest GtkScintilla2 - wrapper GTK+2 do komponentu edycyjnego +Scintilla (http://www.scintilla.org/) dodaj±cy nieco udogodnieñ do +tego potê¿nego komponentu napisanego przez Neila Hodgsona (i wielu +innych). %package devel -Summary: GtkScintilla2 - Library header files and static libraries +Summary: Header files for GtkScintilla2 library +Summary(pl): Pliki nag³ówkowe biblioteki GtkScintilla2 Group: Development/Libraries Requires: %{name} = %{version} +Requires: gtk+2-devel >= 2.0.0 +Requires: scintilla-devel >= 1.53 %description devel -Headers files and static libraries needed for compiling other programs -against gtkscintilla2. +Headers files needed for compiling other programs against +GtkScintilla2. + +%description devel -l pl +Pliki nag³ówkowe potrzebne do kompilacji innych programów u¿ywaj±cych +biblioteki GtkScintilla2. + +%package static +Summary: Static GtkScintilla2 library +Summary(pl): Statyczna biblioteka GtkScintilla2 +Group: Development/Libraries +Requires: %{name}-devel = %{version} + +%description static +Static GtkScintilla2 library. + +%description static -l pl +Statyczna biblioteka GtkScintilla2. %prep %setup -q %build -%{__make} +%{__make} \ + CC="%{__cc}" \ + LD="%{__cxx}" \ + CFLAGS="%{rpmcflags} -fPIC `pkg-config --cflags gtk+-2.0` -Wall -DGTK -DSCI_LEXER" \ + SCINTILLA_LIB= \ + SCINTILLA_INCLUDE=/usr/include/scintilla \ + SCINTILLA_IFACE=scintilla/include/Scintilla.iface \ + LDFLAGS_POST="-lscintilla -Wl,-soname=libgtkscintilla2.so.0" %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT + +%{__make} install \ + SCINTILLA_LIB= \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT -%post -/sbin/ldconfig - -%preun -/sbin/ldconfig +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %files %defattr(644,root,root,755) -%doc COPYING README -%{_libdir}/*.so* +%doc README +%attr(755,root,root) %{_libdir}/lib*.so.*.* %files devel %defattr(644,root,root,755) -%doc scintilla/doc/ -%{_libdir}/pkgconfig/GtkScintilla-2.0.pc +%attr(755,root,root) %{_libdir}/lib*.so %{_includedir}/gtkscintilla2 +%{_pkgconfigdir}/GtkScintilla-2.0.pc + +%files static +%defattr(644,root,root,755) %{_libdir}/*.a -- 2.43.0