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