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

Last change on this file since 669 was 665, checked in by dmik, 10 years ago

spec: pixman: Release version 0.32.8-2.

File size: 2.0 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: 2%{?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
48export LDFLAGS="-Zhigh-mem"
49export LIBS="-lurpo"
50%configure \
51 --disable-static
52
53make %{?_smp_mflags} V=1
54
55%install
56make install DESTDIR=$RPM_BUILD_ROOT
57
58find %{buildroot} -type f -name "*.la" -delete
59
60%check
61make check %{?_smp_mflags} V=1 ||:
62
63#%post -p /sbin/ldconfig
64#%postun -p /sbin/ldconfig
65
66%files
67%doc COPYING
68%{_libdir}/pixman1*.dll
69
70%files devel
71%dir %{_includedir}/pixman-1
72%{_includedir}/pixman-1/pixman.h
73%{_includedir}/pixman-1/pixman-version.h
74%{_libdir}/pixman-1*.a
75%{_libdir}/pkgconfig/pixman-1.pc
76
77%changelog
78* Sat Feb 20 2016 Dmitriy Kuminov <coding@dmik.org> 0.32.8-2
79- Allow loading DLL into high memory.
80
81* Tue Dec 29 2015 Dmitriy Kuminov <coding@dmik.org> 0.32.8-1
82- Initial package for version 0.38.2.
Note: See TracBrowser for help on using the repository browser.