"Initial commit to Gerrit"
[profile/ivi/libcroco.git] / packaging / libcroco.spec
1
2 # Do not Edit! Generated by:
3 # spectacle version 0.13
4
5 # >> macros
6 # << macros
7
8 Name:       libcroco
9 Summary:    A CSS2 parsing library
10 Version:    0.6.2
11 Release:    1
12 Group:      System/Libraries
13 License:    LGPLv2
14 URL:        http://www.freespiders.org/projects/libcroco/
15 Source0:    ftp://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/%{name}-%{version}.tar.bz2
16 Source100:  libcroco.yaml
17 Patch0:     libcroco-0.6.1-multilib.patch
18 Requires(post):  /sbin/ldconfig
19 Requires(postun):  /sbin/ldconfig
20 BuildRequires:  pkgconfig(libxml-2.0)
21 BuildRequires:  pkgconfig(glib-2.0)
22
23 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
24
25 %description
26 Description: %{summary}
27
28
29 %package devel
30 Summary:    Development components for the libcroco library
31 Group:      Development/Libraries
32 Requires:   %{name} = %{version}-%{release}
33
34 %description devel
35 Description: %{summary}
36
37
38 %prep
39 %setup -q -n %{name}-%{version}
40
41 # libcroco-0.6.1-multilib.patch
42 %patch0 -p1
43 # >> setup
44 # << setup
45
46 %build
47 # >> build pre
48 # << build pre
49
50 %configure --disable-static \
51     --enable-seleng=yes \
52     --enable-layeng=yes
53
54 # Call make instruction with smp support
55 make %{?jobs:-j%jobs}
56
57 # >> build post
58 # << build post
59 %install
60 rm -rf %{buildroot}
61 # >> install pre
62 # << install pre
63 %make_install
64
65 # >> install post
66 # << install post
67
68 %clean
69 rm -rf %{buildroot}
70
71
72
73 %post -p /sbin/ldconfig
74
75 %postun -p /sbin/ldconfig
76
77
78
79 %files
80 %defattr(-,root,root,-)
81 # >> files
82 %doc AUTHORS COPYING COPYING.LIB NEWS README
83 %{_bindir}/csslint-0.6
84 %{_libdir}/*.so.*
85 # << files
86
87
88 %files devel
89 %defattr(-,root,root,-)
90 # >> files devel
91 %{_libdir}/*.so
92 %{_includedir}/libcroco-0.6
93 %{_bindir}/croco-0.6-config
94 %{_libdir}/pkgconfig/libcroco-0.6.pc
95 # << files devel
96