source: spec/trunk/SPECS/pixman.spec@ 1330

Last change on this file since 1330 was 681, checked in by dmik, 10 years ago

spec: pixman: Release version 0.32.8-3.

File size: 2.2 KB
Line 
1# Note: this .spec is borrowed from pixman-0.33.6-1.fc24.src.rpm
2
3Name: pixman
4Version: 0.32.8
5Release: 3%{?dist}
6Summary: Pixel manipulation library
7
8Group: System Environment/Libraries
9License: MIT
10URL: http://cgit.freedesktop.org/pixman/
11Vendor: bww bitwise works GmbH
12
13%define svn_url http://svn.netlabs.org/repos/ports/pixman/trunk
14%define svn_rev 1232
15
16Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
17
18BuildRequires: gcc make subversion zip
19
20BuildRequires: automake autoconf libtool
21
22%description
23Pixman is a pixel manipulation library for X and Cairo.
24
25%package devel
26Summary: Pixel manipulation library development package
27Group: Development/Libraries
28Requires: %{name}%{?isa} = %{version}-%{release}
29Requires: pkgconfig
30
31%description devel
32Development library for pixman.
33
34%prep
35%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
36%setup -q
37%else
38%setup -n "%{name}-%{version}" -Tc
39svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
40rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
41(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
42%endif
43
44# Generate confuigure and friends
45NOCONFIGURE=1 autogen.sh
46
47%build
48CFLAGS="%{optflags}" \
49LDFLAGS="-Zhigh-mem" \
50LIBS="-lurpo" \
51%configure \
52 --disable-static
53
54make %{?_smp_mflags} V=1
55
56%install
57make install DESTDIR=$RPM_BUILD_ROOT
58
59find %{buildroot} -type f -name "*.la" -delete
60
61%check
62make check %{?_smp_mflags} V=1 ||:
63
64#%post -p /sbin/ldconfig
65#%postun -p /sbin/ldconfig
66
67%files
68%doc COPYING
69%{_libdir}/pixman1*.dll
70
71%files devel
72%dir %{_includedir}/pixman-1
73%{_includedir}/pixman-1/pixman.h
74%{_includedir}/pixman-1/pixman-version.h
75%{_libdir}/pixman-1*.a
76%{_libdir}/pkgconfig/pixman-1.pc
77
78%changelog
79* Tue Mar 1 2016 Dmitriy Kuminov <coding@dmik.org> 0.32.8-3
80- Use respective optimization flags for different architectures.
81
82* Sat Feb 20 2016 Dmitriy Kuminov <coding@dmik.org> 0.32.8-2
83- Allow loading DLL into high memory.
84
85* Tue Dec 29 2015 Dmitriy Kuminov <coding@dmik.org> 0.32.8-1
86- Initial package for version 0.38.2.
Note: See TracBrowser for help on using the repository browser.