]> git.pld-linux.org Git - packages/GtkScintilla2.git/blob - GtkScintilla2.spec
- tabs in preamle
[packages/GtkScintilla2.git] / GtkScintilla2.spec
1 Summary:        GtkScintilla2 - A GTK+2 wrapper for Scintilla editing component
2 Summary(pl.UTF-8):      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.UTF-8
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.UTF-8):      Pliki nagłówkowe biblioteki GtkScintilla2
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33 Requires:       gtk+2-devel >= 2.0.0
34 Requires:       scintilla-devel >= 1.53
35
36 %description devel
37 Headers files needed for compiling other programs against
38 GtkScintilla2.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe potrzebne do kompilacji innych programów używających
42 biblioteki GtkScintilla2.
43
44 %package static
45 Summary:        Static GtkScintilla2 library
46 Summary(pl.UTF-8):      Statyczna biblioteka GtkScintilla2
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static GtkScintilla2 library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka GtkScintilla2.
55
56 %prep
57 %setup -q
58
59 %build
60 %{__make} \
61         CC="%{__cc}" \
62         LD="%{__cxx}" \
63         CFLAGS="%{rpmcflags} -fPIC `pkg-config --cflags gtk+-2.0` -Wall -DGTK -DSCI_LEXER" \
64         LIB_DIR=%{_libdir} \
65         PKG_CONFIG_DIR=%{_pkgconfigdir} \
66         SCINTILLA_LIB= \
67         SCINTILLA_INCLUDE=/usr/include/scintilla \
68         SCINTILLA_IFACE=scintilla/include/Scintilla.iface \
69         LDFLAGS_POST="-lscintilla -Wl,-soname=libgtkscintilla2.so.0"
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         SCINTILLA_LIB= \
76         LIB_DIR=%{_libdir} \
77         PKG_CONFIG_DIR=%{_pkgconfigdir} \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc README
89 %attr(755,root,root) %{_libdir}/lib*.so.*.*
90
91 %files devel
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/lib*.so
94 %{_includedir}/gtkscintilla2
95 %{_pkgconfigdir}/GtkScintilla-2.0.pc
96
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/*.a
This page took 0.067553 seconds and 3 git commands to generate.