]> git.pld-linux.org Git - packages/pixman.git/blob - pixman.spec
c6b89eb61896d28e43fd1ab61aa03ae2b4769ecb
[packages/pixman.git] / pixman.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4
5 Summary:        Pixel manipulation library
6 Summary(pl.UTF-8):      Biblioteka operacji na pikselach
7 Name:           pixman
8 # 0.36.x is stable, 0.37.x unstable
9 Version:        0.36.0
10 Release:        2
11 License:        MIT
12 Group:          Libraries
13 Source0:        https://www.cairographics.org/releases/%{name}-%{version}.tar.gz
14 # Source0-md5:  552df0d7ccccfadd07ae3758cc9a057f
15 URL:            http://pixman.org/
16 BuildRequires:  autoconf >= 2.62
17 BuildRequires:  automake
18 %{?with_tests:BuildRequires:    libpng-devel}
19 BuildRequires:  libtool
20 BuildRequires:  pkgconfig
21 BuildRequires:  rpmbuild(macros) >= 1.453
22 BuildRequires:  sed >= 4.0
23 Obsoletes:      libic
24 Obsoletes:      libpixman
25 Obsoletes:      libpixregion
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 pixman is a pixel manipulation library.
30
31 %description -l pl.UTF-8
32 pixman to biblioteka do operacji na pikselach.
33
34 %package devel
35 Summary:        Development files for pixman
36 Summary(pl.UTF-8):      Pliki dla programistów do biblioteki pixman
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Obsoletes:      libic-devel
40 Obsoletes:      libpixman-devel
41 Obsoletes:      libpixregion-devel
42
43 %description devel
44 This package contains development files for pixman library.
45
46 %description devel -l pl.UTF-8
47 Ten pakiet zawiera pliki dla programistów korzystających z biblioteki
48 pixman.
49
50 %package static
51 Summary:        Static pixman library
52 Summary(pl.UTF-8):      Statyczna biblioteka pixman
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55 Obsoletes:      libic-static
56 Obsoletes:      libpixman-static
57 Obsoletes:      libpixregion-static
58
59 %description static
60 This package contains static pixman library.
61
62 %description static -l pl.UTF-8
63 Ten pakiet zawiera statyczną wersję biblioteki pixman.
64
65 %prep
66 %setup -q
67
68 %{__sed} -i -e 's#<pixman-version.h>#"pixman-version.h"#' pixman/pixman.h
69
70 %build
71 %{__libtoolize}
72 %{__aclocal}
73 %{__autoconf}
74 %{__autoheader}
75 %{__automake}
76 %configure \
77         --disable-gtk \
78         --disable-openmp \
79         --disable-silent-rules \
80 %ifarch %{x8664}
81 %if "%{cc_version}" < "4.2"
82         --disable-sse2
83 %endif
84 %endif
85
86 %{__make}
87
88 %{?with_tests:%{__make} -j1 check}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc COPYING README
105 %attr(755,root,root) %{_libdir}/libpixman-1.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libpixman-1.so.0
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libpixman-1.so
111 %{_libdir}/libpixman-1.la
112 %{_includedir}/pixman-1
113 %{_pkgconfigdir}/pixman-1.pc
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/libpixman-1.a
This page took 0.069197 seconds and 2 git commands to generate.