]> git.pld-linux.org Git - packages/GtkScintilla2.git/blob - GtkScintilla2.spec
- R: pkgconfig for -devel
[packages/GtkScintilla2.git] / GtkScintilla2.spec
1 Summary:        GtkScintilla2 - A GTK+2 wrapper for Scintilla editing component
2 Summary(pl):    GtkScintilla2 - wrapper GTK+2 do komponentu edycyjnego Scintilla
3 Name:           GtkScintilla2
4 Version:        0.0.8
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://www.gphpedit.org/releases/%{name}-%{version}.tar.gz
9 # Source0-md5:  e275b450c59575adef18175c099df79d
10 BuildRequires:  gtk+2-devel >= 1:2.0.0
11 BuildRequires:  pkgconfig
12 BuildRequires:  python
13 BuildRequires:  scintilla-devel >= 1.53
14 Requires:       scintilla >= 1.53
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 This is GtkScintilla2, a GTK+2 wrapper for the Scintilla
19 (http://www.scintilla.org/) editing component which adds some facility
20 to this powerful component written by Neil Hodgson (and many others).
21
22 %description -l pl
23 To jest GtkScintilla2 - wrapper GTK+2 do komponentu edycyjnego
24 Scintilla (http://www.scintilla.org/) dodaj±cy nieco udogodnieñ do
25 tego potê¿nego komponentu napisanego przez Neila Hodgsona (i wielu
26 innych).
27
28 %package devel
29 Summary:        Header files for GtkScintilla2 library
30 Summary(pl):    Pliki nag³ówkowe biblioteki GtkScintilla2
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}
33 Requires:       gtk+2-devel >= 2.0.0
34 Requires:       pkgconfig
35 Requires:       scintilla-devel >= 1.53
36
37 %description devel
38 Headers files needed for compiling other programs against
39 GtkScintilla2.
40
41 %description devel -l pl
42 Pliki nag³ówkowe potrzebne do kompilacji innych programów u¿ywaj±cych
43 biblioteki GtkScintilla2.
44
45 %package static
46 Summary:        Static GtkScintilla2 library
47 Summary(pl):    Statyczna biblioteka GtkScintilla2
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}
50
51 %description static
52 Static GtkScintilla2 library.
53
54 %description static -l pl
55 Statyczna biblioteka GtkScintilla2.
56
57 %prep
58 %setup -q
59
60 %build
61 %{__make} \
62         CC="%{__cc}" \
63         LD="%{__cxx}" \
64         CFLAGS="%{rpmcflags} -fPIC `pkg-config --cflags gtk+-2.0` -Wall -DGTK -DSCI_LEXER" \
65         LIB_DIR=%{_libdir} \
66         PKG_CONFIG_DIR=%{_pkgconfigdir} \
67         SCINTILLA_LIB= \
68         SCINTILLA_INCLUDE=/usr/include/scintilla \
69         SCINTILLA_IFACE=scintilla/include/Scintilla.iface \
70         LDFLAGS_POST="-lscintilla -Wl,-soname=libgtkscintilla2.so.0"
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         SCINTILLA_LIB= \
77         LIB_DIR=%{_libdir} \
78         PKG_CONFIG_DIR=%{_pkgconfigdir} \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %files
88 %defattr(644,root,root,755)
89 %doc README
90 %attr(755,root,root) %{_libdir}/lib*.so.*.*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/lib*.so
95 %{_includedir}/gtkscintilla2
96 %{_pkgconfigdir}/GtkScintilla-2.0.pc
97
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/*.a
This page took 0.080004 seconds and 3 git commands to generate.