]> git.pld-linux.org Git - packages/libnsgif.git/blame - libnsgif.spec
- updated to 1.0.0
[packages/libnsgif.git] / libnsgif.spec
CommitLineData
d600c9c7 1#
2# Conditional build:
3%bcond_without static_libs # don't build static library
1a8afbbd 4
d600c9c7 5Summary: Decoding library for the GIF format
71c3acdf 6Summary(pl.UTF-8): Biblioteka dekodująca pliki w formacie GIF
d600c9c7 7Name: libnsgif
4fd45d53 8Version: 1.0.0
ebb11c50 9Release: 1
d600c9c7 10License: MIT
11Group: Libraries
12Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
4fd45d53 13# Source0-md5: ec8d24735fdd06d674ff9e4e9482b804
d600c9c7 14URL: http://www.netsurf-browser.org/projects/libnsgif/
f0fca8bb 15BuildRequires: netsurf-buildsystem >= 1.7
d600c9c7 16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Libnsgif is a decoding library for the GIF image file format, written
20in C. It was developed as part of the NetSurf project and is available
21for use by other software under the MIT licence.
22
71c3acdf
JB
23%description -l pl.UTF-8
24Libnsgif to napisana w C biblioteka dekodująca pliki obrazów w
25formacie GIF. Powstała jako część projektu NetSurf i jest dostępna do
26wykorzystania przez inne programy na licencji MIT.
27
d600c9c7 28%package devel
29Summary: libsgif library headers
30Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnsgif
31Group: Development/Libraries
32Requires: %{name} = %{version}-%{release}
33
34%description devel
71c3acdf
JB
35This package contains the include files and other resources you can
36use to incorporate libnsgif into applications.
d600c9c7 37
38%description devel -l pl.UTF-8
39Pliki nagłówkowe pozwalające na używanie biblioteki libnsgif w swoich
40programach.
41
42%package static
71c3acdf
JB
43Summary: libnsgif static library
44Summary(pl.UTF-8): Statyczna biblioteka libnsgif
d600c9c7 45Group: Development/Libraries
46Requires: %{name}-devel = %{version}-%{release}
47
48%description static
71c3acdf 49This is package with static libnsgif library.
d600c9c7 50
51%description static -l pl.UTF-8
52Statyczna biblioteka libnsgif.
53
54%prep
55%setup -q
56
57%build
bda12a47 58export AR="%{__ar}"
71c3acdf
JB
59export CC="%{__cc}"
60export CFLAGS="%{rpmcflags}"
61export LDFLAGS="%{rpmldflags}"
62
63%{__make} \
64 Q= \
65 PREFIX=%{_prefix} \
66 COMPONENT_TYPE=lib-shared
1a8afbbd 67
d600c9c7 68%if %{with static_libs}
71c3acdf
JB
69%{__make} \
70 Q= \
71 PREFIX=%{_prefix} \
72 COMPONENT_TYPE=lib-static
d600c9c7 73%endif
74
75%install
242f8311
JB
76rm -rf $RPM_BUILD_ROOT
77
bda12a47
WF
78export AR="%{__ar}"
79export CC="%{__cc}"
80export CFLAGS="%{rpmcflags}"
81export LDFLAGS="%{rpmldflags}"
82
d600c9c7 83%{__make} install \
d600c9c7 84 PREFIX=%{_prefix} \
71c3acdf 85 LIBDIR=%{_lib} \
1a8afbbd
ER
86 COMPONENT_TYPE=lib-shared \
87 DESTDIR=$RPM_BUILD_ROOT
d600c9c7 88
89%if %{with static_libs}
90%{__make} install \
d600c9c7 91 PREFIX=%{_prefix} \
71c3acdf 92 LIBDIR=%{_lib} \
1a8afbbd
ER
93 COMPONENT_TYPE=lib-static \
94 DESTDIR=$RPM_BUILD_ROOT
d600c9c7 95%endif
96
97%clean
98rm -rf $RPM_BUILD_ROOT
99
100%post -p /sbin/ldconfig
101%postun -p /sbin/ldconfig
102
103%files
104%defattr(644,root,root,755)
71c3acdf 105%doc COPYING
1a8afbbd 106%attr(755,root,root) %{_libdir}/libnsgif.so.*.*.*
4fd45d53 107%attr(755,root,root) %ghost %{_libdir}/libnsgif.so.1
d600c9c7 108
109%files devel
110%defattr(644,root,root,755)
71c3acdf 111%attr(755,root,root) %{_libdir}/libnsgif.so
4fd45d53 112%{_includedir}/nsgif.h
1a8afbbd 113%{_pkgconfigdir}/libnsgif.pc
d600c9c7 114
115%if %{with static_libs}
116%files static
117%defattr(644,root,root,755)
1a8afbbd 118%{_libdir}/libnsgif.a
d600c9c7 119%endif
This page took 0.136499 seconds and 4 git commands to generate.