]> git.pld-linux.org Git - packages/epeg.git/blob - epeg.spec
- rel 2
[packages/epeg.git] / epeg.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 %define         _snap   20080813
6 Summary:        JPEG Scaling Library
7 Summary(pl.UTF-8):      Biblioteka do skalowania JPEG-ów
8 Name:           epeg
9 Version:        0.9.1.043
10 Release:        0.%{_snap}.2
11 License:        BSD
12 Group:          Libraries
13 Source0:        %{name}-%{version}-%{_snap}.tar.bz2
14 # Source0-md5:  a7331984bef4543a6ed1b385ccd7cc0d
15 URL:            http://enlightenment.org/Libraries/Epeg/
16 BuildRequires:  autoconf >= 2.52
17 BuildRequires:  automake >= 1.6
18 BuildRequires:  libjpeg-devel
19 BuildRequires:  libtool
20 Requires:       %{name}-libs = %{version}-%{release}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Epeg is a library which provides facilities for scaling JPEG images
25 very quickly.
26
27 %description -l pl.UTF-8
28 Epeg to biblioteka ułatwiająca bardzo szybkie skalowanie obrazów JPEG.
29
30 %package libs
31 Summary:        Epeg library
32 Summary(pl.UTF-8):      Biblioteka epeg
33 Group:          Libraries
34
35 %description libs
36 Epeg library.
37
38 %description libs -l pl.UTF-8
39 Biblioteka epeg.
40
41 %package devel
42 Summary:        Epeg header files
43 Summary(pl.UTF-8):      Pliki nagłówkowe Epeg
44 Group:          Development/Libraries
45 Requires:       %{name}-libs = %{version}-%{release}
46 Requires:       libjpeg-devel
47
48 %description devel
49 Header files for Epeg.
50
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe Epeg.
53
54 %package static
55 Summary:        Static Epeg library
56 Summary(pl.UTF-8):      Statyczna biblioteka Epeg
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59
60 %description static
61 Static Epeg library.
62
63 %description static -l pl.UTF-8
64 Statyczna biblioteka Epeg.
65
66 %prep
67 %setup -q -n %{name}-%{version}-%{_snap}
68
69 %build
70 %{__libtoolize}
71 %{__aclocal}
72 %{__autoconf}
73 %{__autoheader}
74 %{__automake}
75 %configure \
76         %{!?with_static_libs:--disable-static}
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   libs -p /sbin/ldconfig
89 %postun libs -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %doc AUTHORS COPYING COPYING-PLAIN README
94 %attr(755,root,root) %{_bindir}/epeg
95
96 %files libs
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libepeg.so.*.*.*
99 %attr(755,root,root) %ghost %{_libdir}/libepeg.so.0
100
101 %files devel
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libepeg.so
104 %{_libdir}/libepeg.la
105 %{_includedir}/Epeg.h
106 %{_pkgconfigdir}/epeg.pc
107
108 %if %{with static_libs}
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/libepeg.a
112 %endif
This page took 0.119062 seconds and 4 git commands to generate.