]> git.pld-linux.org Git - SPECS.git/blob - libpano12.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libpano12.spec
1 #
2 # Conditional build:
3 %bcond_with     java    # build with Java Native Interface
4 #
5 Summary:        Panorama Tools library
6 Summary(pl.UTF-8):      Panorama Tools - biblioteka do obróbki panoram
7 Name:           libpano12
8 Version:        2.8.6
9 Release:        4
10 License:        GPL v2+
11 Group:          Libraries
12 Source0:        http://dl.sourceforge.net/panotools/%{name}-%{version}.tar.gz
13 # Source0-md5:  d4eae64c292bff3001ef3eef0fc9cb94
14 URL:            http://panotools.sourceforge.net/
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 %{?with_java:BuildRequires:     jdk}
18 BuildRequires:  libjpeg-devel >= 6b
19 BuildRequires:  libpng-devel
20 BuildRequires:  libtiff-devel
21 BuildRequires:  libtool
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Panorama Tools library.
26 %{!?with_java:Note: this version does not provide Java interface!}
27
28 %description -l pl.UTF-8
29 Panorama Tools - biblioteka do obróbki panoram.
30 %{!?with_java:Uwaga: ta wersja nie dostarcza interfesju dla Javy!}
31
32 %package devel
33 Summary:        Header files for Panorama Tools library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Panorama Tools
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       libjpeg-devel >= 6b
38 Requires:       libpng-devel
39 Requires:       libtiff-devel
40
41 %description devel
42 Header files for Panorama Tools library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki Panorama Tools.
46
47 %package static
48 Summary:        Static Panorama Tools library
49 Summary(pl.UTF-8):      Statyczna biblioteka Panorama Tools
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static Panorama Tools library.
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka Panorama Tools.
58
59 %prep
60 %setup -q
61
62 %build
63 %{__libtoolize}
64 %{__aclocal} -I m4
65 %{__autoconf}
66 %{__autoheader}
67 %{__automake}
68 %configure \
69         --enable-static \
70         %{?with_java:--with-java=/usr/%{_lib}/java}%{!?with_java:--without-java}
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc AUTHORS ChangeLog NEWS README README.linux doc/*.txt
89 %attr(755,root,root) %{_bindir}/PTOptimizer
90 %attr(755,root,root) %{_bindir}/pano12info
91 %attr(755,root,root) %{_libdir}/libpano12.so.*.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libpano12.so.0
93
94 %files devel
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/libpano12.so
97 %{_libdir}/libpano12.la
98 %{_includedir}/pano12
99
100 %files static
101 %defattr(644,root,root,755)
102 %{_libdir}/libpano12.a
This page took 0.135585 seconds and 3 git commands to generate.